Navigation bar counters for issues and merge requests shows wrong numbers
This issue is intended to summarize all the cache-counters related problems because now we have 3 open issues to handle the same problem.
This issue also includes wrong counters in badges
The issues that are covered (and thus closed) by this issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/24117
https://gitlab.com/gitlab-org/gitlab-ce/issues/14054
https://gitlab.com/gitlab-org/gitlab-ce/issues/31926
Summary
There were many reasons why the counter could show the wrong results. Part of them is already fixed in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11270
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11394
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10755
The rest cases that have not been covered yet:
-
Removing (as an admin user) issuables should invalidate the cache -
Archived projects (https://gitlab.com/gitlab-org/gitlab-ce/issues/14054) -
Removing a project