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-04-03Fix schema.rb conflictJames Edwards-Jones
2018-04-03Merge branch 'jej/mattermost-notification-confidentiality' into 'security-10-4'Douwe Maan
Prevent notes on confidential issues from being sent to chat See merge request gitlab/gitlabhq!2248
2018-03-16Merge branch 'fix/auth0-unsafe-login-10-4' into 'security-10-4'James Lopez
[10.4] Fix GitLab Auth0 integration signs in the wrong user See merge request gitlab/gitlabhq!2352
2018-03-16Merge branch 'fj-15329-services-callbacks-ssrf-10-4' into 'security-10-4'Douwe Maan
[10.4] Server Side Request Forgery in Services and Web Hooks See merge request gitlab/gitlabhq!2347
2018-02-15Schedule PopulateUntrackedUploads if neededMichael Kozono
To finish migrating untracked files to uploads for installations that were affected by https://gitlab.com/gitlab-org/gitlab-ce/issues/42881 Or just to delete the temp table if it is empty and left behind.
2018-02-14Merge branch 'fix-migration-timestamp' into 'master'Stan Hu
Update labels migration timestamp to run earlier than the one that removes namespaces to avoid issues See merge request gitlab-org/gitlab-ce!16907
2018-02-14Merge branch '42696-gitlab-import-leaves-group_id-on-projectlabel' into 'master'Stan Hu
Resolve "GitLab import leaves `group_id` on ProjectLabel" Closes #42696 See merge request gitlab-org/gitlab-ce!16877
2018-02-03Revert change to schema versionRobert Speicher
2018-02-01Merge branch 'fix-mermaid-xss' into 'security-10-4'Douwe Maan
[10.4] Fix stored XSS in code blocks See merge request gitlab/gitlabhq!2316
2018-01-29Merge branch 'fj-42112-fix-deploy-keys-migration-mysql' into 'master'Stan Hu
Fix bug in security release with deploy keys migration See merge request gitlab-org/gitlab-ce!16531
2018-01-22Merge branch 'fix-redirect-routes-schema' into 'master'Yorick Peterse
rework indexes on redirect_routes See merge request gitlab-org/gitlab-ce!16211
2018-01-18Merge branch 'remove-soft-removals' into 'master'Douwe Maan
Remove soft removals related code Closes #37447 See merge request gitlab-org/gitlab-ce!15789 (cherry picked from commit 7acabf7c5908940665e1a8c4e3d09d423385657a) d0b8f536 Remove soft removals related code e5c49b57 Added tests for removing soft removed objects
2018-01-17Merge 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 (cherry picked from commit 2e4a1b3b78a76103198180acf873de8470d7cecf) ac86b204 Backport authorized_keys branch 'find-key-by-fingerprint' 255a0f85 Backport option to disable writing to `authorized_keys` file 07bd79cd Combine ssh docs and rename the doc bcffeade Use ApplicationSetting.current in Admin::ApplicationSettingsController 797fe0a6 Backport authorized_keys_enabled defaults to true' d2f4e8f9 Avoid adding index if already exists 01319e59 Make Gitlab::CurrentSettings available when getting settings d9557e43 Backport spec fixes in spec/lib/gitlab/shell_spec.rb 40e3d9f3 Fix typo in spec/requests/api/internal_spec.rb bd9ead68 Fix spec in shell_spec.rb 9edd9a5e Adds changelog for backport of authorized_keys DB lookup from EE
2018-01-15Merge branch 'sh-migrate-can-push-to-deploy-keys-projects-10-3' into ↵Douwe Maan
'security-10-3' [10.3] Migrate `can_push` column from `keys` to `deploy_keys_project` See merge request gitlab/gitlabhq!2276
2018-01-11Merge branch ↵Yorick Peterse
'40418-migrate-existing-data-from-kubernetesservice-to-clusters-platforms-kubernetes' into 'master' Migrate existing data from KubernetesService to Clusters::Platforms::Kubernetes Closes #40418 See merge request gitlab-org/gitlab-ce!15589 (cherry picked from commit 4b92efd90cedaa0aff218d11fdce279701128bea) 5b2ca1c6 Migrate existing data from KubernetesService to Clusters::Platforms::Kubernetes e4745492 Add test. Disable KubernetesService when migrated b9fbfe5a Fix unmanaged_kubernetes_service scope for multiple clusters 40c6af54 Fix migration file typos and reorder Table definition 27111e29 Restructure spec 4dc14576 Fix comments 8e6ffe35 Fix test 7eeada80 Add env_scope tests f083739e Add logic to swtich environment_scope by the situation 9b7719b6 Use explicit namespace for avoiding reference from application code 665972e2 Avoid quotes in ActiveRecord query c8059881 Opitmize migration process by using both unmanaged_kubernetes_service and… b8a275d3 Use bulk_insert instead of AR create acfb8464 Fix static anylysy 8bc3221f Fix query to look for proper unmanaged kubernetes service 2d3c7d29 Use batch update for Service deactivation 1c404c91 Add a new test for emptified params 183dbdc8 Revert bulk_insert and bring back AR insert(one by one) 54d20d1b Add changelog 290c2248 Fix change log 58d074e0 Fix StaticSnalysys df658c7b Disable STI of ActiveRecord. Refactoring specs. c425ff75 Fix static analysys 67327952 Add memoization for properties
2018-01-09Merge branch 'last-weekend-commit' into ↵Luke Bennett
10-4-stable-prepare-rc3-with-weekend-commits
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-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
2017-12-27Simplify implementation and allow for batch updates in MySQLStan Hu
2017-12-27Fix PostgreSQL implementation of migrationStan Hu
2017-12-27Fix Gitlab::Access.values to Gitlab::Access.sym_options at 06_teams on ↵ogom
development db fixtures
2017-12-27Fix migration for removing orphaned issues.moved_to_id values in MySQLStan Hu
According to https://dev.mysql.com/doc/refman/5.7/en/update.html, "You cannot update a table and select from the same table in a subquery." Attempting to do so results in the error: ``` Mysql2::Error: Table 'issues' is specified twice, both as a target for 'UPDATE' and as a separate source for data ``` Instead, we can use a LEFT JOIN on the same table to make MySQL do the right thing. Closes #41498
2017-12-23Merge branch '36782-replace-team-user-role-with-add_role-user-in-specs' into ↵Rémy Coutable
'master' Resolve "Replace '.team << [user, role]' with 'add_role(user)' in specs" Closes #36782 See merge request gitlab-org/gitlab-ce!16069
2017-12-22Remove default value from cache_index migrationMatija Čupić
2017-12-22Add cache_index migrationMatija Čupić
2017-12-22Extend Cluster Applications to allow installation of PrometheusMayra Cabrera