Lunny Xiao
b6dd6210ea
bug fixed for issue count ( #881 )
2017-02-09 17:59:57 +08:00
Ethan Koenig
a6751cec04
Unit tests for issue_milestone ( #878 )
2017-02-09 14:39:26 +08:00
Ethan Koenig
13973348df
Gogs -> Gitea ( #877 )
2017-02-09 13:44:18 +08:00
Ethan Koenig
e6b4448ba3
Fix bug in Issue.GetIsRead ( #876 )
2017-02-09 11:47:24 +08:00
Ethan Koenig
181c8d9c99
Fix consistency check ( #866 )
2017-02-08 14:29:21 +08:00
Ethan Koenig
d2329e1c26
Use assert in legacy unit tests ( #867 )
2017-02-08 14:29:07 +08:00
Ethan Koenig
5fbab97373
Fix broken test fixture ( #859 )
2017-02-07 22:49:37 +08:00
Bo-Yi Wu
b13232f524
feat: support paginater on star tab of user profile. ( #845 )
2017-02-07 19:54:16 +08:00
Ethan Koenig
ceae143e78
Consistency checks for unit tests ( #853 )
2017-02-07 19:47:55 +08:00
Bo-Yi Wu
71d35dae8c
fix: wrong pages number which includes private repository count. ( #844 )
2017-02-06 23:18:36 +08:00
Ethan Koenig
438e1a7d46
Fix inconsistencies in unit test fixtures
2017-02-05 22:43:31 -05:00
Lunny Xiao
f35b20b042
track issue title changes ( #841 )
2017-02-05 22:36:00 +08:00
Ethan Koenig
027591a3a5
Redirects for renamed repos ( #807 )
...
* Redirects for renamed repos
* Remove unused phrase from locales
2017-02-05 22:35:03 +08:00
Bwko
bf647ce143
Check for manual merging of a pull request ( #719 )
...
When an open pull request got manually merged mark the pull request as
merged
2017-02-05 21:07:44 +08:00
Andrey Nering
7c3dc51655
Merge pull request #839 from ethantkoenig/fix/remove_org_repo
...
Fix bug in removeOrgRepo
2017-02-04 14:55:02 -02:00
Ethan Koenig
f82ea42679
Fix bug in removeOrgRepo
2017-02-04 11:01:21 -05:00
Ethan Koenig
5972aa9af3
Fix inconsistencies in test fixtures
2017-02-04 11:01:06 -05:00
Lunny Xiao
8a421b1fd7
Add units concept for modulable functions of a repository ( #742 )
...
* Add units concept for modulable functions of a repository
* remove unused comment codes & fix lints and tests
* remove unused comment codes
* use struct config instead of map
* fix lint
* rm wrong files
* fix tests
2017-02-04 23:53:46 +08:00
Ethan Koenig
d0960b8035
Move IssueUser code to separate file ( #836 )
...
Also add unit tests
2017-02-04 20:37:26 +08:00
Andrey Nering
d4035d1cb1
Merge pull request #830 from appleboy/patch-2001
...
refactor: set default order by recently star on start tab
2017-02-04 10:32:55 -02:00
Bo-Yi Wu
a90a215662
feat: Add search bar on user profile page. ( #787 )
2017-02-04 20:20:20 +08:00
Bo-Yi Wu
b6da658553
test: Add user mail testing. ( #833 )
2017-02-04 09:20:56 +08:00
Lunny Xiao
3e0525b47d
Track assignee for issue ( #808 )
...
* track assignee for issue
* fix lint
* use getUserByID instead Get
2017-02-03 23:09:10 +08:00
Ethan Koenig
68bdaf0a6b
Drop redundant columns from issue_user table ( #638 )
2017-02-03 15:22:39 +08:00
Bo-Yi Wu
e2de16065a
refactor: set default order by recently star.
2017-02-03 12:03:49 +08:00
Gabriel Jackson
bf6f61cc69
Cleanup log messaging
...
This change corrects a few logging issues:
* Standardized formatting errors with '%v'.
* Standardized failure warning word usage.
* Corrected an instance of using the standard log library when
the gitea log library should be used instead.
2017-02-02 15:24:18 +01:00
Bo-Yi Wu
d7d094bd8a
fix: ignore email notifications if user is not active. ( #820 )
2017-02-02 20:33:36 +08:00
Anton Skorokhod
79ab69fe30
Add X-GitHub-* headers for webhook to get clubhouse.io integration working ( #809 )
2017-02-02 11:51:19 +08:00
Lunny Xiao
081485ecfd
add milestone changed traker on issue view ( #804 )
2017-02-01 10:36:08 +08:00
Ethan Koenig
10644d6dd7
Bug fixes and unit tests for models/issue_label ( #802 )
2017-02-01 09:31:35 +08:00
Ethan Koenig
0a02fb3c4f
Windows compatibility for unit tests ( #800 )
2017-01-30 22:22:04 +08:00
Ethan Koenig
2eb15f4a61
Unit tests and remove unused functions in models/notification ( #796 )
...
* Unit tests and remove unused functions in models/notification
* Read -> Unread
2017-01-30 22:21:49 +08:00
Lunny Xiao
f94869d2d1
Track labels changed on issue view & resolved #542 ( #788 )
...
* track labels changed on issue view & resolved #542
* add missing head comment & sort & fix refresh
2017-01-30 20:46:45 +08:00
Ethan Koenig
7765593018
Better settings for unit tests ( #795 )
2017-01-30 13:17:43 +08:00
Thomas Boerger
78535fb08e
Allow custom public files ( #782 )
...
* Allow custom public files
* Gofmt code, lots of places not related to this pr
2017-01-28 23:14:56 +01:00
Andrey Nering
cc31a21192
Merge pull request #781 from andreynering/notifications-step-5
...
Notifications step 5
2017-01-28 17:54:37 -02:00
Andrey Nering
5348e8b71a
Fix color: closed PR was showing as purple instead of red
2017-01-28 14:01:07 -02:00
Andrey Nering
31c717f579
Merge pull request #777 from ethantkoenig/tests/wiki
...
Unit tests for models/wiki
2017-01-28 11:27:45 -02:00
Ethan Koenig
bb76285762
Unit tests for models/wiki
2017-01-27 13:08:17 -05:00
Ethan Koenig
a2412492da
Unit tests and bug fix for models/org
2017-01-27 12:24:06 -05:00
Lunny Xiao
bb5a6b7a07
fix xorm NewSession uncorrected usages ( #774 )
2017-01-28 00:11:41 +08:00
Bo-Yi Wu
25663b5816
refactor: Remove unnecessary type conversions ( #772 )
2017-01-27 23:03:32 +08:00
Ethan Koenig
da1b6164fe
Fix FIXME and remove superfluous queries in models/org ( #749 )
2017-01-25 23:41:38 +08:00
Bo-Yi Wu
691fbdf1d3
fix: delete attachment after remove comment.
2017-01-25 16:40:43 +01:00
Ethan Koenig
0934d1b1ea
Bug fixes and unit tests for models/webhook ( #751 )
2017-01-25 18:37:35 +08:00
Ethan Koenig
a6832c234d
Unit tests for models/star ( #752 )
2017-01-25 18:37:10 +08:00
Lunny Xiao
8c2381103a
bug fixed issues 500 resolved #754 ( #756 )
2017-01-25 16:28:03 +08:00
Ethan Koenig
8093b3372e
Less boilerplate in models/ unit tests ( #725 )
2017-01-25 10:49:51 +08:00
Ethan Koenig
833f8b94c2
Search bar for issues/pulls ( #530 )
2017-01-25 10:43:02 +08:00
Andrey Nering
521d429b58
Fix link of some repos on stars page ( #737 )
...
Link was wrong the repo was of another owner
2017-01-24 10:39:58 +08:00
Bwko
74ed6dc3ad
Add option to app.ini to enable local import paths ( #724 )
2017-01-23 09:19:50 +08:00
Bwko
1257d43e14
Add a reserved path check to the wiki ( #720 )
2017-01-22 23:08:54 +08:00
Lunny Xiao
f8c2903484
fixed bugs on Wiki and resolved #667 ( #674 )
2017-01-21 20:50:51 +08:00
Philip Couling
1610b9f547
Spun attachments into seperate go file ( #701 )
...
Moved attachments into seperate go file
2017-01-20 07:58:46 +01:00
Ethan Koenig
74bbec3bf9
Fix permission bugs in team API ( #647 )
2017-01-20 13:16:10 +08:00
Ethan Koenig
fcf02e4961
API Endpoints for organization members ( #645 )
2017-01-20 10:31:46 +08:00
Matthias Loibl
d1006150fb
Refactor process package and introduce ProcessManager{} with tests ( #75 )
...
* Add a process.Manager singleton with process.GetManager()
* Use process.GetManager everywhere
* Fix godoc comments for process module
* Increment process counter id after locking the mutex
2017-01-17 13:58:58 +08:00
Andrew
6dd096b7f0
Two factor authentication support ( #630 )
...
* Initial commit for 2FA support
Signed-off-by: Andrew <write@imaginarycode.com>
* Add vendored files
* Add missing depends
* A few clean ups
* Added improvements, proper encryption
* Better encryption key
* Simplify "key" generation
* Make 2FA enrollment page more robust
* Fix typo
* Rename twofa/2FA to TwoFactor
* UNIQUE INDEX -> UNIQUE
2017-01-16 10:14:29 +08:00
Philip Couling
64375d875b
Attach to release ( #673 )
...
* Moved attachaments POST url from /issues/attachments to /attachments
* Implemented attachment upload on release page
* Implemented downloading attachments on the release page
* Added zip and gzip files to default allowed attachments
* Implemented uploading attachments on edit release
* Renamed UploadIssueAttachment to UploadAttachment
2017-01-15 22:57:00 +08:00
btrepp
302fa42980
Removes reliance on server specific SQL ( #393 )
...
Breaks the retrieval of repositories into two queries
This fetches the paged ids in one go, then the
actual repository information in a second query
Some databases do not support SELECT with *
when group by is used.
2017-01-14 22:32:36 +08:00
Ethan Koenig
a6f5efa0bb
Fix ambiguity bug in getCommentsByRepoIDSince ( #665 )
2017-01-14 10:21:30 +08:00
Ethan Koenig
27fcf8d30a
Bug fixes for webhook API ( #650 )
2017-01-14 10:14:48 +08:00
Lunny Xiao
87ad4961f6
bug fixed for update repository ( #664 )
2017-01-14 10:07:04 +08:00
Andrey Nering
769e0a3ea6
Notifications: mark as read/unread and pin ( #629 )
...
* Use relative URLs
* Notifications - Mark as read/unread
* Feature of pinning a notification
* On view issue, do not mark as read a pinned notification
2017-01-12 12:27:09 +08:00
Bo-Yi Wu
cbf2a967c5
refactor: Add new deleteOrg func. ( #633 )
2017-01-11 21:10:43 +08:00
Ethan Koenig
b316b2e740
Unit tests for models/admin
2017-01-09 21:49:51 +01:00
Ethan Koenig
973282dae2
Better coverage in pull_test ( #615 )
2017-01-09 11:15:07 +08:00
Ethan Koenig
862948ab88
Better coverage and TODOs for update_test ( #616 )
2017-01-09 11:14:57 +08:00
Ethan Koenig
4b23e6a694
Unit tests for models/action ( #619 )
2017-01-09 11:08:36 +08:00
derSuessmann
51d578ff33
Add Keep email private (see issue #571 ). ( #571 )
...
- Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE.
- Add the new option to the install and admin/config pages.
- Add the new option to app.ini in the service section.
- Add the new option to the settings struct.
- Add English text strings to i18n.
- Add field KeepEmailPrivate to user struct.
- Add field KeepEmailPrivate to user form.
- Add option to UI.
- Add using noreply email address if user has "Keep Email Private".
An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit
messages (and hopefully all other git log relevant places). The
change relies on the fact that git commands should use
user.NetGitSig().
- Add hiding of email address in UI, if user has set "Keep Email Private".
- Add condition to show email address only on explore/users and user
pages, if user has not set "Keep Email Private".
- Add noreply email in API if set "Keep Email Private".
- Add a new service setting NO_REPLY_ADDRESS. The value of this
setting is used as the domain part for the user's email address in
git log, iff he decides to keep his email address private.
If the user decides to keep his email address private and this
option is not set 'noreply.example.org' is used, which no MTA
should send email to.
Add NO_REPLY_ADDRESS to conf/app.ini.
2017-01-08 11:12:03 +08:00
Ethan Koenig
6072b03291
Unit tests for models/access.go ( #606 )
2017-01-08 11:10:53 +08:00
Ethan Koenig
8422ab542c
API endpoint for subscribers ( #598 )
2017-01-07 11:13:02 +08:00
Andrey Nering
03b45284e1
Merge pull request #555 from ethantkoenig/tests/pull
...
Unit tests for models/pull.go
2017-01-06 19:19:18 -02:00
Andrey Nering
84b7d29d34
Create missing database indexes ( #596 )
2017-01-06 23:14:33 +08:00
Ethan Koenig
72bfabfada
Unit tests for models/pull.go
2017-01-06 10:08:23 -05:00
Ethan Koenig
1a7fc53c98
API endpoint for stargazers ( #597 )
2017-01-06 15:05:09 +08:00
Lunny Xiao
61306fa737
Make releases faster than before and resolved #490 ( #588 )
...
* make releases faster than before and resolved #490
* fix comment
2017-01-06 09:51:15 +08:00
Andrey Nering
79d527195d
Merge pull request #539 from andreynering/notifications-step-2
...
Notifications - Step 2
2017-01-05 11:53:01 -02:00
Ethan Koenig
c5f0d4b1a0
Fix SQL bug in models/access ( #583 )
...
Previously got a 'relation repo_access does not exist' error in User_GetRepositoryAccesses
2017-01-05 08:57:54 +08:00
Berk Demirkır
bdad3b259a
Check primary email address fields on CreateUser ( #556 )
...
* Check primary email address fields on CreateUser
As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors.
* Update user.go
* Lower the email first. Then check
2017-01-05 08:52:20 +08:00
Ethan Koenig
1207bda94b
Fix typos in models/ ( #576 )
2017-01-05 08:50:34 +08:00
Andrey Nering
b354cf362e
Add pagination for notifications
2017-01-03 17:09:36 -02:00
Lunny Xiao
09dabe2ff2
fix bug #564 ( #567 )
2017-01-03 16:27:11 +08:00
Lunny Xiao
980dd0bf51
Update xorm and dependencies vendor for feature to dump to other database ( #565 )
...
* update xorm and dependencies vendor for feature to dump to other database
* fix golint
2017-01-03 16:20:28 +08:00
Kjell Kvinge
4b0974ec10
Fix benchmarktests ( #557 )
2017-01-03 10:52:09 +08:00
Lunny Xiao
3c7116382f
change the default action when deleting a release to not delete tag
2017-01-03 02:27:38 +01:00
Ethan Koenig
0c301f7b5c
Release API endpoints
2017-01-02 00:10:52 +01:00
Lunny Xiao
6e5fffbd3f
resolved #485 : when migrate empty wiki repo, then ignore ( #541 )
2016-12-31 17:34:34 +08:00
Ethan Koenig
de8b73dd92
Unit tests for token and update models
2016-12-31 10:17:45 +01:00
Schwobaland
c0904f1942
Restrict creating organisations by user ( #193 )
...
* restrict creating organizations based on right on user
* revert bindata.go
* reverse vendor lib
* revert goimports change
* set AllowCreateOrganization default value to true
* revert locale
* added default value for AllowCreateOrganization
* fix typo in migration-comment
* fix comment
* add coments in migration
2016-12-31 10:33:30 +08:00
Bo-Yi Wu
6510e57758
fix gofmt error
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-30 20:41:10 +01:00
Andrey Nering
42904cb98a
Notification - Step 1 ( #523 )
...
* Notification - Step 1
* Add copyright headers
* Cache issue and repository on notification model
2016-12-31 00:44:54 +08:00
typeless
937b4b5aa1
Speed up conflict checking in pull request creation ( #276 )
...
* Speed up conflict checking in pull request creation
In order to check conflicts of a PR, we set up a working tree by
cloning the base branch, which is quite time-consuming when the repository is huge.
Instead, this PR uses `git read-tree` and `git apply --check --cached` to check conflicts.
For #258
* Use $GIT_INDEX_FILE instead of --index-output to avoid lockfile problem
The lockfile gets renamed to the final destination after the operation
finishes. But it must be located in the same filesystem, which prevents
us from using /tmp.
* Temporary file names should not prefixed with '-'
2016-12-29 22:59:52 +08:00
Andrey Nering
b992858883
Tab on user profile to show starred repos ( #519 )
...
* Tab on user profile to show starred repos
* Make golint happy and use transactions on StarRepo function
* x -> sess
* Use sess.Close() instead of sess.Rollback()
* Add copyright
* Fix lint
2016-12-29 22:58:24 +08:00
Lunny Xiao
799d0c2030
slight optimization for GetUserRepositories ( #498 )
2016-12-29 02:53:33 -06:00
Kjell Kvinge
22e1bd31c6
commithgraph / timeline ( #428 )
...
* Add model and tests for graph
* Add route and router for graph
* Add assets for graph
* Add template for graph
2016-12-29 07:44:32 +08:00
Bwko
331316894e
Replace Gogs with Gitea ( #520 )
2016-12-28 16:33:21 +08:00
Lunny Xiao
c463b1b8cb
Optimization for user.GetRepositoryAccesses to reduce db query times ( #495 )
...
* optimization for user.GetRepositoryAccesses to reduce db query times
* fix missing cache
2016-12-28 09:34:35 +08:00
Lunny Xiao
ba134bd27a
fix 500 when delete orgnization and resolved #486
2016-12-27 12:00:12 +01:00
Ethan Koenig
2342df183b
API Endpoints for collaborators ( #375 )
2016-12-26 15:37:01 +08:00