Refresh open Issue and Merge Request project counter caches when re-opening
This commit is contained in:
parent
7521f8a846
commit
e80f056712
3 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,7 @@ module Issues
|
|||
notification_service.reopen_issue(issue, current_user)
|
||||
execute_hooks(issue, 'reopen')
|
||||
invalidate_cache_counts(issue, users: issue.assignees)
|
||||
issue.update_project_counter_caches
|
||||
end
|
||||
|
||||
issue
|
||||
|
|
|
@ -11,6 +11,7 @@ module MergeRequests
|
|||
merge_request.reload_diff(current_user)
|
||||
merge_request.mark_as_unchecked
|
||||
invalidate_cache_counts(merge_request, users: merge_request.assignees)
|
||||
merge_request.update_project_counter_caches
|
||||
end
|
||||
|
||||
merge_request
|
||||
|
|
5
changelogs/unreleased/39583-reopen-issue-count-cache.yml
Normal file
5
changelogs/unreleased/39583-reopen-issue-count-cache.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Refresh open Issue and Merge Request project counter caches when re-opening.
|
||||
merge_request: 15085
|
||||
author: Rob Ede @robjtede
|
||||
type: fixed
|
Loading…
Reference in a new issue