-
- Downloads
Extract shared functionality from ProjectTreeRestorer
This MR extracts a lot of functinality from ProjectTreeRestorer into RelationTreeRestorer in order to introduce a new GroupTreeRestorer that is going to utilize this logic as well. This MR Also changes a few other classes to make them compatible with groups.
Showing
- lib/gitlab/import_export/file_importer.rb 7 additions, 5 deletionslib/gitlab/import_export/file_importer.rb
- lib/gitlab/import_export/importer.rb 1 addition, 1 deletionlib/gitlab/import_export/importer.rb
- lib/gitlab/import_export/members_mapper.rb 21 additions, 12 deletionslib/gitlab/import_export/members_mapper.rb
- lib/gitlab/import_export/project_tree_restorer.rb 25 additions, 198 deletionslib/gitlab/import_export/project_tree_restorer.rb
- lib/gitlab/import_export/relation_tree_restorer.rb 243 additions, 0 deletionslib/gitlab/import_export/relation_tree_restorer.rb
- spec/fixtures/lib/gitlab/import_export/with_invalid_records/project.json 1 addition, 1 deletion...ib/gitlab/import_export/with_invalid_records/project.json
- spec/lib/gitlab/import_export/file_importer_spec.rb 2 additions, 2 deletionsspec/lib/gitlab/import_export/file_importer_spec.rb
- spec/lib/gitlab/import_export/members_mapper_spec.rb 7 additions, 6 deletionsspec/lib/gitlab/import_export/members_mapper_spec.rb
- spec/lib/gitlab/import_export/project_tree_restorer_spec.rb 2 additions, 4 deletionsspec/lib/gitlab/import_export/project_tree_restorer_spec.rb
- spec/lib/gitlab/import_export/relation_factory_spec.rb 1 addition, 1 deletionspec/lib/gitlab/import_export/relation_factory_spec.rb
- spec/lib/gitlab/import_export/relation_tree_restorer_spec.rb 67 additions, 0 deletionsspec/lib/gitlab/import_export/relation_tree_restorer_spec.rb
- spec/support/shared_examples/lib/gitlab/import_export/project_tree_restorer_shared_examples.rb 1 addition, 1 deletion...ab/import_export/project_tree_restorer_shared_examples.rb
Please register or sign in to comment