mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
19 lines
506 B
Ruby
19 lines
506 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module BackgroundMigration
|
|
class BackfillSecurityFindingsProjectId < BackfillDesiredShardingKeyJob
|
|
operation_name :backfill_security_findings_project_id
|
|
feature_category :vulnerability_management
|
|
|
|
scope_to ->(relation) { relation }
|
|
|
|
def perform
|
|
each_sub_batch do |sub_batch|
|
|
sub_batch.connection.execute(construct_query(sub_batch: sub_batch.where(backfill_column => nil)))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|