Add Migration stats API
Problem
When direct transfer of a group or project has completed, the importing user can see the general end state of the import thanks to badges (Complete, Partially completed) and can access a list of items that were not imported. This is great, but in case of partially completed large project there is no quick way to understand how many items of each type were imported and how many were not.
Proposed solution
Similar to #428016 (closed) we need to create a new stats API endpoint that returns migration results, per entity (a group or a project), returning a list of:
-
source
- the number of records in source (e.g. a source project has 1000 mrs) -
fetched
- the number of records we fetched (e.g. read from ndjson or from graphql) -
imported
- the number of records we imported (e.g. imported 900 out of 1000 mrs)
Example response:
{
"labels": {
"source": 10
"fetched": 10,
"imported": 10
},
"milestones": {
"source": 10
"fetched": 10,
"imported": 5
}
}
Fronted issue will follow to show the stats in the UI.
Documentation
Document new endpoint.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.