Set old_associations time_change to 0 and set timelog
requested to merge gitlab-community/gitlab:cler_x/442414-spend-command-and-widget-to-return-the-same into master
What does this MR do and why?
- It should fix issue #442414
- Sets previous.time_change explicitly to 0 so it is not nil (otherwise it is set to the current value)
- Sets the @timelog before updating the issue so the change is detected and the webhook then triggered
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
Compare before and after of POST request payloads
Before
"changes": {
"time_change": {
"previous": 0,
"current": 0
}
}
After
"changes": {
"time_change": {
"previous": 0,
"current": 3600
}
}
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by clxrx