summaryrefslogtreecommitdiff
path: root/spec/migrations
Commit message (Collapse)AuthorAgeFilesLines
* Clean up `noteable_id` for notes on commits58612-clean-up-notes-dataHeinrich Lee Yu2019-04-061-0/+34
| | | | | | | This was incorrectly set by a bug in: https://gitlab.com/gitlab-org/gitlab-ce/issues/54924 Also adds a `batch_size` option to `update_column_in_batches`
* Merge branch '57493-add-limit-to-user-name' into 'master'Andreas Brandl2019-04-051-0/+21
|\ | | | | | | | | Add a length limit of 128 char to the user name field See merge request gitlab-org/gitlab-ce!26146
| * Add limit of 128 characters to users name57493-add-limit-to-user-nameBrandon Labuschagne2019-04-051-0/+21
| | | | | | | | | | Truncate existing users names which exceed 128 characters Include test for truncating users names
* | Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-051-3/+3
|/ | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Fix an order-dependent spec failure in ↵Nick Thomas2019-04-042-2/+2
| | | | spec/migrations/schedule_sync_issuables_state_id_spec.rb
* Merge branch 'issue_51789_part_1' into 'master'Sean McGivern2019-04-021-0/+81
|\ | | | | | | | | | | | | Migrate issuable states to integer patch 1 of 2 Closes #51789 See merge request gitlab-org/gitlab-ce!25107
| * Address review commentsFelipe Artur2019-03-281-17/+10
| |
| * Merge masterFelipe Artur2019-03-2711-95/+196
| |\
| * | Remove auto vacuum logic, decrease batch size and intervalFelipe Artur2019-03-011-33/+2
| | |
| * | Add more specs and code improvementsFelipe Artur2019-02-191-16/+37
| | |
| * | Make migrations reschedulableFelipe Artur2019-02-181-0/+45
| | |
| * | Split background migration for issues and merge requestsFelipe Artur2019-02-141-8/+8
| | |
| * | Schedule background migrations and specsFelipe Artur2019-02-121-48/+12
| | |
| * | Migrate issuable states to integer patch 1Felipe Artur2019-02-111-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | Patch 1 that migrates issues/merge requests states from integer to string. On this commit we are only adding the state_id column and syncing it with a backgroud migration. On Patch 2 the code to use the new integer column will be deployed and the old column will be removed.
* | | Refactor subbed_worker callsrefactor/ce_stubbed_workerJoão Cunha2019-03-286-76/+40
| |/ |/| | | | | | | - Creates a support/helper file and moves all the duplication defs into it
* | Add multiple assignees migration and table populationOswaldo Ferreira2019-03-251-0/+47
| | | | | | | | This will be further required for supporting multi-assignees MRs
* | Merge branch 'ce-reduce-diff-with-ee-in-migration-spec' into 'master'Lin Jen-Shin2019-03-151-32/+51
|\ \ | | | | | | | | | | | | [CE] Reduce differences with EE in a migration spec See merge request gitlab-org/gitlab-ce!26162
| * | Reduce differences with EE in a migration specRémy Coutable2019-03-141-32/+51
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Remove factories from MigrateUserProjectView specSean McGivern2019-03-141-3/+3
| | |
* | | Remove factories from user activities migration specSean McGivern2019-03-141-3/+3
| | |
* | | Remove factories from MigrateOldArtifacts specSean McGivern2019-03-141-13/+19
| | |
* | | Remove factories from AddHeadPipelineForEachMergeRequest specSean McGivern2019-03-141-13/+11
|/ /
* | Remove factories from IssuesMovedToIdForeignKey specSean McGivern2019-03-121-8/+7
| |
* | Remove factories from projects cleanup specSean McGivern2019-03-121-11/+8
| |
* | Remove factories from CalculateConvDevIndexPercentages specSean McGivern2019-03-121-2/+20
| |
* | Remove factories from AddForeignKeysToTodos specSean McGivern2019-03-121-1/+1
| |
* | Remove factories from MovePersonalSnippetsFiles specSean McGivern2019-03-121-9/+26
| |
* | Revert "Merge branch '54924-clean-up-data' into 'master'"Robert Speicher2019-03-061-34/+0
| | | | | | | | | | This reverts commit c9ecc71ab91b0b55f9aba632f9e7b305191a458c, reversing changes made to c3c8dbf8fa4090bb090071d320a31857eb709d3d.
* | Clean up `noteable_id` for notes on commitsHeinrich Lee Yu2019-03-011-0/+34
|/ | | | | This was incorrectly set by a bug in: https://gitlab.com/gitlab-org/gitlab-ce/issues/54924
* Merge branch '57397-fixes-technical-debt-for-cluster-domain' into 'master'Grzegorz Bizon2019-02-081-4/+12
|\ | | | | | | | | | | | | Fixes technical debt issues for cluster domain Closes #57397 See merge request gitlab-org/gitlab-ce!25010
| * Fixes technical debt issues for cluster domain57397-fixes-technical-debt-for-cluster-domainMayra Cabrera2019-02-071-4/+12
| | | | | | | | | | | | | | - Avoid using direct code on spec migration - Removes milestone and point to issue, to avoid making fake promises Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57397
* | Fix migration failure9255-implement-access-controls-when-sso-enforcement-enabled-ceJames Lopez2019-02-071-0/+4
|/
* Addresses backend/db review commentsMayra Cabrera2019-02-041-1/+1
| | | | | | | | | - Fixes multiple typos on AutoDevops script - Add an alias to Clusters::Cluster#domain as base_domain, so it's more descriptive - Removes unnecessary memoization on qa specs - Changes migration to a post migration to deal better with traffic on big instances (like gitlab.com)
* Use a single sql statement for ADO queryMayra Cabrera2019-02-041-2/+8
| | | | | | Since cluster_projects table does not have a lot of records, currently it has 11,638, it seems better to use a single sql statement to update all the records
* Moves domain setting to Cluster settingMayra Cabrera2019-02-041-0/+100
| | | | | | | | | | | | Changes domain field to be on the Cluster page show, removing it from Auto DevOps setting. Also injects the new environment variable KUBE_INGRESS_BASE_DOMAIN into kubernetes#predefined_variables. Migration to move the information from ProjectAutoDevops#domain to Clusters::Cluster#domain. As well as necessary modifications to qa selectors Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52363
* Fix template labelsFelipe Artur2019-02-041-0/+36
|
* Fix tree restorer visibility levelJames Lopez2019-01-311-0/+86
|
* Sidekiq queue migration for HashedStorage::MigratorWorkerGabriel Mazetto2019-01-251-0/+47
| | | | | Migrate jobs from `storage_migrator` to `hashed_storage:hashed_storage_migrator`.
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Refactored AfterRenameService to reduce couplingGabriel Mazetto2019-01-222-6/+4
| | | | | | | | | | | We still rely on the Dirty API for project rename (before/after) values, but we don't access the dirty api from the service class anymore. The previous value is now part of the initialization, which makes it easier to test and the behavior is clearer. The same was done with the `rename_repo` on the Storage classes, we now provide before and after values as part of the method signature.
* Merge branch 'docs-fix-migrations-readme' into 'master'Robert Speicher2019-01-181-16/+60
|\ | | | | | | | | Improvements for spec migration readme See merge request gitlab-org/gitlab-ce!24440
| * Reorders migrations readme fileMayra Cabrera2019-01-171-16/+60
| | | | | | | | | | | | | | | | The document is now split in two sections: - Testing an ActiveRecord migration - Testing an non-ActiveRecord migration Both sections have an example
* | Cleanup legacy artifact background migrationShinya Maeda2019-01-171-0/+52
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add migration and spec commit 3cc12e1268a6865f524d8fab1804f018312fdf5a Author: Shinya Maeda <shinya@gitlab.com> Date: Tue Jan 8 19:34:31 2019 +0900 Add changelog to this change commit 5006fc96e38db514956a35f53ae8ee536548a2e9 Author: Shinya Maeda <shinya@gitlab.com> Date: Tue Jan 8 19:32:56 2019 +0900 Remove partial index from ci_builds artifact_file ok Update schema commit 3c956bdc02b195bc67d0327bf3748a631ea5466d Author: Shinya Maeda <shinya@gitlab.com> Date: Mon Jan 7 21:41:27 2019 +0900 Add frozen_string_literal: true commit 8c827cd616890160e6e8908843403a6f20c03236 Author: Shinya Maeda <shinya@gitlab.com> Date: Mon Jan 7 21:40:06 2019 +0900 Set batch size 100 commit aeee559777d3bdeadfd2b9bb61d460f2dc1fa8a6 Author: Shinya Maeda <shinya@gitlab.com> Date: Fri Jan 4 18:33:05 2019 +0900 Cleanup legacy artifact background migration
* Fix RSpec/FactoriesInMigrationSpecs in two filesRémy Coutable2019-01-152-7/+11
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add config_options|variables to BuildMetadatakamil-refactor-ci-builds-v5Kamil Trzciński2019-01-041-0/+7
| | | | | | | | | | | These are data columns that store runtime configuration of build needed to execute it on runner and within pipeline. The definition of this data is that once used, and when no longer needed (due to retry capability) they can be freely removed. They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking support for json datatype on old enough version).
* Rename `ClusterPlatformConfigureWorker`George Tsiolis2018-12-211-0/+68
|
* Add name, author and sha to releasesAlessio Caiazza2018-12-131-0/+23
| | | | | | This commit adds a name to each release, defaulting it to tag name, keeps track of the SHA when a new release is created and tracks the current user as release author.
* Populate MR metrics with events table information (migration)osw-update-mr-metrics-with-events-dataOswaldo Ferreira2018-12-061-0/+47
|
* Merge commit '83f0798e7dc588f0e4cb6816daadeef7dbfc8b81' into ↵Grzegorz Bizon2018-12-042-9/+11
|\ | | | | | | | | | | fix/gb/encrypt-runners-tokens * commit '83f0798e7dc588f0e4cb6816daadeef7dbfc8b81': (101 commits)
| * Merge branch '6861-group-level-project-templates-ce' into 'master'Phil Hughes2018-11-302-9/+11
| |\ | | | | | | | | | | | | Backport from gitlab-org/gitlab-ee!6878 See merge request gitlab-org/gitlab-ce!23391