Bug: "New Issue" list in group/subgroup displays projects with Issues disabled - which results in 404
Summary
Most of the projects on this links have Issues turned off. And yet they show up here.
Trying to create an issue obviously leads to 404 because /issues/new is not available on these projects.
Steps to reproduce
- Disable Issues at /GROUP/PROJECT/edit#permissions.
- Go to /groups/GROUP/-/issues
- Expand New Issue dropdown
- Search for the PROJECT with disabled issues
- Click "New Issue in PROJECT"
- See 404.
What is the expected correct behavior?
Don't display projects with Issues disabled in that search list.
Output of checks
This bug happens on GitLab.com (https://gitlab.com/groups/virtkick/-/issues) AND self-hosted GitLab.
Proposal
The dropdown is being populated by the /groups/:id/projects
endpoint. This endpoint should get a optional parameter with_issues_enabled
and with_merge_requests_enabled
. The frontend should set that parameter to true
to only get projects that support issues/merge_requests.
Edited by Toon Claes