Commit e80f0567 authored by Rob Ede's avatar Rob Ede Committed by Rémy Coutable
Browse files

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

parent 6e5c90a4ec17
......@@ -9,6 +9,7 @@ def execute(issue)
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 @@ def execute(merge_request)
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
......
---
title: Refresh open Issue and Merge Request project counter caches when re-opening.
merge_request: 15085
author: Rob Ede @robjtede
type: fixed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment