summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR, milestone and label functionality if issue unit is disabled (#2710) ↵Lauris BH2017-10-161-0/+15
| | | | | | | | | | | (#2714) * 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 so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-0/+19
| | | | | | | | | (#2699) (#2707) * 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
* Backport of migration fixes (#2604) (#2677)David Schneiderbauer2017-10-094-23/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rewrite migrations to not depend on future code changes (#2604) * v38 migration used an outdated version of RepoUnit model (#2602) * change repoUnit model in migration * fix v16 migration repo_unit table * fix lint error * move type definition inside function * Fix migration from Gogs * Refactor code * add error check * Additiomal fixes for migrations * Add back nil check * replace deprecated .Id with .ID Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * change string map to interface map Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fixes 500 error on dashboard when using MSSQL (#2504) (#2662)Lauris BH2017-10-051-1/+1
| | | | | | | | | | | | | | MSSQL rejects the query: SELECT "repository"."id" FROM "repository" INNER JOIN "team_repo" ON "team_repo".repo_id="repository".id AND "repository".is_mirror=1 WHERE ( ("repository".owner_id=2 AND "repository".is_private=0) OR team_repo.team_id IN (1) ) GROUP BY "repository".id ORDER BY updated_unix DESC when the order by term (updated_unix) is not included in the group by term.
* Fix deletion of unprotected branches (#2630)David Schneiderbauer2017-10-021-0/+5
| | | | | | | | | | | | * fix deletion of unprotected branches * fmt fix * changed internal protected branch api * fix lint error Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Backport of 2611 / Fix doubled issue tab introduced in migration v16 (#2622)David Schneiderbauer2017-10-012-0/+71
| | | | Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* v38 migration used an outdated version of RepoUnit model (#2602)David Schneiderbauer2017-09-252-18/+32
| | | | | | | | | | | | * change repoUnit model in migration * fix v16 migration repo_unit table * fix lint error * move type definition inside function Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Sync releases table with tags on push and for mirrors (#2459) (#2554)Lauris BH2017-09-216-19/+248
| | | | | | | | | | | | | | * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
* Fix adding branch as protected to not allow pushing to it (#2556)Lauris BH2017-09-203-4/+24
| | | | | | | | * Fix adding branch as protected to not allow pushing to it * Fix can_push value to false in protected_branch (#2560) * Fix integration test
* Backport: Fix lint, fmt and integration testing errors (#2553)Ethan Koenig2017-09-207-33/+7
| | | | | | | | | | * Fix lint errors * Fix fmt errors (#2544) * Hotfix for integration testing (#2473) * Hotfix for integration testing
* Restricting access to fork functioanlity to users with Code access (#2542)Jonas Franz2017-09-191-1/+1
| | | Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix migration from pre-v15 to 1.2.0 (#2460) (#2465)Lauris BH2017-09-051-0/+1
|
* Fix releases to be counted from database not tags (#2389) (#2424)Lauris BH2017-08-301-1/+1
|
* fix duplicated feed (#2370)Lunny Xiao2017-08-281-8/+1
|
* Fix missing collabrative repos (#2367) (#2382)Lunny Xiao2017-08-251-24/+26
| | | | | | | * fix missing collabrative repos * fix bug of collabrative * fix SQL quotes
* Add more test for login links and fix a bug on action retrieve (#2361)Lunny Xiao2017-08-231-1/+1
| | | | * add more test for login links and fix a bug on action retrieve
* Fix SQL condition bug in GetFeeds(..) (#2360)Ethan Koenig2017-08-231-4/+5
|
* Add collaborative repositories to the dashboard (#2205)Bwko2017-08-233-38/+50
| | | | | | | | | | * Add collaborative repositories to the dashboard Remove some unused code from the Dashboard func * fix some bug and some refactor * fix tests
* update latest xorm version to vendor (#2353)Lunny Xiao2017-08-221-1/+1
|
* Trigger sync webhooks on UI commit (#2302)Ethan Koenig2017-08-172-47/+79
| | | | | | * Trigger sync webhooks on UI commit * Also fix UI upload/delete
* Only update needed columns when update user (#2296)Lunny Xiao2017-08-121-4/+29
| | | | | | * only update needed columns when update user * fix missing update_unix column
* fix 500 error when view an issue which's milestone deleted (#2297)Lunny Xiao2017-08-121-1/+1
|
* Convert xorm literal queries to method calls (#2253)G2017-08-042-4/+2
|
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-035-32/+69
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-022-5/+5
|
* Replace calls to xorm UseBool with Where (#2237)G2017-08-012-9/+4
|
* Fix bare-repo bugs (#2199)Ethan Koenig2017-07-272-1/+8
| | | | | | | | * Fix bare-repo bugs * Integration tests * Unused import
* Fix issue updated_unix bug (#2204)Ethan Koenig2017-07-275-0/+73
|
* Fix unclosed session bug (#2214)Ethan Koenig2017-07-261-1/+1
|
* Fix compiling without sqlite and gcc (#2177)Lauris BH2017-07-262-18/+19
|
* Fix PR nil-dereference bug (#2195)Ethan Koenig2017-07-262-7/+91
| | | | | | * Fix PR nil-dereference bug * Revert to original error format
* Fix key usage time update if the key is used in parallel for multiple ↵Lauris BH2017-07-201-4/+9
| | | | operations (#2185)
* Remove unit types commits and settings (#2161)Lauris BH2017-07-1710-77/+114
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Ignore invalid issue numbers in commit messages. Fixes #2022 (#2150)Lauris BH2017-07-123-5/+6
|
* Fix username rendering bug (#2122)Ethan Koenig2017-07-123-4/+34
| | | | | | | | * Fix username rendering bug * XSS integration test * Migration to unescape user full names
* Improve org error handling (#2117)Antoine GIRARD2017-07-064-7/+21
| | | | | | | | | | * Improve ErrOrgNotExist type Return new error type Use good error check Use new method to check error Update tests * Fix unchanged method name report
* Fix unchecked error bug (#2110)Ethan Koenig2017-07-041-1/+4
|
* Fix git hooks update to receive required arguments. Fixes #2090 (#2095)Lauris BH2017-07-024-6/+26
| | | * Changed migration calling so that migrations can use models package
* Fix SQL bug in models.PullRequestsEthan Koenig2017-07-011-2/+1
|
* Merge pull request #2087 from Bwko/fix_error_exitLauris BH2017-06-301-1/+1
|\ | | | | Fix exit status 1 not handled @ getMergeCommit (#2087)
| * Fix exit status 1 not handled @ getMergeCommitBwko2017-06-301-1/+1
| |
* | Merge pull request #2083 from ethantkoenig/check_err/org_avatarAndrey Nering2017-06-291-3/+2
|\ \ | |/ |/| Don't ignore gravatar error
| * Use default avatar on errorEthan Koenig2017-06-291-3/+2
| |
* | Fix release display and correct paging (#2080)Lauris BH2017-06-292-22/+27
|/
* remove unnecessary blank lines and wrong error logLunny Xiao2017-06-281-3/+1
|
* Pagination on releases page (#2035)iszla2017-06-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | * Added count to GetReleasesByRepoID so pagination will work * Separated it out to a new function, can then also leave the API part unaffected * Remove extra whitespace added in untouched function * Added comment and corrected name in error handler * Account for if the user is owner or not in the count * Also check if repo is draft * revert back to the correct count in the ReleasesToDisplay loop * Fixed lint error regarding else with return statement * Use Cond struct instead of string, corrected name in error handler * Removed unused return variable names
* Make time diff translatable (#2057)Lauris BH2017-06-281-3/+3
|
* Setting to disable authorized_keys backup (#1856)Dan Magnus Lindvall2017-06-281-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add setting to disable authorized_keys backup when rewriting public keys Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Update default value to comply with documentation Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Use tmp-file instead of bak-file for saving manually added keys. Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing and build bakpath with sprintf only Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Only close file once Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not modify calcFingerprint Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Fix casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change style from disable to enable Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change name, just SSH_BACKUP_AUTHORIZED_KEYS Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not check for directory existence if backup is disabled Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Fix default ghost assignee bug (#2069)Ethan Koenig2017-06-281-1/+1
|
* Fix "Dashboard shows deleted comments" (#1995)Jonas Franz2017-06-255-0/+73
|