Skip to content
代码片段 群组 项目
提交 69ef7386 编辑于 作者: Eulyeon Ko's avatar Eulyeon Ko
浏览文件

Merge branch...

Merge branch 'overdue-finalize-background-migration--backfill-project-statistics-storage-size-without-pipeline-artifacts-size-job' into 'master' 

Finalize ProjectStatisticsStorageSizeWithoutPipelineArtifactsSizeJob

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



Merged-by: default avatarEulyeon Ko <5961404-euko@users.noreply.gitlab.com>
Approved-by: default avatarDoug Stull <dstull@gitlab.com>
Approved-by: default avatarEulyeon Ko <5961404-euko@users.noreply.gitlab.com>
Co-authored-by: default avatarDylan Griffith <dyl.griffith@gmail.com>
No related branches found
No related tags found
无相关合并请求
--- ---
migration_job_name: BackfillProjectStatisticsStorageSizeWithoutPipelineArtifactsSizeJob migration_job_name: BackfillProjectStatisticsStorageSizeWithoutPipelineArtifactsSizeJob
description: Refreshes ProjectStatistics to remove pipeline_artifacts_size from the total storage_size description: Refreshes ProjectStatistics to remove pipeline_artifacts_size from the
total storage_size
feature_category: consumables_cost_management feature_category: consumables_cost_management
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/126053 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/126053
milestone: '16.3' milestone: '16.3'
finalized_by: '20231207220954'
# frozen_string_literal: true
class FinalizeBackfillProjectStatisticsStorageSizeWithoutPipelineArtifactsSi < Gitlab::Database::Migration[2.2]
milestone '16.7'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
def up
ensure_batched_background_migration_is_finished(
job_class_name: 'BackfillProjectStatisticsStorageSizeWithoutPipelineArtifactsSizeJob',
table_name: :project_statistics,
column_name: :project_id,
job_arguments: [],
finalize: true
)
end
def down; end
end
874f2ca39becd976d06259918ad4898a9db95645615e348c315643e35aee2f72
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册