summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Fix integration tests (#3141)Ethan Koenig2017-12-111-4/+9
|
* Fix compile failed without gcc (#3130)Lunny Xiao2017-12-101-1/+0
| | | | | | * fix comile failed without gcc * add sqlite tag for unit test
* Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092)Antoine GIRARD2017-12-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * 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 repo indexer and submodule bug (#3107)Ethan Koenig2017-12-071-4/+4
|
* Add 'mark all read' option to notifications (#3097)Sasha Varlamov2017-12-073-4/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-061-4/+1
| | | | | | | | | | | | | | | | * 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
* Tests for reactions (#3083)Lauris BH2017-12-052-2/+168
| | | | | | | | * Unit tests for reactions * Fix import order Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Sort repos in issues dashboard sidebar (#3072)Ethan Koenig2017-12-041-0/+12
| | | | | | * Sort repos in issues dashboard sidebar * Sort repos by name
* Fix error message sanitiziation (#3082)Ethan Koenig2017-12-041-26/+7
|
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-049-2/+354
|
* Fix avatar URLs (#3069)Ethan Koenig2017-12-031-5/+11
| | | | | | * Fix avatar URLs * import order
* Sanitize logs for mirror sync (#3057)Ethan Koenig2017-12-032-8/+46
|
* Fix ref parsing in commit messages (#3067)Ethan Koenig2017-12-033-102/+87
|
* Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)Lunny Xiao2017-12-023-22/+28
| | | | | | | | | | * remove GetRepositoryByRef and add GetRepositoryByOwnerAndName * fix tests * fix tests bug * some improvements
* Unit tests for wiki routers (#3022)Ethan Koenig2017-11-304-33/+65
|
* Fix git lfs path (#3016)Antoine GIRARD2017-11-292-1/+34
| | | | | | | | * add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
* Improve memory usage when reaching diff limits (#2990)Duncan Ogilvie2017-11-291-12/+20
| | | Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Git LFS lock api (#2938)Antoine GIRARD2017-11-283-0/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-284-58/+208
| | | | | | * Update macaron * Various wiki bug fixes
* Don't print SQL in unit tests (#2995)Ethan Koenig2017-11-271-1/+4
| | | * Add GITEA_UNIT_TESTS_VERBOSE environment variable to enable printing SQL
* Enable admin to search by email (#2888)Ethan Koenig2017-11-261-8/+13
|
* Remove unnecessary IssueList attribute loads (#2936)Ethan Koenig2017-11-212-9/+16
|
* Add dingtalk webhook (#2777)Lunny Xiao2017-11-212-4/+210
| | | | | | | | | | | | * 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-212-1/+15
|
* Add deleted_branch table fixture (#2832)Lauris BH2017-11-042-23/+29
| | | | | | | | * Add deleted_branch table fixture * Fix deleted branches tests * Remove unneeded global variable
* Issue content should not be updated when closing with comment (#2833)Lauris BH2017-11-033-18/+18
|
* Set session and indexers' data files rel to AppDataPath (#2192)Guillaume Dube2017-11-031-14/+9
| | | | | | | | | | * 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
* Fix order of comments (#2835)Morlinest2017-11-031-0/+1
|
* Use api.TrackedTime in API (#2807)Ethan Koenig2017-11-011-0/+13
| | | | | | | | * Use api.TrackedTime in API * APIFormat() method * Rename function
* Use RelAvatarLink() in GetActAvatar() (#2800)cstyles2017-10-311-1/+1
|
* Fix Git LFS object/repo link storage in database and small refactoring (#2803)Lauris BH2017-10-301-5/+4
|
* Make URL scheme unambiguous (#2408)Ethan Koenig2017-10-301-6/+15
| | | | | | | | | | * 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-278-10/+367
| | | Indexed search of repository contents (for default branch only)
* Add search mode option to /api/repo/search (#2756)Morlinest2017-10-2711-106/+354
| | | | | | | | | | | | | | | | | | | | | | | | * 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 checks for commits with missing author and time (#2771)Lauris BH2017-10-262-10/+33
| | | | | | * Add checks for commits with missing author and time * Fix validate commits with emails if it has no Author
* don't check minimum key size when disabled (#1754)Gibheer2017-10-261-5/+5
| | | | | | | | | | | | | | * cleanup old comments for ed25519 These comments were added when x/crypto/ed25519 could not yet handle ed25519. It does now, so it should be removed. Also the key type is now replaced with the proper constant. * move the minimum key size config before the check This moves the actual config lookup before any check is done. This avoids problems with calling to ssh-keygen which doesn't support the expected output format and returning an error, when the check is disabled.
* Add commit count caching (#2774)Lauris BH2017-10-262-3/+21
| | | | | | | | | | * 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-265-0/+228
| | | | | | | | * Add branch overiew page * fix changed method name on sub menu * remove unused code
* fix discord hook bug (#2778)Lunny Xiao2017-10-251-0/+4
|
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-2410-90/+104
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Use identicon image for default gravatar. (#2767)harry2017-10-231-2/+2
| | | | | | * Use identicon image for default gravatar. * Fixed tests.
* Use buffersize to reduce database connection when iterate (#2724)Lunny Xiao2017-10-215-6/+6
| | | | | | | | * use buffersize to reduce database connection when iterate * fix typo * add default value on app.ini comment
* Only update mirror last update after successful sync (#2730)Jonas Bröms2017-10-181-1/+2
|
* Fix repository search function (#2689)Morlinest2017-10-177-67/+116
| | | | | | | | | | | | | | | | * Fix and remove FIXME * Respect membership visibility * Fix/rewrite searchRepositoryByName function * Add unit tests * Add integration tests * Remove Searcher completely * Remove trailing space
* Integration test for activity page (#2704)Lauris BH2017-10-161-25/+50
| | | | | | | | * 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-153-35/+178
| | | | | | | | | | * 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 so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-0/+19
| | | | | | | | | | (#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
* Add Activity page to repository (#2674)Lauris BH2017-10-152-1/+260
| | | | | | | | | | | | | | * 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
* Fix organization watch migration (#2703)Lauris BH2017-10-141-1/+1
|
* Allow custom SSH user in UI for built-in SSH server (#2617) (#2678)Patrick G2017-10-141-3/+8
| | | | | | | | | | | | | | | | | * Allow custom SSH user in UI for built-in SSH server (#2617) * Some fixes * Did make fmt * Updated according to review - Renamed config to BUILTIN_SSH_SERVER_USER - Removed unnecessary default string value for config item * Updated according to review * Fixed some minor issues