Create a pre-import check report
Problem to solve
When migrating large projects from GitHub to GitLab, there can be issues with data compatibility that can cause import failure or partial success. The user only finds out about any of these once they initiate the import, which causes the user to waste time and not have confidence in the import process.
Proposed solution
Create a pre-import check (report) that runs all the known verifications that we normally run during import and report to the user:
- List with counts of each object that will be imported.
- Any data that will not be imported due to missing required data.
- Any data that will be partially imported.
This report would be available for each repository available for import. As an initial iteration, we should provide a link to the report in the repository list (see illustration below).
Illustrations
Example report
Pre-import check for my-org/my-repo:
- Repository my-repo (2.1 GB) will be imported.
- 120 issues will be imported.
- 10 milestones will be imported.
- 3450 pull requests will be imported.
- 12 pull requests no longer have valid corresponding commits and will not be imported.
- 3 users do not exist in the destination and will not be mapped:
- dsmith@company.com, mkorhonen@company.com, apatel@company.com
Future considerations
As a future iteration, we could run the pre-check automatically and display the result summary in the list (provided no/acceptable performance impact).