Incorrect merge request count at merge request icon

Summary

As a GitLab EE user, I can see the incorrect merge requests count by merge request icon (see attached screenshot).

Steps to reproduce

  1. log on as a user who is a master in one projects group and developer in other groups.
  2. click on Merge Request icon in the top-right corner
  3. check if the number of open merge requests by the icon equals the number at Open filter

Example Project

N/A

What is the current bug behavior?

The number displayed by Merge Requests icon is misleading.

No other effects found.

What is the expected correct behavior?

The number displayed by Merge Requests icon is correct.

Relevant logs and/or screenshots

gitlab_ee_mr_count

Output of checks

N/A

Results of GitLab environment info

Expand for output related to GitLab environment info

Installation with ombibus-gitlab package:

Checking GitLab Shell ...

GitLab Shell version >= 6.0.4 ? ... OK (6.0.4) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 8/1 ... ok 7/2 ... ok 9/4 ... ok 9/5 ... ok 9/6 ... ok 9/7 ... ok 9/8 ... ok 9/9 ... ok 9/10 ... ok 9/11 ... ok 9/12 ... ok 61/13 ... ok 9/14 ... ok 61/15 ... ok 9/16 ... ok 9/17 ... ok 9/18 ... ok 17/19 ... ok 17/20 ... ok 17/21 ... ok 18/23 ... ok 17/24 ... ok 18/25 ... ok 17/26 ... ok 34/31 ... ok 23/35 ... ok 23/36 ... ok 23/37 ... ok 23/39 ... ok 23/40 ... ok 23/41 ... ok 23/42 ... ok 23/43 ... ok 23/44 ... ok 23/45 ... ok 23/46 ... ok 23/47 ... ok 23/48 ... ok 23/49 ... ok 23/50 ... ok 23/51 ... ok 23/52 ... ok 23/53 ... ok 7/54 ... ok 7/55 ... ok 7/56 ... ok 7/57 ... ok 18/58 ... ok 23/59 ... ok 18/60 ... ok 23/61 ... ok 36/65 ... ok 27/67 ... ok 23/68 ... ok 27/70 ... ok 23/71 ... ok 49/72 ... ok 18/74 ... ok 37/75 ... ok 60/76 ... ok 61/78 ... ok 18/79 ... ok 61/80 ... ok 61/81 ... ok 18/82 ... ok 18/83 ... ok 61/84 ... ok 81/86 ... ok 90/88 ... ok 79/89 ... ok 79/90 ... ok 79/91 ... ok 79/92 ... ok 5/93 ... repository is empty 37/94 ... ok 61/95 ... ok 17/96 ... ok 18/97 ... ok 81/98 ... ok 107/99 ... repository is empty 108/100 ... ok 60/101 ... ok 109/102 ... ok 18/103 ... ok 110/105 ... ok 76/107 ... ok 76/109 ... ok 76/110 ... ok 76/111 ... ok 109/113 ... ok 114/114 ... ok 136/117 ... ok 81/118 ... ok 145/119 ... ok 145/120 ... ok 145/121 ... ok 145/122 ... ok 92/123 ... ok 92/124 ... ok 92/125 ... ok 37/126 ... ok 159/131 ... ok 60/132 ... ok 46/133 ... ok 46/134 ... ok 46/135 ... ok 46/136 ... ok 46/137 ... ok 46/139 ... ok 46/140 ... ok 46/141 ... ok 46/143 ... ok 46/144 ... ok 46/145 ... ok 46/146 ... ok 46/148 ... ok 46/150 ... ok 46/151 ... ok 46/152 ... ok 46/153 ... ok 46/154 ... ok 46/155 ... ok 46/156 ... ok 46/157 ... ok 106/160 ... ok 46/161 ... ok 46/162 ... ok 46/163 ... ok 46/164 ... ok 46/165 ... ok 46/166 ... ok 46/167 ... ok 46/168 ... ok 46/173 ... ok 46/174 ... ok 46/175 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Reply by email is disabled in config/gitlab.yml Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 8/1 ... yes 7/2 ... yes 9/4 ... yes 9/5 ... yes 9/6 ... yes 9/7 ... yes 9/8 ... yes 9/9 ... yes 9/10 ... yes 9/11 ... yes 9/12 ... yes 61/13 ... yes 9/14 ... yes 61/15 ... yes 9/16 ... yes 9/17 ... yes 9/18 ... yes 17/19 ... yes 17/20 ... yes 17/21 ... yes 18/23 ... yes 17/24 ... yes 18/25 ... yes 17/26 ... yes 34/31 ... yes 23/35 ... yes 23/36 ... yes 23/37 ... yes 23/39 ... yes 23/40 ... yes 23/41 ... yes 23/42 ... yes 23/43 ... yes 23/44 ... yes 23/45 ... yes 23/46 ... yes 23/47 ... yes 23/48 ... yes 23/49 ... yes 23/50 ... yes 23/51 ... yes 23/52 ... yes 23/53 ... yes 7/54 ... yes 7/55 ... yes 7/56 ... yes 7/57 ... yes 18/58 ... yes 23/59 ... yes 18/60 ... yes 23/61 ... yes 36/65 ... yes 27/67 ... yes 23/68 ... yes 27/70 ... yes 23/71 ... yes 49/72 ... yes 18/74 ... yes 37/75 ... yes 60/76 ... yes 61/78 ... yes 18/79 ... yes 61/80 ... yes 61/81 ... yes 18/82 ... yes 18/83 ... yes 61/84 ... yes 81/86 ... yes 90/88 ... yes 79/89 ... yes 79/90 ... yes 79/91 ... yes 79/92 ... yes 5/93 ... yes 37/94 ... yes 61/95 ... yes 17/96 ... yes 18/97 ... yes 81/98 ... yes 107/99 ... yes 108/100 ... yes 60/101 ... yes 109/102 ... yes 18/103 ... yes 110/105 ... yes 76/107 ... yes 76/109 ... yes 76/110 ... yes 76/111 ... yes 109/113 ... yes 114/114 ... yes 136/117 ... yes 81/118 ... yes 145/119 ... yes 145/120 ... yes 145/121 ... yes 145/122 ... yes 92/123 ... yes 92/124 ... yes 92/125 ... yes 37/126 ... yes 159/131 ... yes 60/132 ... yes 46/133 ... yes 46/134 ... yes 46/135 ... yes 46/136 ... yes 46/137 ... yes 46/139 ... yes 46/140 ... yes 46/141 ... yes 46/143 ... yes 46/144 ... yes 46/145 ... yes 46/146 ... yes 46/148 ... yes 46/150 ... yes 46/151 ... yes 46/152 ... yes 46/153 ... yes 46/154 ... yes 46/155 ... yes 46/156 ... yes 46/157 ... yes 106/160 ... yes 46/161 ... yes 46/162 ... yes 46/163 ... yes 46/164 ... yes 46/165 ... yes 46/166 ... yes 46/167 ... yes 46/168 ... yes 46/173 ... yes 46/174 ... yes 46/175 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... yes Active users: ... 120 Elasticsearch version 5.1 - 5.5? ... skipped (elasticsearch is disabled)

Checking GitLab ... Finished

Results of GitLab application Check

Expand for output related to the GitLab application check

See above

Possible fixes

N/A

Assignee Loading
Time tracking Loading