Add support for migrating linked items in issues
Overview
Linked items do not currently migrate due to a limitation in our importers since there are several interconnected references to check during a migration.
Tasks
-
Create API wrappers of the issue links endpoints -
Add a function to issues.py
where given a project ID:-
iterate over all issues of that project (list_all projects/:id/issues
) -
check if an issue has any links (list_all projects/:id/issues/:issue_iid/links
) -
if the issue has links, recreate them on the destination side (which has a risk of being a race condition)
-
-
Add that function to migrate_single_project_features
or as a command in the CLI or call that function after you do the migration run
-
Update docs if needed (workflow, runbooks, README, migration metrics, etc.)
Acceptance Criteria
-
Existing UTs pass locally -
100% code coverage on new code
@gitlab-org/professional-services-automation/tools/migration