Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
app/services/issues/reopen_service.rb
app/services/issues/reopen_service.rb
+1
-0
app/services/merge_requests/reopen_service.rb
app/services/merge_requests/reopen_service.rb
+1
-0
changelogs/unreleased/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