Refresh open Issue and Merge Request project counter caches when re-opening

This commit is contained in:
Rob Ede 2017-10-30 16:20:29 +00:00 committed by Rémy Coutable
parent 7521f8a846
commit e80f056712
3 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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

View 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