Skip to content

Draft: Adds Project Relations Import behind a FF

What does this MR do and why?

This is part of the work to import project relations during GitLab Migrations.

Relates to #340309 (comment 677591237)

There are also some small changes to update the request export url as well as the download url based on the entity type instead of fixing it to the group one. Some hints of where these is needed:

  • http_client(entity.bulk_import.configuration) .post(GROUP_EXPORTED_URL_PATH % entity.encoded_source_full_path)
  • BulkImports::ExportStatus#status_endpoint
  • BulkImports::Common::Extractors::NdjsonExtractor::EXPORT_DOWNLOAD_URL_PATH

We also need to remove the safety gate we've recently added to only request exports of groups: BulkImports::ExportRequestWorker.perform_async(entity.id) if entity.group_entity?

This branch has been built on top of this other MR: !70330 (merged)

So !70330 (merged) is a dependency for this one. Once !70330 (merged) gets merged, the diff for this MR will be much smaller.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by João Alexandre Cunha

Merge request reports