Groups API should respect subgroups
In at least one case (
GET /api/v4/groups?owned=true), subgroups are not returned when they should be.
GET /api/v4/groups/parent_group/projects doesn't return projects in subgroups when it should, either.
We should audit these endpoints and ensure that subgroups are supported in all cases.
Steps to reproduce
Create a hierarchy of subgroups, make API calls retrieving the results
What is the current bug behavior?
Subgroups are ignored
What is the expected correct behavior?
Subgroups should be respected