Use attributes for syncing work item to epic
What does this MR do and why?
Related issue: #460441 (closed)
Use attributes for syncing work item to epic
Similar to syncing epics to work items, we now switch directly assigning the AR attributes to the legacy epic. This makes it easier because:
- We don't need to build up the parameters in the callbacks
- We always sync all the data instead of partially syncing them based on changed params.
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Feature.enable(:sync_epic_to_work_item)
Feature.enable(:namespace_level_work_items)
Feature.disable(:make_synced_work_item_read_only)
- Create an epic work item, and modify it
- Go to the correlating epic (change
/work_items/
to/epics/
in the URL) - See that it got created & updated
Edited by Nicolas Dular