| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
See https://gitlab.com/gitlab-org/gitlab-ce/issues/43271
|
|\
| |
| |
| |
| | |
Change SQL for expired artifacts to use new ci_job_artifacts.expire_at
See merge request gitlab-org/gitlab-ce!16578
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
migration efficiently
Artifacts are in the middle of being migrated from ci_builds to
ci_job_artifacts. The expiration date is currently visible in both of
these tables and the test for whether an expired artifact is present
for a job is complex as it requires checking both the of the tables.
Add two new indexes, one on ci_builds.artifacts_expire_at and one on
ci_job_artifacts.expire_at to enable finding expired artifacts
efficiently.
And until the migration is finished, replace the SQL for finding
expired and non-expired artifacts with a hand-crafted UNION ALL based
query instead of using OR. This overcomes a database optimizer
limitation that prevents it from using these indexes.
When the migration is finished the next version should remove this
query and replace it with a much simpler query on just
ci_job_artifacts. See
https://gitlab.com/gitlab-org/gitlab-ce/issues/42561 for followup.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Resolve "PrepareUntrackedUploads PostgreSQL syntax error"
Closes #42881
See merge request gitlab-org/gitlab-ce!17019
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|/ /
| |
| |
| |
| |
| | |
db/post_migrate/20170717111152_cleanup_move_system_upload_folder_symlink.rb where symlink already exists
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since populating the fork networks was scheduled multiple times
because of bugs that needed to be fixed:
- https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15595/
Creating fork networks for projects that were missing the root of
the fork network.
- https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15709
The API allowed creating forked_project_links without
fork_network_members.
Scheduling this migration multiple times would case it to run
concurrently. Which in turn would try to insert the same data into
`fork_network_members` causing duplicate key errors.
This avoids running the migration multiple times.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Remove redundant pipeline stages from the database
Closes #41769
See merge request gitlab-org/gitlab-ce!16580
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
fix/gb/fix-redundant-pipeline-stages
* commit '4457cf9d178dc9912fd9c16427ad81b389179d00': (76 commits)
Conflicts:
spec/services/ci/retry_build_service_spec.rb
|
| | |
| | |
| | |
| | |
| | | |
This makes it possible to heavily optimize this migration, because we
need an outdated index to remove redundant stages faster.
|
| | | |
|
| | | |
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* master: (441 commits)
Conflicts:
db/schema.rb
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently we still need to run EnsureStageService within a transaction,
because when it runs within in a transaction we are going to stick to
the primary database when using database load balancing. Extracting this
out of the transaction makes it possible to hit into problems with
replication lag in pipeline commit status API, which can cause a lot of
trouble.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
into 'master'
Resolve "Add domain field to Auto DevOps application setting"
Closes #38175
See merge request gitlab-org/gitlab-ce!16604
|
| |\ \ \
| | | | |
| | | | |
| | | | | |
38175-add-domain-field-to-auto-devops-application-setting
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | | |
38175-add-domain-field-to-auto-devops-application-setting
|
| | |_|/ /
| |/| | | |
|
| |_|_|/
|/| | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Handle EE edge cases in issues.closed_at migration
Closes gitlab-ee#4803
See merge request gitlab-org/gitlab-ce!16926
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
EE seems to have had an outdated schema at some point, leading to some
environments not having the right columns in place. This adjusts the
migration for `issues.closed_at` so it takes care of those cases,
ensuring data can be migrated properly.
Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/4803
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add missing foreign key and NOT NULL constraints to todos table.
Closes #32282
See merge request gitlab-org/gitlab-ce!16849
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #32282.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Store uploader context in uploads
Closes #42547
See merge request gitlab-org/gitlab-ce!16779
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | |
| | | | | |
| | | | | | |
Add backend for persistently dismissible callouts
See merge request gitlab-org/gitlab-ce!16735
|
| | | | | | |
|
| |\ \ \ \ \
| | | |_|_|/
| | |/| | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | |_|_|/
| |/| | | |
|
| | | | | |
|
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Add unique constraint to trending_projects#project_id.
See merge request gitlab-org/gitlab-ce!16846
|
| | |/ /
| |/| | |
|