Skip to content

Use attributes for syncing work item to epic

Nicolas Dular requested to merge nd/use-work-item-attributes into master

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:

  1. We don't need to build up the parameters in the callbacks
  2. 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)
  1. Create an epic work item, and modify it
  2. Go to the correlating epic (change /work_items/ to /epics/ in the URL)
  3. See that it got created & updated
Edited by Nicolas Dular

Merge request reports