aboutsummaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix wiki page list not rendering after updatedunix changes (#3175)Lauris BH2017-12-131-7/+7
|
* Mention completion for issue editor. (#3136)harry2017-12-112-0/+3
| | | | | | | | | | * new issue mention * Mention completion on new issue and view issue page. * Code format. * Require tribute in pull request page.
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-116-22/+25
| | | | | | | | | | | | | | * 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
* Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092)Antoine GIRARD2017-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix missing branch in release bug (#3108)Ethan Koenig2017-12-082-0/+62
|
* Remove unnecessary function call (#3109)Ethan Koenig2017-12-081-8/+3
|
* Allow adding collaborators with (fullname) (#3103)Sasha Varlamov2017-12-074-6/+38
| | | | | | | | | | * Allow adding collaborators with (fullname) Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> * Refactor username suffix to utils pkg Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Add 'mark all read' option to notifications (#3097)Sasha Varlamov2017-12-072-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Delete a user's public key via admin api (closes #3014) (#3059)Vlad Temian2017-12-063-2/+54
| | | | | | | | | | | | | | | | * 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
* Sort repos in issues dashboard sidebar (#3072)Ethan Koenig2017-12-041-0/+2
| | | | | | * Sort repos in issues dashboard sidebar * Sort repos by name
* Fix error message sanitiziation (#3082)Ethan Koenig2017-12-042-5/+9
|
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-042-3/+156
|
* Fix missing password length check when change password (#3039)Lunny Xiao2017-12-022-1/+71
| | | | | | * fix missing password length check when change password * add tests for change password
* Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)Lunny Xiao2017-12-021-16/+2
| | | | | | | | | | * remove GetRepositoryByRef and add GetRepositoryByOwnerAndName * fix tests * fix tests bug * some improvements
* Default log level to Info without hardcoding it in installer (#3041)Piotr Orzechowski2017-12-011-1/+1
|
* remove unused variable (#3038)Lunny Xiao2017-11-301-1/+0
|
* Unit tests for wiki routers (#3022)Ethan Koenig2017-11-304-20/+190
|
* Set OpenID support on by default when installing new instance (#3010)Sandro Santilli2017-11-291-2/+2
|
* Memory usage improvements (#3013)Duncan Ogilvie2017-11-294-13/+31
| | | | | | | | | | * govendor update code.gitea.io/git Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com> * Greatly improve memory usage Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Fix git lfs path (#3016)Antoine GIRARD2017-11-291-1/+1
| | | | | | | | * add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
* Git LFS lock api (#2938)Antoine GIRARD2017-11-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add fingerprint to ssh key endpoints. (#3009)Vlad Temian2017-11-281-5/+6
| | | | | | * Add fingerprint to ssh key endpoints. * Update gitea sdk vendor
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-282-242/+125
| | | | | | * Update macaron * Various wiki bug fixes
* Fix go-get, src and raw urls to new scheme (#2978)Lauris BH2017-11-273-13/+13
|
* Enable admin to search by email (#2888)Ethan Koenig2017-11-261-2/+3
|
* Fix error when add user has full name to team (#2973)Lunny Xiao2017-11-261-0/+5
| | | | | | * fix error when add user has full name to team * add comment for extra uname check
* Fix files/commits of merged PRs (#2937)Ethan Koenig2017-11-251-8/+30
|
* Remove render issue link (#2954)Timur Makarchuk2017-11-221-13/+0
| | | | | | * Remove function that does nothing * Remove unused import
* Add dingtalk webhook (#2777)Lunny Xiao2017-11-212-6/+77
| | | | | | | | | | | | * add dingtalk webhook type * add vendor * some fixes * fix name check * fix name check & improvment
* Disable add key button if SSH is disabled (#2873)Michael Kuhn2017-11-213-7/+15
|
* Apply LANDING_PAGE config options for logged in users (#2894)schaffman52017-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'. * Updated comments. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'. * Updated comments. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Removed superfluous conditional and correct whitespace. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Update app.ini Reverted new line. * Formatting. Signed-off-by: Mike Schaffer <mschaff@gmail.com>
* Fix comment API paths (#2813)Ethan Koenig2017-11-202-5/+88
|
* Fix API status code for hook creation (#2814)Ethan Koenig2017-11-202-3/+4
| | | | | | * Fix API status code for hook creation * Named constants for response statuses
* Page parameter for repo search API (#2915)Ethan Koenig2017-11-151-3/+8
|
* Update swagger documentation (#2899)Ethan Koenig2017-11-1344-837/+3270
| | | | | | | | | | | * Update swagger documentation Add docs for missing endpoints Add documentation for request parameters Make parameter naming consistent Fix response documentation * Restore delete comments
* Add LFS object verification step after upload (#2868)Lauris BH2017-11-081-0/+1
| | | | | | | | | | | | * Add LFS object verification step after upload * Fix file verification condition and small refactor * Fix URLs * Remove newline and return status 422 on failed verification * Better error hadling
* Fix fork repository cycle to self (#2860)Lunny Xiao2017-11-061-5/+45
| | | | | | * fix fork repository cycle to self * rename testForkRepo to traverseParentRepo
* Fix ignored errors in API route (#2850)Ethan Koenig2017-11-041-10/+24
| | | * Fix ignored errors in API route
* Fix API raw requests for commits and tags (#2841)Lauris BH2017-11-041-1/+1
|
* Set session and indexers' data files rel to AppDataPath (#2192)Guillaume Dube2017-11-031-0/+2
| | | | | | | | | | * 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
* Configurable SSH key exchange algorithm and MAC suite (#2806)Cum Gun2017-11-021-2/+2
|
* Use api.TrackedTime in API (#2807)Ethan Koenig2017-11-011-16/+34
| | | | | | | | * Use api.TrackedTime in API * APIFormat() method * Rename function
* Make URL scheme unambiguous (#2408)Ethan Koenig2017-10-307-43/+75
| | | | | | | | | | * 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
* Code/repo search (#2582)Ethan Koenig2017-10-273-0/+48
| | | Indexed search of repository contents (for default branch only)
* Add search mode option to /api/repo/search (#2756)Morlinest2017-10-273-29/+82
| | | | | | | | | | | | | | | | | | | | | | | | * Add repo type option to /api/repo/search * Add tests and fix result of collaborative filter in specific condition * Fix/optimize search & tests * Improve integration tests * Fix lint errors * Fix unit tests * Change and improve internal implementation of repo search * Use NonexistentID * Make search api more general * Change mirror and fork search behaviour * Fix tests & typo in comment
* Add commit count caching (#2774)Lauris BH2017-10-264-10/+13
| | | | | | | | | | * Add commit count caching * Small refactoring * Add different key prefix for refs and commits * Add configuratuion option to allow to change caching time or disable it
* Add branch overiew page (#2108)Bwko2017-10-263-8/+178
| | | | | | | | * Add branch overiew page * fix changed method name on sub menu * remove unused code
* fix importsLunny Xiao2017-10-251-5/+4
|
* some fixesLunny Xiao2017-10-251-1/+2
|
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-244-60/+23
| | | | | | | | | | | | | | | | | | | | | | | | * hide unactive on explore users and some refactors * fix test for removed Organizations * fix test for removed Organizations * fix imports * fix logic bug * refactor the toConds * Rename TestOrganizations to TestSearchUsers and add tests for users * fix other tests * fix other tests * fix watchers tests * fix comments and remove unused code