Duplicate Groups display when filtering with a short filter term
Summary
Duplicate groups are displayed in the results when a short search term is specifed for example: https://gitlab.com/duplicate-groups-filter?filter=gro
Filtering in UI issues request https://gitlab.com/groups/duplicate-groups-filter/-/children.json?filter=gro&sort=name_desc
Response contains groups first with no children then groups with projects that also match search
Steps to reproduce
Visit: https://gitlab.com/duplicate-groups-filter?filter=gro
Example Project
https://gitlab.com/duplicate-groups-filter?filter=gro
What is the current bug behavior?
Duplicate groups are displayed in the results
What is the expected correct behavior?
Results should not contain duplicates
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com /label reproduced on GitLab.com