Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/importers/group_importer.rb')
-rw-r--r--lib/bulk_imports/importers/group_importer.rb15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/bulk_imports/importers/group_importer.rb b/lib/bulk_imports/importers/group_importer.rb
index 6e1b86e9515..f967b7ad7ab 100644
--- a/lib/bulk_imports/importers/group_importer.rb
+++ b/lib/bulk_imports/importers/group_importer.rb
@@ -8,16 +8,9 @@ module BulkImports
end
def execute
- bulk_import = entity.bulk_import
- configuration = bulk_import.configuration
+ context = BulkImports::Pipeline::Context.new(entity)
- context = BulkImports::Pipeline::Context.new(
- current_user: bulk_import.user,
- entity: entity,
- configuration: configuration
- )
-
- pipelines.each { |pipeline| pipeline.new.run(context) }
+ pipelines.each { |pipeline| pipeline.new(context).run }
entity.finish!
end
@@ -29,7 +22,9 @@ module BulkImports
def pipelines
[
BulkImports::Groups::Pipelines::GroupPipeline,
- BulkImports::Groups::Pipelines::SubgroupEntitiesPipeline
+ BulkImports::Groups::Pipelines::SubgroupEntitiesPipeline,
+ BulkImports::Groups::Pipelines::MembersPipeline,
+ BulkImports::Groups::Pipelines::LabelsPipeline
]
end
end