Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm b <becker714td@gmail.com>2018-03-23 08:09:26 +0300
committerm b <becker714td@gmail.com>2018-04-05 21:24:45 +0300
commitb099c6ff9fcbd81beb75fd12bff8d1d5b9c16083 (patch)
treebab585d9d1c522792c9313a3e5c1c1be523beaa3 /app/models/user.rb
parent6b3585d8ea15a7ee1a5cd2f5799caace48ab0c32 (diff)
Deleting a MR you are assigned to should decrements counter
The merge request counter in the UI was not decreasing when a merge request was deleting. This was just due to the cache not being refreshed on a delete action. fixes: https://gitlab.com/gitlab-org/gitlab-ce/issues/44458
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 7b6857a0d34..ce56b39b1c8 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1046,11 +1046,6 @@ class User < ActiveRecord::Base
end
end
- def update_cache_counts
- assigned_open_merge_requests_count(force: true)
- assigned_open_issues_count(force: true)
- end
-
def update_todos_count_cache
todos_done_count(force: true)
todos_pending_count(force: true)