Sync a RelatedEpicLink record when a RelatedWorkItem link is created
What does this MR do and why?
Creates a Epics::RelatedEpicLink
record for every
WorkItems::RelatedWorkItemLink
record is created.
Sync of deletions will be added in a follow-up.
related to #450301 (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
- Enable
:sync_work_item_to_epic
and:sync_epic_to_work_item
feature flags - Make sure that
:make_synced_work_item_read_only
is disabled - Create one epic A using the URL
http://gdk.test:3000/groups/GROUP_PATH/-/epics/new
- Create one epic B by visiting the same URL from above
- Visit epic A as a work item by visiting
http://gdk.test:3000/groups/GROUP_PATH/-/work_items/EPIC_A_IID
and add work item B blocking it using related work items widget on UI - Now visit epic A as an epic using the URL
http://gdk.test:3000/groups/GROUP_PATH/-/epics/EPIC_A_IID
The same relationship between epic A and B should be present in the work item view.
Edited by Felipe Cardozo