Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-02Remove old migrations and specsHeinrich Lee Yu
This removes old migrations that violate the FactoriesinMigrationSpecs cop
2019-07-02Squash old migrationsNick Thomas
Use the `squasher` gem to squash migrations older than the start of 2018
2019-06-25refactor(db): remove Sentry from application settings, disable_ddl_transactionRoger Meier
2019-06-25refactor(db): remove Sentry from application settingsRoger Meier
2019-06-25refactor: remove Sentry from application settingsRoger Meier
2019-06-24Merge branch 'sync-merge-ref-upon-mergeability-check' into 'master'Douwe Maan
Automatically update MR merge-ref along merge status See merge request gitlab-org/gitlab-ce!29569
2019-06-21Merge branch 'db/update-geo-nodes-primary' into 'master'Andreas Brandl
Disallow `NULL` values for `geo_nodes.primary` column Closes gitlab-ee#12061 See merge request gitlab-org/gitlab-ce!29818
2019-06-21Merge branch '62772-migrate-managed-clusters-to-unmanaged' into 'master'Thong Kuah
Migrate managed clusters that aren't using managed features to unmanaged Closes #62772 See merge request gitlab-org/gitlab-ce!29251
2019-06-21Migrate clusters with no token to unmanagedTiger
There are clusters that have Kubernetes namespaces stored which are missing a service account token. These namespaces are unable to be used for deployments, so marking the clusters as unmanaged will allow the platform credentials to be used instead.
2019-06-20Automatically update MR merge-ref along merge statusOswaldo Ferreira
This couples the code that transitions the `MergeRequest#merge_status` and refs/merge-requests/:iid/merge ref update. In general, instead of directly telling `MergeToRefService` to update the merge ref, we should rely on `MergeabilityCheckService` to keep both the merge status and merge ref synced. Now, if the merge_status is `can_be_merged` it means the merge-ref is also updated to the latest. We've also updated the logic to be more systematic and less user-based.
2019-06-20Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Arun Kumar Mohan
db/update-geo-nodes-primary
2019-06-19Remove import columns from projects tableStan Hu
In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21497, we migrated all project import data into a separate table, `project_import_data`. In addition, we also added: ``` ignore_column :import_status, :import_jid, :import_error ``` In https://gitlab.com/gitlab-com/gl-infra/production/issues/908, we observed some of these `import_error` columns consumed megabytes of error backtraces and caused slow loading of projects whenever a `SELECT * from projects` query loaded the row into memory. Since we have long migrated away from these columns, we can now drop these columns entirely.
2019-06-19Disallow `NULL` values for `geo_nodes.primary` columnArun Kumar Mohan
2019-06-18Merge branch '57918-encrypt-feature-flags-tokens' into 'master'Kamil Trzciński
Add migrations needed to encrypt feature flags client tokens See merge request gitlab-org/gitlab-ce!29320
2019-06-18Merge branch 'ashmckenzie/add-created-at-index-to-events' into 'master'Thong Kuah
Add index to events and audit_events tables Closes gitlab-com/Product#309 See merge request gitlab-org/gitlab-ce!29194
2019-06-18Merge branch 'migrate_k8s_service_integration' into 'master'Thong Kuah
Migrate Kubernetes service integration templates to clusters See merge request gitlab-org/gitlab-ce!28534
2019-06-18Add index to events and audit_events tablesAsh McKenzie
Index on created_at, author_id
2019-06-18Add migrations needed to encrypt feature flags client tokensKrasimir Angelov
Make plaintext token column not null, add new token_encrypted column and index on project_id & token_encrypted. Post deployment migration to encrypt existing tokens.
2019-06-17Backport the EE schema and migrations to CEYorick Peterse
This backports all EE schema changes to CE, including EE migrations, ensuring both use the same schema. == Updated tests A spec related to ghost and support bot users had to be modified to make it pass. The spec in question assumes that the "support_bot" column exists when defining the spec. In the single codebase setup this is not the case, as the column is backported in a later migration. Any attempt to use a different schema version or use of "around" blocks to conditionally disable specs won't help, as reverting the backport migration would also drop the "support_bot" column. Removing the "support_bot" tests entirely appears to be the only solution. We also need to update some foreign key tests now that we have backported the EE columns. Fortunately, these changes are very minor. == Backporting migrations This commit moves EE specific migrations (except those for the Geo tracking database) and related files to CE, and also removes any traces of the ee/db directory. Some migrations had to be modified or removed, as they no longer work with the schema being backported. These migrations were all quite old, so we opted for removing them where modifying them would take too much time and effort. Some old migrations were modified in EE, while also existing in CE. In these cases we took the EE code, and in one case removed them entirely. It's not worth spending time trying to merge these changes somehow as we plan to remove old migrations around the release of 12.0, see https://gitlab.com/gitlab-org/gitlab-ce/issues/59177 for more details.
2019-06-14Migrate project level clusters with no Kubernetes namespace to unmanagedTiger
These clusters were created before we introduced the option to manage your own cluster, and not having a Kubernetes namespace present means that we have tried and failed to create one - and therefore we cannot manage your cluster for you. The 5 minute window should prevent a race condition where a cluster has only just been created and we haven't had a chance to create any resources for it yet.
2019-06-10Avoid DB timeouts when scheduling migrationsOswaldo Ferreira
2019-06-06Add certificate valid time to pages domain tableVladimir Shushlin
Save certificate validity time for pages domains on save Fill validity time for existing pages domains in background migration
2019-06-06Revert "Merge branch 'pages-domain_ssl-valid-period' into 'master'"Nick Thomas
This reverts merge request !28743
2019-06-06Add certificate valid time to pages domain tableVladimir Shushlin
Save certificate validity time for pages domains on save Fill validity time for existing pages domains in background migration
2019-05-31Merge branch 'osw-reset-merge-status-from-mergeable-mrs' into 'master'Douglas Barbosa Alexandre
Reset merge status from mergeable MRs See merge request gitlab-org/gitlab-ce!28843
2019-05-31Reset merge status from mergeable MRsOswaldo Ferreira
Adds migrations to reset the merge_status of opened, mergeable MRs. That's required by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28513 so we're able to sync the status update along merge-ref, without leaving MRs with a stale merge-ref.
2019-05-31Postmigrate to drop domain columnThong Kuah
Now that the column is ignored, we can safely drop the column
2019-05-30When an instance cluster already exists migrate disabledJames Fargher
Assume that if an instance level cluster already exists, then the KubernetesService was not being used, but allow the admin to re-enable it if required
2019-05-30Migrate Kubernetes service integration templates to clustersJames Fargher
The migration uses active record model stubs so that field encryption can be more easily used.
2019-05-29Add wiki size to project statisticsPeter Marko
2019-05-17Merge branch 'pl-fix-warning' into 'master'Andreas Brandl
Remove duplicate definition of DOWNTIME See merge request gitlab-org/gitlab-ce!28294
2019-05-17Add extra checks for ci_id migrationDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-05-13Remove duplicate definition of DOWNTIMEPeter Leitzen
This silences the warning: 20190301081611_migrate_project_migrate_sidekiq_queue.rb:8: warning: already initialized constant MigrateProjectMigrateSidekiqQueue::DOWNTIME
2019-05-06Fix issuables state_id nil when importing projects from GitHubFelipe Artur
Issues and merge requests imported from GitHub are having state_id set to null. This fixes the GitHub project importer and schedule migrations to fix state_id.
2019-05-02Remove unused projects.ci_id columnDmitriy Zaporozhets
And remove Gitlab::Ci::Trace#deprecated_path as it relies on ci_id Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-04-06Clean up `noteable_id` for notes on commitsHeinrich Lee Yu
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`
2019-04-04Add v2 to reserved top level routesDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-03-27Merge masterFelipe Artur
2019-03-26Add multiple assignees migration and table populationOswaldo Ferreira
This will be further required for supporting multi-assignees MRs
2019-03-01Remove auto vacuum logic, decrease batch size and intervalFelipe Artur
2019-03-01Migrate sidekiq queue to the new :hashed_storage namespaceGabriel Mazetto
`project_migrate_hashed_storage` is now `hashed_storage:hashed_storage_project_migrate`
2019-02-20Remove undigested token column from personal_access_tokens tableImre Farkas
Token column are no longer used as token values are stored digested in token_digest.
2019-02-19Address review commentsFelipe Artur
2019-02-19Add more specs and code improvementsFelipe Artur
2019-02-14Split background migration for issues and merge requestsFelipe Artur
2019-02-04Addresses backend/db review commentsMayra Cabrera
- 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)
2019-02-04Fix template labelsFelipe Artur
2019-01-31Fix tree restorer visibility levelJames Lopez
2019-01-29Add migration to cleanup iid recordsAndreas Brandl
2019-01-25Sidekiq queue migration for HashedStorage::MigratorWorkerGabriel Mazetto
Migrate jobs from `storage_migrator` to `hashed_storage:hashed_storage_migrator`.