Skip to content
代码片段 群组 项目
未验证 提交 bab2cede 编辑于 作者: Michał Zając's avatar Michał Zając 提交者: GitLab
浏览文件

Merge branch 'otovar/finalize-sbom-component-migrations' into 'master'

Finalize PEP503 sbom component batched background migration

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/164246



Merged-by: default avatarMichał Zając <mzajac@gitlab.com>
Approved-by: default avatarMichał Zając <mzajac@gitlab.com>
Co-authored-by: default avatarOscar Tovar <otovar@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -5,4 +5,5 @@ feature_category: software_composition_analysis
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/145700
milestone: '16.11'
queued_migration_version: 20240223130548
finalize_after: '2024-03-24'
finalized_by: 20240828162042
# frozen_string_literal: true
class FinalizePep503SbomComponentNormalizationMigrations < Gitlab::Database::Migration[2.2]
restrict_gitlab_migration gitlab_schema: :gitlab_main
milestone '17.4'
MIGRATION_NAME = 'UpdateSbomComponentsNameBasedOnPep503'
disable_ddl_transaction!
def up
ensure_batched_background_migration_is_finished(
job_class_name: MIGRATION_NAME,
table_name: :sbom_components,
column_name: :id,
job_arguments: [],
finalize: true
)
end
def down
# no-op
end
end
ddc2a53cf682e7dcbe636319acf27bddc793a754d1a9bb18e97496761993a89d
\ No newline at end of file
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe Gitlab::BackgroundMigration::UpdateSbomComponentsNameBasedOnPep503, feature_category: :software_composition_analysis do
RSpec.describe Gitlab::BackgroundMigration::UpdateSbomComponentsNameBasedOnPep503, schema: 20240828162042, feature_category: :software_composition_analysis do
let(:components) { table(:sbom_components) }
before do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册