summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/backfill_project_import_level.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/background_migration/backfill_project_import_level.rb')
-rw-r--r--lib/gitlab/background_migration/backfill_project_import_level.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/backfill_project_import_level.rb b/lib/gitlab/background_migration/backfill_project_import_level.rb
index 06706b729ea..21c239e0070 100644
--- a/lib/gitlab/background_migration/backfill_project_import_level.rb
+++ b/lib/gitlab/background_migration/backfill_project_import_level.rb
@@ -3,6 +3,8 @@
module Gitlab
module BackgroundMigration
class BackfillProjectImportLevel < BatchedMigrationJob
+ operation_name :update_import_level
+
LEVEL = {
Gitlab::Access::NO_ACCESS => [0],
Gitlab::Access::DEVELOPER => [2],
@@ -11,7 +13,7 @@ module Gitlab
}.freeze
def perform
- each_sub_batch(operation_name: :update_import_level) do |sub_batch|
+ each_sub_batch do |sub_batch|
update_import_level(sub_batch)
end
end