Sync related_epic_links association
The columns source_id
and target_id
should be migrated to the issue_links
table (corresponding columns have the same name).
Proposal
- Whenever an epic is associated with another epic we check if BOTH have an associated work item.
- If associated work items are present we create a record at
issue_links
table whereissue_links.source_id
will receivesource_legacy_epic.associated_work_item.id
andissue_links.target_id
receivestarget_legacy_epic.associated_work_item.id
andissue_links.link_type
will haverelated_epic_links.link_type
. - If an epic association is removed we also destroy the correspondent record at
issue_links
table. - After the steps from above are completed we backfill
issue_links
using the same logic from above.
Reminder: We should skip notifications, events and metrics on the work item side
Edited by Eugenia Grieff