Commit dfd5b506 authored by Kassio Borges's avatar Kassio Borges

Rename group import/export config to legacy

With the ndjson introduction, the current group import/export
configuration will be deprecated. This is required because the current
configuration doesn't export the groups `parent_id`, which is required
to map the group tree when using ndjson.
parent 33c2b76e
...@@ -88,8 +88,8 @@ module Gitlab ...@@ -88,8 +88,8 @@ module Gitlab
'group.json' 'group.json'
end end
def group_config_file def legacy_group_config_file
Rails.root.join('lib/gitlab/import_export/group/import_export.yml') Rails.root.join('lib/gitlab/import_export/group/legacy_import_export.yml')
end end
end end
end end
......
...@@ -122,7 +122,7 @@ module Gitlab ...@@ -122,7 +122,7 @@ module Gitlab
@reader ||= Gitlab::ImportExport::Reader.new( @reader ||= Gitlab::ImportExport::Reader.new(
shared: @shared, shared: @shared,
config: Gitlab::ImportExport::Config.new( config: Gitlab::ImportExport::Config.new(
config: Gitlab::ImportExport.group_config_file config: Gitlab::ImportExport.legacy_group_config_file
).to_h ).to_h
) )
end end
......
...@@ -43,7 +43,7 @@ module Gitlab ...@@ -43,7 +43,7 @@ module Gitlab
@reader ||= Gitlab::ImportExport::Reader.new( @reader ||= Gitlab::ImportExport::Reader.new(
shared: @shared, shared: @shared,
config: Gitlab::ImportExport::Config.new( config: Gitlab::ImportExport::Config.new(
config: Gitlab::ImportExport.group_config_file config: Gitlab::ImportExport.legacy_group_config_file
).to_h ).to_h
) )
end end
......
...@@ -156,7 +156,7 @@ describe Gitlab::ImportExport::RelationTreeRestorer do ...@@ -156,7 +156,7 @@ describe Gitlab::ImportExport::RelationTreeRestorer do
let(:reader) do let(:reader) do
Gitlab::ImportExport::Reader.new( Gitlab::ImportExport::Reader.new(
shared: shared, shared: shared,
config: Gitlab::ImportExport::Config.new(config: Gitlab::ImportExport.group_config_file).to_h config: Gitlab::ImportExport::Config.new(config: Gitlab::ImportExport.legacy_group_config_file).to_h
) )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment