Skip to content
代码片段 群组 项目
提交 2d5e8328 编辑于 作者: gdk's avatar gdk 提交者: Tiger
浏览文件

Finalize protected_environment_deploy_access_levels backfill

This migration was finished at `2024-08-20 00:52:02 UTC`, you can confirm
the status using our
[batched background migration chatops commands](https://docs.gitlab.com/ee/development/database/batched_background_migrations.html#monitor-the-progress-and-status-of-a-batched-background-migration).
  To confirm it is finished you can run:

  ```
/chatops run batched_background_migrations status 1000651
```

The last time this background migration was triggered was in [db/post_migrate/20240815083838_queue_backfill_protected_env_deploy_access_levels_protected_env_project_id.rb](https://gitlab.com/gitlab-org/gitlab/-/blob/master/db/post_migrate/20240815083838_queue_backfill_protected_env_deploy_access_levels_protected_env_project_id.rb)

  You can read more about the process for finalizing batched background migrations in
https://docs.gitlab.com/ee/development/database/batched_background_migrations.html .

  As part of our process we want to ensure all batched background migrations have had at least one
[required stop](https://docs.gitlab.com/ee/development/database/required_stops.html)
to process the migration. Therefore we can finalize any batched background migration that was added before the
last required stop.

This change was generated by
[gitlab-housekeeper](https://gitlab.com/gitlab-org/gitlab/-/tree/master/gems/gitlab-housekeeper)
using the Keeps::OverdueFinalizeBackgroundMigration keep.

To provide feedback on your experience with `gitlab-housekeeper` please create an issue with the
label ~"GitLab Housekeeper" and consider pinging the author of this keep.

Changelog: other
上级 f2026cc0
No related branches found
No related tags found
2 合并请求!3031Merge per-main-jh to main-jh by luzhiyuan,!3030Merge per-main-jh to main-jh
--- ---
migration_job_name: BackfillProtectedEnvironmentDeployAccessLevelsProtectedEnvironmentProjectId migration_job_name: BackfillProtectedEnvironmentDeployAccessLevelsProtectedEnvironmentProjectId
description: Backfills sharding key `protected_environment_deploy_access_levels.protected_environment_project_id` from `protected_environments`. description: Backfills sharding key `protected_environment_deploy_access_levels.protected_environment_project_id`
from `protected_environments`.
feature_category: continuous_delivery feature_category: continuous_delivery
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/162834 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/162834
milestone: '17.4' milestone: '17.4'
queued_migration_version: 20240815083838 queued_migration_version: 20240815083838
finalized_by: # version of the migration that finalized this BBM finalized_by: '20250303231605'
# frozen_string_literal: true
class FinalizeHkBackfillProtectedEnvironmentDeployAccessLevelsProtected66570 < Gitlab::Database::Migration[2.2]
milestone '17.10'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
def up
ensure_batched_background_migration_is_finished(
job_class_name: 'BackfillProtectedEnvironmentDeployAccessLevelsProtectedEnvironmentProjectId',
table_name: :protected_environment_deploy_access_levels,
column_name: :id,
job_arguments: [:protected_environment_project_id, :protected_environments, :project_id,
:protected_environment_id],
finalize: true
)
end
def down; end
end
9405413ee762e9b5ad018de4c92b5613f19d5e85f81b35a7e69c537d3e8f43ba
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册