Update epic cache counts on project/group deletion
-
Review changes -
-
Download -
Patches
-
Plain diff
What does this MR do and why?
When issue's count or weight is changed for an epic, we update its cached values. These cached values are sum of both direct epic's issues and also sub-epic's issues.
Because we want to include subepics weights/counts too, when cached value is changed we propagate this change to all epic ancestors. This is achieved by scheduling cache update for epic's parent in epic's after_commit callback.
Related to #356683 (closed)
DB changes:
- queries to get impacted epics when destroying group or project - !90615 (comment 1000841520) and !90615 (comment 1000999580)
- queries to get epic's cached sum/counts - !90615 (comment 1004585335) and !90615 (comment 1004589231)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
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.
Merge request reports
- version 334ecdb3e8
- version 32889d31f2
- version 318b63519c
- version 30fd4f84ed
- version 291efed070
- version 289926eaa8
- version 2752092e65
- version 26764ec17b
- version 2594fc01cd
- version 2437b40441
- version 23644f2cc2
- version 22c516087f
- version 21e7326d2c
- version 20488b38ef
- version 193392fe7f
- version 18607c8ec6
- version 17e4e8e6df
- version 16c8585f90
- version 15b3ec0244
- version 14fbd919c0
- version 1308893cea
- version 1279b0bad5
- version 116899c10e
- version 1033dbd6fb
- version 95d5eebdb
- version 89a7b4b4e
- version 7b938bffe
- version 6136d2798
- version 56aa6058c
- version 4d23711d3
- version 3c17540aa
- version 297e80016
- version 17b6de4c7
- master (base)
- latest version11fbd5132 commits,
- version 334ecdb3e81 commit,
- version 32889d31f21 commit,
- version 318b63519c3 commits,
- version 30fd4f84ed2 commits,
- version 291efed0702 commits,
- version 289926eaa82 commits,
- version 2752092e652 commits,
- version 26764ec17b2 commits,
- version 2594fc01cd2 commits,
- version 2437b404412 commits,
- version 23644f2cc22 commits,
- version 22c516087f2 commits,
- version 21e7326d2c1 commit,
- version 20488b38ef2 commits,
- version 193392fe7f4 commits,
- version 18607c8ec63 commits,
- version 17e4e8e6df2 commits,
- version 16c8585f902 commits,
- version 15b3ec02442 commits,
- version 14fbd919c02 commits,
- version 1308893cea2 commits,
- version 1279b0bad51 commit,
- version 116899c10e1 commit,
- version 1033dbd6fb1 commit,
- version 95d5eebdb1 commit,
- version 89a7b4b4e1 commit,
- version 7b938bffe1 commit,
- version 6136d27981 commit,
- version 56aa6058c1 commit,
- version 4d23711d31 commit,
- version 3c17540aa1 commit,
- version 297e800161 commit,
- version 17b6de4c71 commit,
- Side-by-side
- Inline
There are no changes yet
No changes between version 28 and version 28