Archived project merge requests add to group's Merge Requests counter
Summary
Merge requests from archived projects add to the Merge Requests counter for a group. The issue is that the merge request is not visible in the list of merge requests - since the project is archived.
Steps to reproduce
- Take note of the number of merge requests open in a group.
- Archive a project in that group with an open merge request
- Look back at number of group merge requests (it does not change)
- Look for the merge request in the list of merge requests (it's not there)
Expected behavior
The group's merge request counter should not include merge requests from archived projects.
Actual behavior
... The merge requests are included in the total group merge requests badge.
Relevant logs and/or screenshots
Before:
After I unarchived the project and closed the merge request:
Output of checks
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 3.6.6 ? ... OK (3.6.6)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
5/3 ... ok
5/5 ... ok
5/6 ... ok
5/7 ... ok
5/8 ... ok
5/9 ... ok
5/11 ... ok
5/12 ... ok
5/13 ... ok
5/14 ... ok
5/15 ... ok
5/16 ... ok
5/17 ... ok
5/18 ... ok
5/19 ... ok
5/20 ... ok
5/21 ... ok
5/22 ... ok
5/23 ... ok
5/24 ... ok
2/26 ... ok
5/27 ... ok
5/28 ... ok
5/29 ... ok
5/31 ... ok
5/32 ... ok
5/33 ... ok
5/34 ... ok
5/35 ... ok
5/36 ... ok
5/37 ... ok
2/38 ... ok
2/39 ... ok
5/40 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... 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: ...
5/3 ... yes
5/5 ... yes
5/6 ... yes
5/7 ... yes
5/8 ... yes
5/9 ... yes
5/11 ... yes
5/12 ... yes
5/13 ... yes
5/14 ... yes
5/15 ... yes
5/16 ... yes
5/17 ... yes
5/18 ... yes
5/19 ... yes
5/20 ... yes
5/21 ... yes
5/22 ... yes
5/23 ... yes
5/24 ... yes
2/26 ... yes
5/27 ... yes
5/28 ... yes
5/29 ... yes
5/31 ... yes
5/32 ... yes
5/33 ... yes
5/34 ... yes
5/35 ... yes
5/36 ... yes
5/37 ... yes
2/38 ... yes
2/39 ... yes
5/40 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 9
Checking GitLab ... Finished
Results of GitLab environment info
System information System: Ubuntu 14.04 Current User: git Using RVM: no Ruby Version: 2.3.1p112 Gem Version: 2.6.6 Bundler Version:1.13.6 Rake Version: 10.5.0 Sidekiq Version:4.2.1
GitLab information Version: 8.13.6 Revision: 69cda014 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.[private].com HTTP Clone URL: https://gitlab.[private].com/some-group/some-project.git SSH Clone URL: git@gitlab.[private].com:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 3.6.6 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/ Git: /opt/gitlab/embedded/bin/git
Possible fixes
[will search and edit]