Morgan Bazalgette
afdbc6049c
go back to using CFB for AES decryption/encryption for 2FA ( #3274 )
2017-12-31 04:19:42 +02:00
Ethan Koenig
770e1158b2
Remove unused consts/vars ( #3270 )
2017-12-30 19:10:48 -06:00
Ethan Koenig
ab10035626
Fix bugs in issue dashboard stats ( #3073 )
2017-12-26 01:25:16 +02:00
Lunny Xiao
79a80e8646
Small improve on deleting attachements ( #3145 )
...
* Small improve on deleting attachements
* improve the sequence of deletion
2017-12-24 23:04:22 +02:00
Antoine GIRARD
db4bbbd4f9
Add more bench ( #3161 )
...
* Improve makefile + Add benchs
* Apply recommendations of @ethantkoenig
2017-12-24 02:33:34 +02:00
Ethan Koenig
8b00d90e32
Fix ignored errors when checking if organization, team member ( #3177 )
2017-12-21 09:43:26 +02:00
Ethan Koenig
8aabd97fb0
Fix repo-transfer-and-team-repo-count bug ( #3241 )
2017-12-19 23:37:56 -06:00
Ethan Koenig
95f34fad3d
Check ignored errors for issue and milestone count ( #3213 )
2017-12-18 16:06:51 +02:00
Ethan Koenig
30696dbea1
Remove unnecessary updates to issue indexer ( #3212 )
2017-12-17 13:53:02 +02:00
Ethan Koenig
9dc492220e
Unit tests for routers/repo/issue_label ( #3198 )
2017-12-15 23:11:02 +02:00
Lunny Xiao
e9f4ff0997
Improvements for supporting UI Location ( #3146 )
...
* improvements for supporting UI Location
* improved the comment
2017-12-14 07:45:31 +08:00
Lauris BH
c99408fb7a
Reorder migrations, skip errors if running migration again ( #3160 )
...
* Reorder migrations, skip errors if running migration again
* Rename migration file names to match migration version
* Add note about ingored error
2017-12-13 16:52:18 +02:00
Lunny Xiao
defed9f556
fix org owner cannot be removed if there is not in owner team ( #3164 )
2017-12-13 00:26:31 +02:00
Kim "BKC" Carlbäcker
5916f4cf5b
Fix Uninitialized variable in ParsePatch ( #3156 )
2017-12-12 02:32:36 +02:00
Lunny Xiao
71a269bb24
simple usage of x ( #3144 )
2017-12-11 09:16:23 +02:00
Lunny Xiao
1539bd5c3b
Refactor struct's time to remove unnecessary memory usage ( #3142 )
...
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
2017-12-11 06:37:04 +02:00
Ethan Koenig
36cb23a84c
Fixtures for public_key table ( #3140 )
2017-12-11 09:50:29 +08:00
Ethan Koenig
54714e6438
Fix integration tests ( #3141 )
2017-12-11 08:52:05 +08:00
Lunny Xiao
f4e179277d
Fix compile failed without gcc ( #3130 )
...
* fix comile failed without gcc
* add sqlite tag for unit test
2017-12-10 16:08:19 +02:00
Antoine GIRARD
81e42f6449
Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. ( #3092 )
...
* Add failing test
* Fix urls
* Improve url in tests
* improve testing
* Remove debug code
* Add deps
* LFS corner-case : Search on lower but store with case
* Temporary comment of blocking action
* fix hooks
* Use temporary repo for git client test
* Use userPassword in place of hard-coded password
2017-12-08 20:21:37 +08:00
Ethan Koenig
1e710d69a5
Fix repo indexer and submodule bug ( #3107 )
2017-12-07 15:18:04 +08:00
Sasha Varlamov
7fb4698b38
Add 'mark all read' option to notifications ( #3097 )
...
* Add 'mark all read' option to notifications
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com >
* Fix exported comment
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com >
* Format method comments
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com >
* Fix exported comment
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com >
Format method comments
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com >
Tests for reactions (#3083 )
* Unit tests for reactions
* Fix import order
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv >
Fix reaction possition when there is attachments (#3099 )
Refactor notifications swap function
* Accept change to drop beforeupdate call
* Update purge notifications error message for consistency
* Drop unnecessary check for mark all as read button
* Remove debugging comment
2017-12-07 13:52:57 +08:00
Vlad Temian
c72fe2c8b4
Delete a user's public key via admin api ( closes #3014 ) ( #3059 )
...
* Delete a user's public key via admin api
* Test admin ssh endpoint for creating a new ssh key
* Adapt public ssh key test to also test the delete operation
* Test that deleting a missing key will result in a 404
* Test that a normal user can't delete another user's ssh key
* Make DeletePublicKey return err
* Update swagger doc
2017-12-06 12:27:10 +02:00
Lauris BH
2e3ce8edf1
Tests for reactions ( #3083 )
...
* Unit tests for reactions
* Fix import order
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv >
2017-12-05 22:57:01 +02:00
Ethan Koenig
63a58014ac
Sort repos in issues dashboard sidebar ( #3072 )
...
* Sort repos in issues dashboard sidebar
* Sort repos by name
2017-12-04 12:39:01 +08:00
Ethan Koenig
856188bcef
Fix error message sanitiziation ( #3082 )
2017-12-04 03:48:03 +02:00
Lauris BH
c5bbb9ed4b
Add reactions to issues/PR and comments ( #2856 )
2017-12-04 01:14:26 +02:00
Ethan Koenig
3fa7629bfc
Fix avatar URLs ( #3069 )
...
* Fix avatar URLs
* import order
2017-12-03 19:55:13 +08:00
Ethan Koenig
08848635c1
Sanitize logs for mirror sync ( #3057 )
2017-12-03 13:29:41 +08:00
Ethan Koenig
5d2effa1f8
Fix ref parsing in commit messages ( #3067 )
2017-12-03 10:20:12 +08:00
Lunny Xiao
a15d8c22e1
Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName ( #3043 )
...
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName
* fix tests
* fix tests bug
* some improvements
2017-12-02 15:34:39 +08:00
Ethan Koenig
ffecdec7a8
Unit tests for wiki routers ( #3022 )
2017-11-30 17:52:15 +02:00
Antoine GIRARD
dcabc76714
Fix git lfs path ( #3016 )
...
* add suffix .git
* Remove Content-Type on GET methods
* Add migrations to force creation before any further potential migration
2017-11-29 01:35:23 +02:00
Duncan Ogilvie
e7207d7f91
Improve memory usage when reaching diff limits ( #2990 )
...
Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com >
2017-11-29 01:22:24 +02:00
Antoine GIRARD
eaff4b06ed
Git LFS lock api ( #2938 )
...
* Implement routes
* move to api/sdk and create model
* Implement add + list
* List return 200 empty list no 404
* Add verify lfs lock api
* Add delete and start implementing auth control
* Revert to code.gitea.io/sdk/gitea vendor
* Apply needed check for all lfs locks route
* Add simple tests
* fix lint
* Improve tests
* Add delete test + fix
* Add lfs ascii header
* Various fixes from review + remove useless code + add more corner case testing
* Remove repo link since only id is needed.
Save a little of memory and cpu time.
* Improve tests
* Use TEXT column format for path + test
* fix mispell
* Use NewRequestWithJSON for POST tests
* Clean path
* Improve DB format
* Revert uniquess repoid+path
* (Re)-setup uniqueness + max path length
* Fixed TEXT in place of VARCHAR
* Settle back to maximum VARCHAR(3072)
* Let place for repoid in key
* Let place for repoid in key
* Let place for repoid in key
* Revert back
2017-11-28 22:58:37 +02:00
Ethan Koenig
7c56820685
Various wiki bug fixes ( #2996 )
...
* Update macaron
* Various wiki bug fixes
2017-11-28 17:43:51 +08:00
Ethan Koenig
c1c28b62a0
Don't print SQL in unit tests ( #2995 )
...
* Add GITEA_UNIT_TESTS_VERBOSE environment variable to enable printing SQL
2017-11-27 12:29:48 +02:00
Ethan Koenig
bec9433195
Enable admin to search by email ( #2888 )
2017-11-26 16:40:38 +08:00
Ethan Koenig
c35c0fce3a
Remove unnecessary IssueList attribute loads ( #2936 )
2017-11-21 13:28:22 +08:00
Lunny Xiao
ea4f22c5ac
Add dingtalk webhook ( #2777 )
...
* add dingtalk webhook type
* add vendor
* some fixes
* fix name check
* fix name check & improvment
2017-11-21 06:26:43 +02:00
Michael Kuhn
5eeb811276
Disable add key button if SSH is disabled ( #2873 )
2017-11-21 11:49:33 +08:00
Lauris BH
ea74f92bf1
Add deleted_branch table fixture ( #2832 )
...
* Add deleted_branch table fixture
* Fix deleted branches tests
* Remove unneeded global variable
2017-11-04 15:31:59 +02:00
Lauris BH
74efb677bb
Issue content should not be updated when closing with comment ( #2833 )
2017-11-03 17:23:17 +08:00
Guillaume Dube
05fa8a5c8e
Set session and indexers' data files rel to AppDataPath ( #2192 )
...
* Set session and indexers' data files rel to AppDataPath
The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.
* fix bug
2017-11-03 10:56:20 +02:00
Morlinest
52f4dabe28
Fix order of comments ( #2835 )
2017-11-03 11:11:42 +08:00
Ethan Koenig
dabbd2b948
Use api.TrackedTime in API ( #2807 )
...
* Use api.TrackedTime in API
* APIFormat() method
* Rename function
2017-11-01 10:25:14 +08:00
cstyles
844a2e17ae
Use RelAvatarLink() in GetActAvatar() ( #2800 )
2017-10-31 16:08:23 +08:00
Lauris BH
b1820d6a29
Fix Git LFS object/repo link storage in database and small refactoring ( #2803 )
2017-10-30 20:11:56 +08:00
Ethan Koenig
4b67615f41
Make URL scheme unambiguous ( #2408 )
...
* Make URL scheme unambiguous
Redirect old routes to new routes
* Fix redirects to new URL scheme, and update template
* Fix branches/_new endpoints, and update integration test
2017-10-30 10:04:25 +08:00
Ethan Koenig
77fcf23e82
Code/repo search ( #2582 )
...
Indexed search of repository contents (for default branch only)
2017-10-27 09:10:54 +03:00