- 30 Aug, 2020 2 commits
-
-
Stan Hu authored
`ApplicationSetting#create_from_defaults` is also called from the API so we should cover all the bases by moving the primary ID check here.
-
Stan Hu authored
Due to the frequency with which settings are accessed, it is likely that during a backup restore a running GitLab process will insert a new `application_settings` row before the constraints have been added to the table. This would add an extra row with ID 1 and prevent the primary key constraint from being added, which made ActiveRecord throw a IrreversibleOrderError anytime the settings were accessed. The following sequence was seen in PostgreSQL logs: 1. Restore: CREATE TABLE public.application_settings ... 2. Restore: CREATE SEQUENCE public.application_settings_id_seq 3. Puma/Sidekiq: INSERT INTO "application_settings" ... 4. Restore: COPY public.application_settings (id, ... 5. Restore: ADD CONSTRAINT application_settings_pkey PRIMARY KEY (id); In step 3, since GitLab inserted a new row with ID 1, but shortly after that the restore process would also copy another row with ID 1. As a result, the ADD CONSTRAINT in step 5 would fail with the message: ERROR: could not create unique index "application_settings_pkey" Key (id)=(1) is duplicated. The right way to fix this would be to restore the database in a single transaction via the `--single-transaction` flag in `psql`, but this usually fails due to permission errors when extensions and schemas are dropped and recreated. `psql` generally works best with superuser access, but restore usually runs with limited access permissions. GitLab normally inserts an `application_settings` row if no row is found, but to prevent duplicate rows from being inserted we ensure that a primary key has been set beforehand. This should help prevent primary key collisions and duplicate rows from being added. We still need to tell administrators to stop all processes that connect to the database (puma, sidekiq, and gitlab-exporter), but this check should ensure that a primary key constraint is added during a restore. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/36405
-
- 29 Aug, 2020 5 commits
-
-
Marcel Amirault authored
Unit test report docs polishing See merge request gitlab-org/gitlab!40765
-
Ricky Wiens authored
- remove redundant section header "Use cases" - add in link to JUnit report format
-
Marcel Amirault authored
Fix typo on CI CD template docs See merge request gitlab-org/gitlab!40720
-
Stan Hu authored
Fix bug in seed fixture to create self monitoring project See merge request gitlab-org/gitlab!40784
-
rpereira2 authored
-
- 28 Aug, 2020 33 commits
-
-
Stan Hu authored
Add Feature Flags search shortcut when feature enabled See merge request gitlab-org/gitlab!40578
-
Angelo Gulina authored
- makes the navigation to Feature Flags more convenient - makes the Feature Flags sub nav element more findable
-
Jose Ivan Vargas authored
Render markdown attribute definitions as tooltips See merge request gitlab-org/gitlab!40541
-
Jose Ivan Vargas authored
Fix vulnerability comment delete button spinner position See merge request gitlab-org/gitlab!40681
-
Andreas Brandl authored
Add kubernetes_agents usage metric See merge request gitlab-org/gitlab!40559
-
Achilleas Pipinellis authored
Docs: Add locked projects troubleshooting note back to ES doc See merge request gitlab-org/gitlab!40522
-
Blair Lunceford authored
-
Achilleas Pipinellis authored
Change term Advanced Syntax Search to Advanced Search Syntax Closes #241787 See merge request gitlab-org/gitlab!40660
-
Kamil Trzciński authored
Copy CI secrets when retrying a job [RUN AS-IF-FOSS] Closes #218746 See merge request gitlab-org/gitlab!40458
-
Douglas Barbosa Alexandre authored
RUN AS-IF-FOSS Fix group search users scope times out See merge request gitlab-org/gitlab!38701
-
Terri Chu authored
-
Douglas Barbosa Alexandre authored
Remove file_name and content from snippet mutations See merge request gitlab-org/gitlab!40727
-
Craig Norris authored
Docs: Update documentation MR description template See merge request gitlab-org/gitlab!40403
-
Marcia Ramos authored
-
Douglas Barbosa Alexandre authored
Add endpoint to update DAST Scanner Profile See merge request gitlab-org/gitlab!40208
-
Michael Kozono authored
Upgrade guard to 2.16.2 See merge request gitlab-org/gitlab!40710
-
Dan Davison authored
Rename `status_issue` tag to `testcase` 3 of 3 See merge request gitlab-org/gitlab!40676
-
Kushal Pandya authored
Merge branch '232465-mlunoe-share-filter-store-module-between-code-review-and-value-stream-analytics' into 'master' Refactor(Analytics): introduce store filter module Closes #232465 See merge request gitlab-org/gitlab!40004
-
Michael Lunøe authored
Use the common store filter module for both Code Review Analytics filter bar Value Stream Analytics filter bar This streamlines the filter bar store module and prepares it to be used for the rest of analytics
-
Toon Claes authored
Handle `select_one` queries in database load balancing See merge request gitlab-org/gitlab!40616
-
Martin Wortschack authored
Migrate deprecated create issue button in epic tree form Closes #219817 See merge request gitlab-org/gitlab!40647
-
Toon Claes authored
Remove pipeline_id column from requirements_management_test_reports See merge request gitlab-org/gitlab!38924
-
Igor Drozdov authored
Removes batch diffs feature flag See merge request gitlab-org/gitlab!40493
-
Phil Hughes authored
that is no longer used
-
Kushal Pandya authored
Prevent Download For Failed Vulnerability Export Jobs Closes #220601 See merge request gitlab-org/gitlab!40656
-
Kev authored
-
Francisco Javier López authored
In this commit, the file_name and content params are removed from the snippet mutations
-
GitLab Release Tools Bot authored
[ci skip]
-
GitLab Release Tools Bot authored
[ci skip]
-
GitLab Release Tools Bot authored
-
Imre Farkas authored
Rename feature flag to instance_statistics See merge request gitlab-org/gitlab!40723
-
Nick Thomas authored
Use UNLINK to remove old repository set caches See merge request gitlab-org/gitlab!40719
-
Peter Leitzen authored
Add fixtures to automatically create self monitoring project for new GitLab installations See merge request gitlab-org/gitlab!40404
-