Group page project count does not disambiguate archived projects from count
Summary
On the Groups page, the Project count displayed for a Group does not disambiguate the unarchived project count from the archived project count and instead shows a count of all Projects ever in a Group.
Steps to reproduce
- Create a group
- Create 2 projects within that group
- Archive 1 of the 2 projects
- Go to the groups page (e.g.
http://gitlab.medstrat.com/dashboard/groups
) - Read the count as 2 instead of 1 for the group from step 1
- Go to the group page (e.g.,
http://gitlab.medstrat.com/server
) - Note that there is only 1 project in the group even though step 5 said there were 2
Expected behavior
The project count should only include unarchived projects (either that or disambiguate the count of archived vs unarchived projects somehow).
Actual behavior
The project count includes both unarchived and archived projects in the count.
Relevant logs and/or screenshots
Groups shows that "Server Team" has 8 projects
Server Team group page shows that the "Server Team" has 7 projects (7 unarchived, 1 archived)
Output of checks
Results of GitLab application Check
[root@gitlab gitlab]# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 3.6.1 ? ... OK (3.6.1)
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: ...
20/74 ... ok
21/75 ... ok
21/77 ... ok
20/78 ... ok
20/80 ... ok
20/81 ... ok
21/82 ... ok
19/83 ... ok
19/84 ... ok
19/85 ... ok
21/86 ... ok
20/87 ... ok
6/93 ... ok
6/96 ... ok
6/97 ... ok
21/98 ... ok
21/99 ... ok
19/100 ... ok
19/101 ... ok
20/102 ... ok
27/106 ... ok
19/107 ... ok
20/108 ... ok
27/111 ... ok
27/113 ... ok
19/115 ... ok
27/116 ... ok
27/118 ... ok
27/120 ... ok
27/122 ... ok
20/123 ... ok
9/124 ... ok
52/125 ... ok
20/126 ... ok
56/128 ... ok
56/129 ... ok
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /home/git/.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? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
20/74 ... yes
21/75 ... yes
21/77 ... yes
20/78 ... yes
20/80 ... yes
20/81 ... yes
21/82 ... yes
19/83 ... yes
19/84 ... yes
19/85 ... yes
21/86 ... yes
20/87 ... yes
6/93 ... yes
6/96 ... yes
6/97 ... yes
21/98 ... yes
21/99 ... yes
19/100 ... yes
19/101 ... yes
20/102 ... yes
27/106 ... yes
19/107 ... yes
20/108 ... yes
27/111 ... yes
27/113 ... yes
19/115 ... yes
27/116 ... yes
27/118 ... yes
27/120 ... yes
27/122 ... yes
20/123 ... yes
9/124 ... yes
52/125 ... yes
20/126 ... yes
56/128 ... yes
56/129 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/usr/bin/git"
Git version >= 2.7.3 ? ... yes (2.9.3)
Active users: 35
Checking GitLab ... Finished
Results of GitLab environment info
[root@gitlab gitlab]# sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version:
Bundler Version:1.12.5
Rake Version: 10.5.0
Sidekiq Version:4.1.4
GitLab information
Version: 8.12.3
Revision: 467e1ca
Directory: /home/git/gitlab
DB Adapter: postgresql
URL: http://gitlab.medstrat.com
HTTP Clone URL: http://gitlab.medstrat.com/some-group/some-project.git
SSH Clone URL: git@gitlab.medstrat.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 3.6.1
Repository storage paths:
- default: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
Possible fixes
Skipped.