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
- Create a project-level milestone
- Assign the milestone to an issue
- Promote the milestone to group-level
- 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