Groups API Statistics doesn't return data when Group ID is specified
Summary
Groups API Statistics doesn't return data when Group ID is specified. This works for Projects but not Groups, though both use very similar query structure.
Steps to reproduce
Using Curl or a REST API interface, as an Admin user, query for statistics against Groups in v4 API, then repeat that query for statistics against a specified Group ID.
Example Project
N/A, any project works .
What is the current bug behavior?
No "statistics" response in query.
What is the expected correct behavior?
The response seen from a generic groups query is desirable.
Output of checks
Only verified on EE, not GitLab.com as I don't have admin rights.
Results of GitLab environment info
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)