aboutsummaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* fix duplicated file on pull request conflicted files (#7211) (#7214)Lunny Xiao2019-06-151-1/+11
|
* Detect noreply email address as user (#7133) (#7195)zeripath2019-06-131-0/+13
|
* Handle early git version's lack of get-url (#7065) (#7076)techknowlogick2019-05-291-1/+12
|
* fix possbile mysql invalid connnection error (#7051) (#7071)Lunny Xiao2019-05-291-0/+6
|
* Fix default for allowing new organization creation for new users (#7017) (#7034)jpicht2019-05-252-2/+3
| | | | | | | | | | | | * FIX issue 6542 When creating users DefaultAllowCreateOrganization was ignored. Signed-off-by: Julian Picht <julian.picht@gmail.com> * fix TestCreateUser_Issue5882 Signed-off-by: Julian Picht <julian.picht@gmail.com>
* SearchRepositoryByName improvements and unification (#6897) (#7002)Lauris BH2019-05-212-66/+74
| | | | | | | | | | | | | | | | | | * SearchRepositoryByName improvements and unification (#6897) * Update tests Co-Authored-By: zeripath <art27@cantab.net> * Update tests Co-Authored-By: zeripath <art27@cantab.net> * Update tests Co-Authored-By: zeripath <art27@cantab.net> * Fix tests
* fix u2f registrationlist ToRegistrations() method (#6980) (#6982)David Schneiderbauer2019-05-181-1/+1
|
* Allow collaborators to view repo owned by private org (#6965) (#6968)mrsdizzie2019-05-162-4/+18
| | | | | | | | | | | | * Allow collaborators to view repo owned private org (#6965) Handle case where an orginization is private but a user who is not a member of the orgninization has been added as a collaborator of a repo within that org Fixes #6962 * Match release/v1.8 fixtures
* Escape the commit message on issues update (#6901) (#6902)zeripath2019-05-101-1/+2
|
* Fix 404 when send pull request some situation (#6871) (#6873)Lunny Xiao2019-05-081-0/+28
|
* fix 500 when reviewer is deleted with integration tests (#6856) (#6860)Lunny Xiao2019-05-063-0/+22
|
* Attempt to fix #6707 (#6823) (#6854)zeripath2019-05-061-1/+8
|
* Fix double-generation of scratch token (backport #6833) (#6835)SagePtr2019-05-031-5/+1
|
* When mirroring we should set the remote to mirror (#6824) (#6834)zeripath2019-05-021-1/+1
|
* Fix org visibility bug when git cloning (#6743) (#6762)Lunny Xiao2019-04-267-4/+185
| | | | | | | | | | | | | * fix org visibility bug * fix permission check * add integration tests * fix tests * change test user name for easier maintainance and fix test * fix test git repo name
* Fix: Sort repos on org home page with non-admin login (#6741) (#6746)Lunny Xiao2019-04-241-3/+11
|
* Drop is_bare IDX only when it exists for MySQL and MariaDB (#6736) (#6744)Lanre Adelowo2019-04-241-0/+10
| | | | | * Drop is_bare IDX only when it exists * show indexes only on mysql or mariadb
* Fix forking an empty repository (#6637) (#6653)Segev Finer2019-04-161-0/+1
| | | | | Fixes #6633 Signed-off-by: Segev Finer <segev@codeocean.com>
* [backport] Fix wrong GPG expire date (#6643) (#6644)Antoine GIRARD2019-04-162-6/+162
| | | | | | * fix expire of gpg relative to key creation https://tools.ietf.org/html/rfc4880#section-5.2.3.6 * add test
* Correctly adjust mirror url (#6593) (#6594)zeripath2019-04-122-11/+20
|
* fix mail notification when close/reopen issue (#6581) (#6588)Lunny Xiao2019-04-121-4/+12
|
* fix bug when user login and want to resend register confirmation email ↵Lauris BH2019-04-021-6/+6
| | | | (#6482) (#6486)
* Fixed unitTypeCode not being used (#6419) (#6422)kolaente2019-03-241-1/+1
|
* fix dump table name error and add some test for dump database (#6394) (#6402)Lunny Xiao2019-03-213-3/+21
|
* fix migrations 82 to ignore unsynced tags between database and git data and ↵Lunny Xiao2019-03-211-6/+40
| | | | missing is_archived on repository table (#6387) (#6403)
* make sure units of a team are returned (#6379) (#6381)Lanre Adelowo2019-03-191-0/+5
|
* Clean up various use of escape/unescape functions for URL generation (#6334)mrsdizzie2019-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use PathUnescape instead of QueryUnescape when working with branch names Currently branch names with a '+' fail in certain situations because QueryUnescape replaces the + character with a blank space. Using PathUnescape should be better since it is defined as: // PathUnescape is identical to QueryUnescape except that it does not // unescape '+' to ' ' (space). Fixes #6333 * Change error to match new function name * Add new util function PathEscapeSegments This function simply runs PathEscape on each segment of a path without touching the forward slash itself. We want to use this instead of PathEscape/QueryEscape in most cases because a forward slash is a valid name for a branch etc... and we don't want that escaped in a URL. Putting this in new file url.go and also moving a couple similar functions into that file as well. * Use EscapePathSegments where appropriate Replace various uses of EscapePath/EscapeQuery with new EscapePathSegments. Also remove uncessary uses of various escape/unescape functions when the text had already been escaped or was not escaped. * Reformat comment to make drone build happy * Remove no longer used url library * Requested code changes
* Fix ParsePatch function to work with quoted diff --git strings (#6323)mrsdizzie2019-03-142-0/+65
| | | | | | | | | | | | | | | | * Fix ParsePatch to work properly with quoted diff --git string Currently ParsePatch fails when a diff contains a quoted diff line like: diff --git "a/file" "b/file" This patch makes it properly parse the line when that happens. Fixes #6309 * Add test for regular case while here * Simplify string modification
* Fix reported issue in repo description (#6306)zeripath2019-03-111-3/+5
|
* update git vendor to fix wrong release commit id and add migrations (#6224)Lunny Xiao2019-03-113-4/+94
| | | | | | | | | | * update git vendor to fix wrong release commit id and add migrations * fix count * fix migration release * fix tests
* Remove util.RemoveAll - should have been removed since go 1.7 (#6299)zeripath2019-03-101-1/+2
|
* Copyedit docs (#6275)Aidan Fitzgerald2019-03-092-2/+2
|
* Integrate OAuth2 Provider (#5378)Jonas Franz2019-03-088-0/+732
|
* Add robots.txt as reserved username (#6272)techknowlogick2019-03-071-0/+1
| | | Fix #6271
* Add ability to sort issues by due date (#6206) (#6244)stevegt2019-03-051-0/+4
| | | Signed-off-by: Steve Traugott <stevegt@t7a.org>
* Prevent double-close of issues (#6233)zeripath2019-03-041-1/+7
|
* Override xorm type mapping for U2F counter (#6232)Maurizio Porrato2019-03-044-1/+43
|
* add isAdmin to user model (#6231)Lanre Adelowo2019-03-032-0/+18
| | | | | update vendor and add tests fix swagger
* Fix renames over redirects (#6216)James E. Blair2019-03-021-1/+17
| | | | | | | | | | | | | | | | In #6211, we started creating repo_redirects for ownership transfers, however that opens an edge case where a user might perform the following sequence: rename org1/repo1 -> org1/repo2 (creates org1/repo1 redirect) transfer org2/repo1 -> org1/repo1 (org1/repo1 redirect continues to exist) rename org1/repo1 -> org1/repo3 (fails due to existing org1/repo1 redirect) This change ensures that each time we rename or transfer a repo, we delete any existing redirects at the target location. This already happens when a new repo is created. By doing this we ensure that we'll never have both a repo and a redirect at the same location. Signed-off-by: James E. Blair <jeblair@redhat.com>
* Add "ghost" and "notifications" to list of reserved user names. (#6208)tklein232019-02-271-0/+2
|
* Change sqlite DB path default to data directory (#6198)John Olheiser2019-02-271-1/+2
|
* fix bug when update owner team then visit team's repo return 404 (#6119)Lunny Xiao2019-02-222-0/+20
|
* Admins can now do unlimited page size user search (listAllUsers & ↵John Olheiser2019-02-211-0/+3
| | | | | listAllOrgs) (#6143) Non-admins will default to 10 page size
* Add more tests and docs for issue indexer, add db indexer type for searching ↵Lunny Xiao2019-02-212-0/+59
| | | | | | | | | | | | | | from database (#6144) * add more tests and docs for issue indexer, add db indexer type for searching from database * fix typo * fix typo * fix lint * improve docs
* refactor issue indexer, add some testing and fix a bug (#6131)Lunny Xiao2019-02-213-152/+5
| | | | | | | | * refactor issue indexer, add some testing and fix a bug * fix error copyright year on comment header * issues indexer package import keep consistent
* Refactor issue indexer (#5363)Lunny Xiao2019-02-196-94/+126
|
* Show email if the authenticated user owns the profile page being requested ↵Lanre Adelowo2019-02-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | for (#4981) * Show email if the authenticated user owns the profile page being requested for. Also removed `setting.UI.ShowUserEmail` as it's documentation says it only controls the email setting on the explore page * fix current user check... This prevents a panic as a user must be signed in before ctx.User is called * fix panic in tests * try to fix tests * Update year * Test CI fail * Revert change * User 3 is not allowed to authorize * Set user2 email to be private * Change to user4 in explore page as user2 now has private email option set
* Fix prohibit login check on authorization (#6106)Lunny Xiao2019-02-192-4/+55
| | | | | | | | | | | | * fix bug prohibit login not applied on dashboard * fix tests * fix bug user status leak * fix typo * return after render
* Implement "conversation lock" for issue comments (#5073)Lanre Adelowo2019-02-185-0/+79
|
* Allow to set organization visibility (public, internal, private) (#1763)Rémy Boulanouar2019-02-185-13/+194
|