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
path: root/db
AgeCommit message (Collapse)Author
2018-01-09Merge branch 'jej/backport-authorized-keys-to-ce' into 'master'Douwe Maan
Backport authorized_keys Closes gitlab-ee#3953 See merge request gitlab-org/gitlab-ce!16014
2018-01-08Avoid adding index if already existsPaco Guzman
2018-01-08Backport authorized_keys_enabled defaults to true'Michael Kozono
Originally from branch 'fix-authorized-keys-enabled-default-2738' via merge request https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2240 Removed background migrations which were intended to fix state after using Gitlab without a default having been set Squashed commits: Locally, if Spring was not restarted, `current_application_settings` was still cached, which prevented the migration from editing the file. This will also ensure that any app server somehow hitting old cache data will properly default this setting regardless. Retroactively fix migration This allows us to identify customers who ran the broken migration. Their `authorized_keys_enabled` column does not have a default at this point. We will fix the column after we fix the `authorized_keys` file. Fix authorized_keys file if needed Add default to authorized_keys_enabled setting Reminder: The original migration was fixed retroactively a few commits ago, so people who did not ever run GitLab 9.3.0 already have a column that defaults to true and disallows nulls. I have tested on PostgreSQL and MySQL that it is safe to run this migration regardless. Affected customers who did run 9.3.0 are the ones who need this migration to fix the authorized_keys_enabled column. The reason for the retroactive fix plus this migration is that it allows us to run a migration in between to fix the authorized_keys file only for those who ran 9.3.0. Tweaks to address feedback Extract work into background migration Move batch-add-logic to background migration Do the work synchronously to avoid multiple workers attempting to add batches of keys at the same time. Also, make the delete portion wait until after adding is done. Do read and delete work in background migration Fix Rubocop offenses Add changelog entry Inform the user of actions taken or not taken Prevent unnecessary `select`s and `remove_key`s Add logs for action taken Fix optimization Reuse `Gitlab::ShellAdapter` Guarantee the earliest key Fix migration spec for MySQL
2018-01-08Backport option to disable writing to `authorized_keys` fileMichael Kozono
Originally branch 'mk-toggle-writing-to-auth-keys-1631' See merge request !2004 Squashed commits: Add authorized_keys_enabled to Application Settings Ensure default settings are exposed in UI Without this change, `authorized_keys_enabled` is unchecked when it is nil, even if it should be checked by default. Add “Speed up SSH operations” documentation Clarify the reasons for disabling writes Add "How to go back" section Tweak copy Update Application Setting screenshot
2018-01-08Backport authorized_keys branch 'find-key-by-fingerprint'Pablo Carranza
Add find key by base64 key or fingerprint to the internal API See merge request !250 Squashed changes: Add unique index to fingerprint Add new index to schema Add internal api to get ssh key by fingerprint Change API endpoint to authorized_keys Add InsecureKeyFingerprint that calculates the fingerprint without shelling out Add require for gitlab key fingerprint Remove uniqueness of fingerprint index Remove unique option from migration Fix spec style in fingerprint test Fix rubocop complain Extract insecure key fingerprint to separate file Change migration to support building index concurrently Remove those hideous tabs
2018-01-08Merge branch 'osw-merge-request-metrics-population-scheduler-improvement' ↵Stan Hu
into 'master' Remove unnecessary queries on Merge Request Metrics population scheduler Closes gitlab-org/release/tasks#13 See merge request gitlab-org/gitlab-ce!16292
2018-01-08Remove unnecessary queries on Merge Request Metrics population schedulerOswaldo Ferreira
2018-01-08Add memoization for propertiesShinya Maeda
2018-01-08Disable STI of ActiveRecord. Refactoring specs.Shinya Maeda
2018-01-08Fix StaticSnalysysShinya Maeda
2018-01-08Revert bulk_insert and bring back AR insert(one by one)Shinya Maeda
2018-01-08Use batch update for Service deactivationShinya Maeda
2018-01-08Fix query to look for proper unmanaged kubernetes serviceShinya Maeda
2018-01-08Fix static anylysyShinya Maeda
2018-01-08Use bulk_insert instead of AR createShinya Maeda
2018-01-08Opitmize migration process by using both unmanaged_kubernetes_service and ↵Shinya Maeda
kubernetes_service_without_template
2018-01-08Avoid quotes in ActiveRecord queryShinya Maeda
2018-01-08Use explicit namespace for avoiding reference from application codeShinya Maeda
2018-01-08Add logic to swtich environment_scope by the situationShinya Maeda
2018-01-08Add env_scope testsShinya Maeda
2018-01-08Fix commentsShinya Maeda
2018-01-08Fix migration file typos and reorder Table definitionShinya Maeda
2018-01-08Fix unmanaged_kubernetes_service scope for multiple clustersShinya Maeda
2018-01-08Add test. Disable KubernetesService when migratedShinya Maeda
2018-01-08Migrate existing data from KubernetesService to Clusters::Platforms::KubernetesShinya Maeda
2018-01-06Merge branch '41249-clearing-the-cache' into 'master'Kamil Trzciński
Resolve "Clearing the cache" Closes #41249 See merge request gitlab-org/gitlab-ce!16067
2018-01-06Merge branch 'fix-ce-migration-timestamp' into 'master'Robert Speicher
Fix rebase commit SHA migration name See merge request gitlab-org/gitlab-ce!16256
2018-01-06Merge branch 'sh-reuse-disk-repositories-seeder' into 'master'Stan Hu
Skip project repository disk validation in development project seeder Closes gitlab-development-kit#310 See merge request gitlab-org/gitlab-ce!16257
2018-01-05Add the EE `rebase_commit_sha` migration back in its original locationRobert Speicher
2018-01-05Remove labeled issues seedFelipe Artur
2018-01-05Skip project repository disk validation in development project seederStan Hu
When seeding the GDK with new projects, it's very common to reuse the same repository names on disk. Previously, the validation would fail and leave the projects in a half-broken state. We can skip the validation to avoid causing odd errors. Closes gitlab-org/gitlab-development-kit#310
2018-01-05Fix rebase commit SHA migration nameSean McGivern
This already existed in EE with a different timestamp, so rename for CE and make it idempotent.
2018-01-05Merge branch 'issue_40500' into 'master'Sean McGivern
Improve filtering issues by label performance Closes #40500 and #37143 See merge request gitlab-org/gitlab-ce!16136
2018-01-05Merge branch 'master' into 41249-clearing-the-cacheMatija Čupić
2018-01-05Improve filtering issues by label performanceFelipe Artur
2018-01-05Backport 'Rebase' feature from EE to CEJan Provaznik
When a project uses fast-forward merging strategy user has to rebase MRs to target branch before it can be merged. Now user can do rebase in UI by clicking 'Rebase' button instead of doing rebase locally. This feature was already present in EE, this is only backport of the feature to CE. Couple of changes: * removed rebase license check * renamed migration (changed timestamp) Closes #40301
2018-01-05Fix jobs_cache_index migration class nameMatija Čupić
2018-01-05Merge branch 'master' into 41249-clearing-the-cacheMatija Čupić
2018-01-05Ignore the Migration/Datetime cop in a migration that fix a column type to ↵Rémy Coutable
datetime_with_timezone Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-05Rename Project#cache_index to jobs_cache_indexMatija Čupić
2018-01-04Merge branch 'mdelaossa/gitlab-ce-31995-project-limit-default-fix'Dmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-01-04Merge branch 'mk-no-op-delete-conflicting-redirects' into 'master'Douwe Maan
Prevent excessive DB load due to faulty DeleteConflictingRedirectRoutes background migration See merge request gitlab-org/gitlab-ce!16205
2018-01-04Merge branch 'change-issues-closed-at-background-migration' into 'master'Sean McGivern
Use a background migration for migrating issues.closed_at See merge request gitlab-org/gitlab-ce!16083
2018-01-03Make DeleteConflictingRedirectRoutes no-opMichael Kozono
Both the post-deploy and background migration.
2018-01-03Use a background migration for issues.closed_atYorick Peterse
In a previous attempt (rolled back in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16021) we tried to migrate `issues.closed_at` from timestamp to timestamptz using a regular migration. This has a bad impact on GitLab.com and as such was rolled back. This commit re-implements the original migrations using generic background migrations, allowing us to still migrate the data in a single release but without a negative impact on availability. To ensure the database schema is up to date the background migrations are performed inline in development and test environments. We also make sure to not migrate that that doesn't need migrating in the first place or has already been migrated.
2018-01-02Cache merged and closed events data in merge_request_metrics tableOswaldo Ferreira
2018-01-02Fix user membership destroy relationFrancisco Javier López
2018-01-02Merge branch ↵Sean McGivern
'39289-local-schema-rb-automatically-reverts-datetime-to-datetime_with_timezone-after-migrations' into 'master' Prevent schema.rb reverting from datetime_with_timezone to datetime Closes #39289 See merge request gitlab-org/gitlab-ce!14956
2017-12-30User#projects_limit remove DB default and added NOT NULL constraintMario de la Ossa
This change is required because otherwise if a user is created with a value for `projects_limit` that matches the DB default, it gets overwritten by `current_application_settings.default_projects_limit`. By removing the default we once again can allow a user to be created with a limit of 10 projects without the risk that it'll change to 10000
2017-12-27Merge branch 'sh-fix-mysql-migration-10-3' into 'master'Grzegorz Bizon
Fix migration for removing orphaned issues.moved_to_id values in MySQL and PostgreSQL Closes #41498 See merge request gitlab-org/gitlab-ce!16141