BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e80f0567
Commit
e80f0567
authored
Oct 30, 2017
by
Rob Ede
Committed by
Rémy Coutable
Oct 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refresh open Issue and Merge Request project counter caches when re-opening
parent
7521f8a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
reopen_service.rb
app/services/issues/reopen_service.rb
+1
-0
reopen_service.rb
app/services/merge_requests/reopen_service.rb
+1
-0
39583-reopen-issue-count-cache.yml
changelogs/unreleased/39583-reopen-issue-count-cache.yml
+5
-0
No files found.
app/services/issues/reopen_service.rb
View file @
e80f0567
...
...
@@ -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
...
...
app/services/merge_requests/reopen_service.rb
View file @
e80f0567
...
...
@@ -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
...
...
changelogs/unreleased/39583-reopen-issue-count-cache.yml
0 → 100644
View file @
e80f0567
---
title
:
Refresh open Issue and Merge Request project counter caches when re-opening.
merge_request
:
15085
author
:
Rob Ede @robjtede
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment