Add new Export API to initiate/view/download relation batches

After completing Add new Export services to export relations in ... (#391222 - closed) we need to be able to download batches of exported relations via API when a migration is running. In order to do that, we need to add new (or update existing) API. Should be applied to both project and group relation exports.

  • Add a new optional flag batched to :id/export_relations endpoint to indicate that export should be exported in batches
  • Add new optional flags batch_number & batched to :id/export_relations/download to allow downloading of a specific batch for an exported relation
  • Add a new optional flag relation to :id/export_relations/status in order to view a specific relation status
  • Update Entities::BulkImports::ExportStatus to show export batches
  • Add Entities::BulkImports::BatchExportStatus to show details of a single export batch

See POC !109491 (closed)

Edited by George Koltsov