Weight calculation on Group Milestone page is incorrect
Summary
The total weight of a Milestone at the Group level is calculated incorrectly (it is not the sum of the individual project milestone weights for the projects in the group).
Steps to reproduce
- Create a first project in a new group
- Create a second project in the same group
- Create a few issues in each project
- Add weight to only some of the issues in the first project
- Visit the first project's Milestone page: note the total weight is calculated correctly
- Visit the group's Milestone page: note that the total weight is calculated incorrectly
Expected behavior
The total group milestone weight should be calculated correctly (it should be the sum of the individual project milestone weights for the projects in the group: 15 in the screenshots).
Actual behavior
The total group milestone weight is calculated incorrectly (it is more than 5 times the sum of the individual project milestone weights for the projects in the group: 81 >> 15 in the screenshots).
Relevant logs and/or screenshots
"Client Team" group claims a weight of 81 for projects "Tech Writing", "echoes Browser", "Native App", "Groundwork", and "Joints Relay" but ...
"Tech Writing" has a weight of 15 (which is correct: one issue has a weight of 6 and another issue has a weight of 9)
"echoes Browser" has no weights (0)
"Native App" has no weight (0)
"Groundwork" has no weights (0)
"Joint Relay" has no weights (0)
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: ...
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
21/93 ... ok
27/96 ... ok
27/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/123 ... ok
9/124 ... ok
21/125 ... ok
20/126 ... ok
56/128 ... ok
56/129 ... ok
27/132 ... ok
32/133 ... 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
21/93 ... yes
27/96 ... yes
27/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/123 ... yes
9/124 ... yes
21/125 ... yes
20/126 ... yes
56/128 ... yes
56/129 ... yes
27/132 ... yes
32/133 ... 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
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version:
Bundler Version:1.13.6
Rake Version: 10.5.0
Sidekiq Version:4.2.1
GitLab information
Version: 8.13.1-ee
Revision: 3f76553
Directory: /home/git/gitlab
DB Adapter: PostgreSQL
DB Version: 9.4.9
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
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 3.6.6
Repository storage paths:
- default: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
Possible fixes
Unknown