Save external_identifiers on ImportFailure for file import relations
The `FileImport` model has a field for tracking the external identifier associated with a failed record import. This field is used for other importers such as GitHub and BitBucket, but not file-based import. This MR tracks the IID associated with issues, merge requests, milestones and CI pipelines that fail to import. It also lays the groundwork for tracking identifiers for other relations, should the need arise and we can identify a unique key. Changelog: changed
显示
- .rubocop_todo/layout/space_in_lambda_literal.yml 0 个添加, 1 个删除.rubocop_todo/layout/space_in_lambda_literal.yml
- .rubocop_todo/style/explicit_block_argument.yml 0 个添加, 1 个删除.rubocop_todo/style/explicit_block_argument.yml
- .rubocop_todo/style/keyword_parameters_order.yml 0 个添加, 1 个删除.rubocop_todo/style/keyword_parameters_order.yml
- lib/gitlab/import_export/group/relation_tree_restorer.rb 6 个添加, 1 个删除lib/gitlab/import_export/group/relation_tree_restorer.rb
- lib/gitlab/import_export/import_failure_service.rb 5 个添加, 3 个删除lib/gitlab/import_export/import_failure_service.rb
- spec/fixtures/lib/gitlab/import_export/with_invalid_issues_and_milestones/tree/project.json 11 个添加, 0 个删除...port/with_invalid_issues_and_milestones/tree/project.json
- spec/fixtures/lib/gitlab/import_export/with_invalid_issues_and_milestones/tree/project/issues.ndjson 2 个添加, 0 个删除..._invalid_issues_and_milestones/tree/project/issues.ndjson
- spec/fixtures/lib/gitlab/import_export/with_invalid_issues_and_milestones/tree/project/milestones.ndjson 2 个添加, 0 个删除...alid_issues_and_milestones/tree/project/milestones.ndjson
- spec/lib/gitlab/import_export/group/relation_tree_restorer_spec.rb 32 个添加, 5 个删除...gitlab/import_export/group/relation_tree_restorer_spec.rb
- spec/lib/gitlab/import_export/import_failure_service_spec.rb 2 个添加, 1 个删除spec/lib/gitlab/import_export/import_failure_service_spec.rb
- spec/lib/gitlab/import_export/project/tree_restorer_spec.rb 17 个添加, 1 个删除spec/lib/gitlab/import_export/project/tree_restorer_spec.rb
- spec/support/shared_examples/lib/gitlab/import_export/import_failure_service_shared_examples.rb 1 个添加, 0 个删除...b/import_export/import_failure_service_shared_examples.rb
加载中
想要评论请 注册 或 登录