summaryrefslogtreecommitdiff
path: root/spec/migrations
Commit message (Collapse)AuthorAgeFilesLines
* fix typo, added relevant specfix/rc-migration-typoJames Lopez2017-01-162-29/+57
|
* Fill missing authorized projects rowsfill-authorized-projectsYorick Peterse2017-01-111-0/+18
| | | | | | | This ensures that the project_authorizations rows exist for all users for which this data has not yet been populated. Fixes #26194
* Merge branch 'master' into 'dz-rename-reserved-project-names'Dmitriy Zaporozhets2016-12-271-0/+29
|\ | | | | | | # Conflicts: # db/schema.rb
| * Rename users with namespace ending with .gitdz-rename-invalid-usersDmitriy Zaporozhets2016-12-261-0/+29
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fix rename projects spec so it doesn't hangdz-rename-reserved-project-namesYorick Peterse2016-12-271-3/+5
| | | | | | | | | | This spec would hang due to the use of transactions, and would incorrectly stub Thread.new.
* | Rename projects with reserved path namesDmitriy Zaporozhets2016-12-241-0/+45
|/ | | | | | | | We cant have project with name 'project' or 'tree' anymore. This merge request containts a migration that will find and rename all projects using reserved names by adding N digit to the end of the name. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Encode when migrating ProcessCommitWorker jobsprocess-commit-worker-migration-encodingYorick Peterse2016-12-131-2/+25
| | | | | | | | If the source encoding is not UTF-8 we need to encode the data as `JSON.dump` may throw an error if the input can not be converted to UTF-8. We only encode when necessary to reduce the overhead. Fixes gitlab-org/gitlab-ce#25489
* Pass commit data to ProcessCommitWorkerprocess-commit-worker-improvementsYorick Peterse2016-12-011-0/+194
By passing commit data to this worker we remove the need for querying the Git repository for every job. This in turn reduces the time spent processing each job. The migration included migrates jobs from the old format to the new format. For this to work properly it requires downtime as otherwise workers may start producing errors until they're using a newer version of the worker code.