aboutsummaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Fix rendering of wiki page list if wiki repo contains other files (#3454)Lauris BH2018-02-053-2/+20
| | | | | | * Fix rendering of wiki page list if wiki repo contains other files * Improve wiki filename tests
* Fix synchronization bug in repo indexer (#3455)Ethan Koenig2018-02-051-62/+100
|
* Enable caching on assets and avatars (#3376)Morgan Bazalgette2018-02-041-1/+1
| | | | | | | | | | | | | | * Enable caching on assets and avatars Fixes #3323 * Only set avatar in user BeforeUpdate when there is no avatar set * add error checking after stat * gofmt * Change cache time for avatars to an hour
* Add sensitive headers (#3429)Antoine GIRARD2018-01-311-2/+2
| | | | | | | * Add HeaderWithSensitiveCase methods to respect casing * Update webhook.go
* Fix PR merge error (#3421)Ethan Koenig2018-01-291-5/+1
|
* Fix SQL type error for webhooks (#3424)Ethan Koenig2018-01-291-3/+10
|
* Fix race condition in repo renaming (#3418)Ethan Koenig2018-01-281-1/+6
|
* Fix empty checkout bug (#3419)Ethan Koenig2018-01-281-6/+6
|
* Change local copy origin url after repository rename (#3399)Wendell Sun2018-01-271-1/+10
| | | Fix #3378
* Fix SSH auth lfs locks (#3152)Antoine GIRARD2018-01-272-34/+40
| | | | | | | | | | * Fix SSH auth LFS locks * Activate SSH/lock test * Remove debug * Follow @lunny recommendation for AfterLoad method
* Remove useless check (#3384)Antoine GIRARD2018-01-191-4/+0
| | | In #3377, I put check inside all write key function. This one is useless no.
* Force-push to base repo's ref/pull/#/head (#3393)Sandro Santilli2018-01-191-0/+1
| | | | | | | | | | | * Force-push to base repo's ref/pull/#/head Fixes force-pushing to pull request branches, otherwise failing with: [...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git ! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward) * format
* Change how merged PR commit info are prepared (#3368)Lauris BH2018-01-191-3/+8
| | | | | | | | | | * Change how merged PR commits and diff are made * Update code.gitea.io/git dependency * Fix typo * Remove unneeded local variable
* Delete indexer DB entries when (re)creating index (#3385)Ethan Koenig2018-01-171-0/+7
| | | | * comment
* Add integrations tests from git cli (#3377)Antoine GIRARD2018-01-161-0/+10
| | | | | | | | | | | * test: integration add git cli tests Extracted form for easing review process and debug #3152 * test: integration add git cli big file commit * fix: Don't rewrite key if internal server
* Change reserved avatar name to correct - avatars (#3375)Lauris BH2018-01-161-1/+1
|
* Asynchronously populate the repo indexer (#3366)Ethan Koenig2018-01-141-17/+41
| | | | | | | | * Populate repo indexer in background * Check if no repos exist * race cond
* refactor(model): update user method. (#3360)Bo-Yi Wu2018-01-131-32/+16
|
* Cleanup models.User.HashPassword (#3334)Kim "BKC" Carlbäcker2018-01-122-13/+13
|
* Remove hardcoded paths to fix randomly failing tests (#3347)Lauris BH2018-01-113-3/+11
| | | | | | * Remove hardcoded paths to fix randomly failing tests * Use correct function for merge path
* Change EncodePasswd to HashPassword (#3329)Morgan Bazalgette2018-01-082-4/+43
| | | | | | * Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword
* Remove IsOwner, NumTeams from OrgUser (#3269)Ethan Koenig2018-01-087-77/+63
|
* Add missing indexer doc in configuration (#3324)Antoine GIRARD2018-01-081-1/+1
| | | | | | * Add missing indexer doc in configuration * Unify MAX_FILE_SIZE to 1024 * 1024
* fix bug when a user delete but assigned on issue (#3318)Lunny Xiao2018-01-071-2/+8
|
* Writable deploy keys (closes #671) (#3225)Vlad Temian2018-01-074-4/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add is_writable checkbox to deploy keys interface * Add writable key option to deploy key form * Add support for writable ssh keys in the interface * Rename IsWritable to ReadOnly * Test: create read-only and read-write deploy keys via api * Add DeployKey access mode migration * Update gitea sdk via govendor * Fix deploykey migration * Add unittests for writable deploy keys * Move template text to locale * Remove implicit column update * Remove duplicate locales * Replace ReadOnly field with IsReadOnly method * Fix deploy_keys related integration test * Rename v54 migration with v55 * Fix migration hell
* Add Pull Request merge options - Ignore white-space for conflict checking, ↵Lauris BH2018-01-057-22/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rebase, Squash merge (#3188) * Pull request options migration and UI in settings * Add ignore whitespace functionality * Fix settings if pull requests are disabled * Fix migration transaction * Merge with Rebase functionality * UI changes and related functionality for pull request merging button * Implement squash functionality * Fix rebase merging * Fix pull request merge tests * Add squash and rebase tests * Fix API method to reuse default message functions * Some refactoring and small fixes * Remove more hardcoded values from tests * Remove unneeded check from API method * Fix variable name and comment typo * Fix reset commit count after PR merge
* Serve pull request .diff files (#3293)Sandro Santilli2018-01-051-1/+3
| | | | | | | | | | | | * Serve pull request .diff files Closes #3259 * Add test for pull request redirection and .diff access * Typo * There's no need to test for pr.BaseRepo being nil after calling GetBaseRepo
* Use issue number/index instead of id for API URL. (#3298)Alberto González Palomo2018-01-031-1/+1
| | | | | | | | | | | | | | | | | Using the API calls, the issue objects retrieved by /repos/{owner}/{repo}/issues contains the wrong value in the "url" field: it uses the "id" value instead of the "number" value. For instance, in a new repo in try.gitea.io with just one issue: [{ "id": 896, "url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896", "number": 1, ... }] The given URL does not work, but if you replace the "896" by "1" it does.
* Fixed asterisk based tasklist items, fixed requirement for one char after ↵modmew82018-01-031-2/+2
| | | | | last blank to be a valid task. (#3296) Signed-off-by: modmew8 <modmew8@gmail.com>
* Added progressbar for issues (#1146). (#3171)modmew82018-01-031-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | * Added progressbar for issues (#1146). * Updated the generated index.css. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed stored progress percentage and changed it to css calc. Also added the issue task progress to the user/dashboard/issues. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed unnecessary blanks. Signed-off-by: modmew8 <modmew8@gmail.com> * Formatted the files correctly, fmt-check terminates now without errors. Signed-off-by: modmew8 <modmew8@gmail.com> * Removed variables, made computing the tasks on demand with precompiled regexp. Signed-off-by: modmew8 <modmew8@gmail.com>
* Add repo-sync-releases admin command (#3254)Sandro Santilli2017-12-314-3/+10
| | | | | | | | | | | | | | | | | | * Add repo-sync-releases admin command Will help recovering corrupted database, see #3247 * Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo * Fix debug output about num releases * Introduce RepositoryListDefaultPageSize constant, set to 64 Use it from the new admin command * Use RepositoryListDefaultPageSize in more places * Document RepositoryListDefaultPageSize
* Fix race condition in team functions (#3268)Ethan Koenig2017-12-301-5/+6
|
* go back to using CFB for AES decryption/encryption for 2FA (#3274)Morgan Bazalgette2017-12-311-3/+44
|
* Remove unused consts/vars (#3270)Ethan Koenig2017-12-301-13/+0
|
* Fix bugs in issue dashboard stats (#3073)Ethan Koenig2017-12-264-47/+195
|
* Small improve on deleting attachements (#3145)Lunny Xiao2017-12-241-8/+17
| | | | | | * Small improve on deleting attachements * improve the sequence of deletion
* Add more bench (#3161)Antoine GIRARD2017-12-241-7/+7
| | | | | | * Improve makefile + Add benchs * Apply recommendations of @ethantkoenig
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-216-77/+141
|
* Fix repo-transfer-and-team-repo-count bug (#3241)Ethan Koenig2017-12-192-14/+23
|
* Check ignored errors for issue and milestone count (#3213)Ethan Koenig2017-12-182-20/+52
|
* Remove unnecessary updates to issue indexer (#3212)Ethan Koenig2017-12-173-2/+22
|
* Unit tests for routers/repo/issue_label (#3198)Ethan Koenig2017-12-151-1/+18
|
* Improvements for supporting UI Location (#3146)Lunny Xiao2017-12-143-19/+14
| | | | | | * improvements for supporting UI Location * improved the comment
* Reorder migrations, skip errors if running migration again (#3160)Lauris BH2017-12-1313-292/+301
| | | | | | | | * Reorder migrations, skip errors if running migration again * Rename migration file names to match migration version * Add note about ingored error
* fix org owner cannot be removed if there is not in owner team (#3164)Lunny Xiao2017-12-131-1/+6
|
* Fix Uninitialized variable in ParsePatch (#3156)Kim "BKC" Carlbäcker2017-12-121-1/+1
|
* simple usage of x (#3144)Lunny Xiao2017-12-111-4/+1
|
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-1131-407/+185
| | | | | | | | | | | | | | * 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
* Fixtures for public_key table (#3140)Ethan Koenig2017-12-111-0/+1
|
* Fix integration tests (#3141)Ethan Koenig2017-12-111-4/+9
|