Skip to content

Add endpoint for checking relation import status

James Nutt requested to merge jn/check-relation-import-status into master

What does this MR do and why?

Add endpoint for checking relation import status

This MR adds an API endpoint to check the status of relation imports for file-based import.

This is a smaller slice of a larger MR, the second half of which will be delivered separately: !142186 (closed)

Changelog: added

Related issue: #455633 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Create some relation import trackers via the Rails console:
project = Project.last
project.relation_import_trackers.create!(relation: 'issues')
project.relation_import_trackers.create!(relation: 'merge_requests')
  1. Check import status via the API:
curl --header "PRIVATE-TOKEN: $GITLAB_DEV_TOKEN" "http://gdk.test:3000/api/v4/projects/<id here>/relation-imports"
Edited by James Nutt

Merge request reports