project_count size in /groups/???/-/children.json does not take user access permissions into account and returns the full size.
Summary
project_count
size in /groups/???/-/children.json
does not take user access permissions into account and returns the full size. This then manifests in a UI issue which states that there are X more items, however clicking on this only returns the subset that the user can see.
Steps to reproduce
- Change permissions for a user so that they can only see a subset of the projects in a folder.
- Expand the folder in the UI, you should see an additional button that says 'X more items' and the JSON response will have an incorrect number in the
project_count
field.
Example Project
N/A
What is the current bug behavior?
project_count
size in /groups/???/-/children.json
does not take user access permissions into account and returns the full size.
What is the expected correct behavior?
project_count
should take user permissions into account and display the total number of projects the user can see in that folder.
Output of checks
This bug happens on GitLab.com
Possible fixes
Probably missing a filter when calculating the total.
~bug