Sync work items parent link deletion
What does this MR do and why?
When removing children from a work item item that has a synced epic, children are removed from the legacy epic too.
This action doesn't create system notes for the legacy epics nor trigger Epics::UpdateDatesService
.
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.
Screenshots or screen recordings
Screen_Recording_2024-05-02_at_12.16.55
How to set up and validate locally
- Enable feature flags
Feature.enable(:sync_work_item_to_epic) Feature.enable(:sync_epic_to_work_item) Feature.disable(:make_synced_work_item_read_only)
- Create a legacy epic Parent Epic by visiting
http://HOST_URL/groups/GROUP_PATH/-/epics/new
and verify that a synced work item was created by visitinghttp://HOST_URL/groups/GROUP_PATH/-/work_items/EPIC_IID
- Using the same method create another legacy epic Child Epic
- In the same group create a project and add a legacy issue Child Issue
- Visit the work item parent
http://HOST_URL/groups/GROUP_PATH/-/work_items/PARENT_EPIC_IID
and add Child Epic and Child Issue (they should be found by typing the title, otherwise paste their work item URL) - Visit the legacy Parent Epic and verify that both children are present
- Go back to the work item view
http://HOST_URL/groups/GROUP_PATH/-/work_items/PARENT_EPIC_IID
and remove both children, this should generate 2 system notes - Verify in the legacy epic view that there are no children linked to the epic and that there are no new system notes
Related to #450300
Edited by Eugenia Grieff