Skip to content

Sync basic work item attributes to epic

Nicolas Dular requested to merge nd/sync-base-epic-work-item-attributes into master

What does this MR do and why?

Sync basic work item attributes to epic

To fully sync the legacy epic and the epic work item, we now sync the basic attributes from epic to work item.

The widgets accumulate the parameters necessary for the sync and then we update the epic in the transaction to have an atomic mutation.

Related: #450423 (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.

Screenshots or screen recordings

Screen_Recording_2024-04-16_at_17.40.56

Before After

How to set up and validate locally

  1. Enable sync_work_item_to_epic
  2. Enable sync_epic_to_work_item
  3. Disable make_synced_work_item_read_only
  4. Disable namespace_level_work_items if enabled to create epics instead of work items
  5. Create an epic
  6. Go to the correlating work item (change /epics/ to /work_items/ in the URL)
  7. Change the title, description, confidentially, color
  8. Go to the epic and see that it got changed as well
Feature.enable(:sync_work_item_to_epic)
Feature.enable(:sync_epic_to_work_item)
Feature.disable(:make_synced_work_item_read_only)
Feature.disable(:namespace_level_work_items)
Edited by Nicolas Dular

Merge request reports