Move resetting of counter from before_transition to after_transition
What does this MR do and why?
Move the reset of the counter at the beginning of a project artifact size refresh from before_transition
to after_transition
.
The reason is that the transition changes the status
of the record. This status
is used in other parts of the codebase to block certain APIs and services. For the blocking mechanism to work more reliably, the change in status
must be committed, before the counter is reset.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #373469
Edited by Albert