diff options
Diffstat (limited to 'lib/bulk_imports/ndjson_pipeline.rb')
-rw-r--r-- | lib/bulk_imports/ndjson_pipeline.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bulk_imports/ndjson_pipeline.rb b/lib/bulk_imports/ndjson_pipeline.rb index 93fd6986173..f01ce22a46d 100644 --- a/lib/bulk_imports/ndjson_pipeline.rb +++ b/lib/bulk_imports/ndjson_pipeline.rb @@ -14,7 +14,7 @@ module BulkImports relation_definition = import_export_config.top_relation_tree(relation) deep_transform_relation!(relation_hash, relation, relation_definition) do |key, hash| - Gitlab::ImportExport::Group::RelationFactory.create( + relation_factory.create( relation_index: relation_index, relation_sym: key.to_sym, relation_hash: hash, @@ -83,6 +83,10 @@ module BulkImports "Gitlab::ImportExport::#{portable.class}::ObjectBuilder".constantize end + def relation_factory + "Gitlab::ImportExport::#{portable.class}::RelationFactory".constantize + end + def relation self.class.relation end |