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-08-27Added EncryptDeployTokensTokens spec fileEtienne Baqué
2019-08-24Add a link to docs in project descriptionReuben Pereira
Add to the service and migration both.
2019-07-29Migrations for adding issue_id to versions tableLuke Duncalfe
These migrations do the following: - Adds a new `issue_id` column to `versions`. This fixes an n+1 problem when loading versions for an issue in GraphQL as AR can now load from cache - Change the unique restraint on versions.sha to be scoped to `issue_id` as in order to import version data, we need to allow duplicate `sha` values for versions - Update all versions with an `issue_id` https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
2019-07-25Add default for outbound_local_requests_whitelistThong Kuah
It needs to default to an empty array logically.
2019-07-17Fix wrong pages access level defaultVladimir Shushlin
- Set access level in before_validation hook - Add post migration for updating existing project_features
2019-07-12Upgrade to Rails 5.2Heinrich Lee Yu
Updates changed method names and fixes spec failures
2019-07-03Change occurrence of Sidekiq::Testing.inline!Reuben Pereira
- Change it to perform_enqueued_jobs
2019-07-03Merge branch '44990-remove-old-i' into 'master'Nick Thomas
Remove old migration specs that violate FactoriesInMigrationSpecs See merge request gitlab-org/gitlab-ce!30280
2019-07-03Show upcoming status for releasesJason Goodman
Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
2019-07-02Remove old migrations and specsHeinrich Lee Yu
This removes old migrations that violate the FactoriesinMigrationSpecs cop
2019-07-02Remove migration specs from 201[4567]Nick Thomas
Since the migrations are gone, we don't need these specs either
2019-06-25Prevent EE backport migrations from running if CE is not migratedStan Hu
If a user upgraded to any GitLab 11.x EE version but switched back to CE, it's possible the state of the EE tables are not in the right state for the EE backport migration to work properly. In particular, there were three tables that had trouble: * epics * geo_event_log * vulnerability_feedback The EE backport migration would fail while trying to add foreign key constraints because a key didn't exist in the table. This happens because any EE migration that add or removed columns between v11.0.0 and v11.11.3 are not guaranteed to be applied in an CE installation. The EE backport schema does not individually backport these migrations. We now check if certain columns are present to determine whether the backport migration is in the proper state. CE users are required to upgrade to v11.11.3 EE if they ever installed EE previously before they can go back to v12.x CE. Tested via: ``` git checkout -f v11.0.0-ee bundle exec rake db:reset git checkout .; git checkout -f v11.11.3 bundle exec rake db:migrate git checkout .; git checkout -f v12.0.0 bundle exec rake db:migrate <failure happens> ```
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 '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-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 '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 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-11Fix null source_project_id in pool_repositoriesJohn Cai
Due to a bug, some pool_repositories in production have a null source_project_id column. This migration aims to fix those rows.
2019-06-10Avoid DB timeouts when scheduling migrationsOswaldo Ferreira
2019-06-07Merge branch '62418-project-default-git-depth' into 'master'Kamil Trzciński
Add project level git depth setting Closes #59688 See merge request gitlab-org/gitlab-ce!28919
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-06-06Fix migration specs using factoriesKrasimir Angelov
We need to stub default_git_depth and default_git_depth= because some old migrations specs try to create a record using schema before that column was introduced.
2019-06-06Add project level git depth settingKrasimir Angelov
Introduce default_git_depth in project's CI/CD settings and set it to 50. Use it if there is no GIT_DEPTH variable specified. Apply this default only to newly created projects and keep it nil for old ones in order to not break pipelines that rely on non-shallow clones. default_git_depth can be updated from CI/CD Settings in the UI, must be either nil or integer between 0 and 1000 (incl). Inherit default_git_depth from the origin project when forking projects. MR pipelines are run on a MR ref (refs/merge-requests/:iid/merge) and it contains unique commit (i.e. merge commit) which doesn't exist in the other branch/tags refs. We need to add it cause otherwise it may break pipelines for old projects that have already enabled Pipelines for merge results and have git depth 0. Document new default_git_depth project CI/CD setting
2019-06-02Fix migration failure when groups are missing routeStan Hu
When a Group is missing a route, the migration failed previously with a `Invalid single-table inheritance type` error. To fix this, we can disable STI for the migration class because we don't need to know about the type to do this migration. Besides, currently Group is the only type used in the type column. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58714
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-31Merge branch 'remove-legacy-artifacts-related-code' into 'master'Kamil Trzciński
Remove legacy artifact related code Closes #58595 See merge request gitlab-org/gitlab-ce!26475
2019-05-31Remove nils from project_statistics.packages_sizeAlessio Caiazza
Now it defaults to 0
2019-05-31Generate lets_encrypt_private_key on the flyVladimir Shushlin
Remove migration generating lets encrypt key Don't generate private_key if database is readonly For reference: This reverts commit 988a7f70489b99383b95e9f271a2caf6bb5b3a44. This reverts commit 21acbe531592d55caf0e5b8716a3b551dafd6233.
2019-05-31Remove legacy artifact related codeShinya Maeda
We've already migrated all the legacy artifacts to the new realm, which is ci_job_artifacts table. It's time to remove the old code base that is no longer used.
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-28Store Let's Encrypt private key in settingsVladimir Shushlin
Storing this key in secrets.yml was a bad idea, it would require users using HA setups to manually replicate secrets across nodes during update, it also needed support from omnibus package * Revert "Generate Let's Encrypt private key" This reverts commit 444959bfa0b79e827a2a1a7a314acac19390f976. * Add Let's Encrypt private key to settings as encrypted attribute * Generate Let's Encrypt private key in database migration
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-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-05Merge branch '57493-add-limit-to-user-name' into 'master'Andreas Brandl
Add a length limit of 128 char to the user name field See merge request gitlab-org/gitlab-ce!26146
2019-04-05Autocorrect with RSpec/ExampleWording copThong Kuah
- rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
2019-04-05Add limit of 128 characters to users nameBrandon Labuschagne
Truncate existing users names which exceed 128 characters Include test for truncating users names
2019-04-04Fix an order-dependent spec failure in ↵Nick Thomas
spec/migrations/schedule_sync_issuables_state_id_spec.rb
2019-04-02Merge branch 'issue_51789_part_1' into 'master'Sean McGivern
Migrate issuable states to integer patch 1 of 2 Closes #51789 See merge request gitlab-org/gitlab-ce!25107
2019-03-28Refactor subbed_worker callsJoão Cunha
- Creates a support/helper file and moves all the duplication defs into it
2019-03-28Address review commentsFelipe Artur
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