Skip to content

Update milestone events when promoting milestones

What does this MR do and why?

Updates the existing ResourceMilestoneEvent records before deleting the old milestones.

Currently, these events are deleted due to the DB constraint.

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.

How to set up and validate locally

  1. Create a project-level milestone
  2. Assign the milestone to an issue
  3. Promote the milestone to group-level
  4. View the issue and confirm that the system note is still visible (ResourceMilestoneEvent records are used to render the system notes)

Related to #280597 (closed)

Edited by Heinrich Lee Yu

Merge request reports