diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 11:43:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 11:43:02 +0300 |
commit | d9ab72d6080f594d0b3cae15f14b3ef2c6c638cb (patch) | |
tree | 2341ef426af70ad1e289c38036737e04b0aa5007 /lib/bulk_imports/ndjson_pipeline.rb | |
parent | d6e514dd13db8947884cd58fe2a9c2a063400a9b (diff) |
Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42
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 |