Fix to ensure to use work_item_parent_id when provided
What does this MR do and why?
Fix to ensure to use work_item_parent_id when provided
When a work item is deleted, we won't be able to find its parent through
searching the work item itself and then its parent. For this reason, on
WorkItems: Update Rolledup dates when new child... (!146630 - merged), we added
the work_item_parent_id
to the WorkItems::WorkItemDeletedEvent
.
However, I forgot to use that value in the
::WorkItems::RolledupDates::UpdateParentRolledupDatesEventHandler
.
This fixed that, by checking if a work_item_parent_id
is provided, and
if so, use it, other wise try to find the work_item parent through the
work_item's id.
Related to: #450807 (closed)
Changelog: added
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
Numbered steps to set up and validate the change are strongly suggested.