aboutsummaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move swagger-ui under /api/v1 (#2746)Antoine GIRARD2017-10-214-8/+22
| | | | | | | | | | | | * Move swagger interface under /api/v1 * Update swagger-ui * Add /api/swagger and prepare for multiple api version * Update test links * Fix footer link
* Configurable SSH cipher suite (#913)spacetourist2017-10-211-2/+2
| | | | | | | | | | | | * Configurable SSH cipher suite * Update configuration file comment * Add default in settings loading code * Fix fmt and log messsage * Remove default from code as this could probably might not be good idea
* Fix repository search function (#2689)Morlinest2017-10-172-16/+14
| | | | | | | | | | | | | | | | * Fix and remove FIXME * Respect membership visibility * Fix/rewrite searchRepositoryByName function * Add unit tests * Add integration tests * Remove Searcher completely * Remove trailing space
* Render plain text README.txt monospaced (#2721)Jonas Franz2017-10-171-2/+3
| | | Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Merge password and 2fa page on user settings (#2695)Lunny Xiao2017-10-162-41/+33
| | | * merge password and 2fa page on user settings
* Fix PR, milestone and label functionality if issue unit is disabled (#2710)Lauris BH2017-10-166-61/+63
| | | | | | | | | | * Fix PR, milestone and label functionality if issue unit is disabled or not assigned to user * Fix multi-actions in PR page * Change error message * Fix comment update and delete functionality in PR
* Fix plain readme didn't render correctly on repo home page (#2705)Lunny Xiao2017-10-161-12/+7
| | | | | | | | * fix plain readme didn't render correctly on repo home page * fix missing render * remove unused template variables
* Integration test for activity page (#2704)Lauris BH2017-10-161-24/+4
| | | | | | | | * Integration test for activity page * Small code refactoring for acitvity page * Move activity stats calculation logic to model
* Create new branch from branch selection dropdown (#2130)Lauris BH2017-10-152-0/+53
| | | | | | | | | | * Create new branch from branch selection dropdown and rewrite it to VueJS * Make updateLocalCopyToCommit as not exported * Move branch name validation to model * Fix possible race condition
* fix .netrc authentication (#2700)David Schneiderbauer2017-10-151-10/+24
| | | | | | * provide both possible authentication solutions Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-6/+20
| | | | | | | | | | (#2699) * Fix so that user can still fork his own repository to his organizations * Fix to only use owned organizations * Add integration test for forking own repository to owned organization
* Remove direct user adding to organization members (#2641)Lauris BH2017-10-152-42/+0
|
* Add Activity page to repository (#2674)Lauris BH2017-10-152-0/+81
| | | | | | | | | | | | | | * Add Activity page to repository * Add request data for activity * Add issue data for activity * Add user unit right checks * Add releases to activity * Log repository unit loading error
* Remove redudant functions and code (#2652)Morlinest2017-10-102-35/+23
| | | * Remove redudant functions and code
* fix panic on gogs webhook creation (#2675)David Schneiderbauer2017-10-081-2/+2
| | | | | | | | | | * fix panic on gogs webhook creation Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix panic in gogs webhook edit Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Change default sort order (#2647)Kazuki Sawada2017-10-052-9/+10
| | | | | | | | | | | | * sort repositories by `updated_unix` in Explore * Fix UI problem * Added missing sort order "newest" * Change default sort order * fmt