Only create system note on color change

What does this MR do and why?

Issue: #469464 (closed)

Only create system note on color change

We created a system note by default when a epic work item got created that the color got changed.

This should not happen on creation. We fixed this bug by using the after_update_commit callback instead of after_save_commit. The former only gets triggered on updates instead of creations.

Changelog: fixed EE: true

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

  1. Enable work_item_epics feature flag
  2. Create an epic
  3. Before: a system note always got created when creating a new epic, that the color got changed
  4. After: no system note. Only when the color actually changes on an update
Edited by Nicolas Dular

Merge request reports

Loading