Unable to add issue to project from a board - target project not in the list
Problem to solve
On an issue board's "Open" column, you can click the plus icon to "Add issue". That triggers a small panel to appear. In this panel, the "Project" selector sometimes does not display the project you need to select. (This was reported in another issue.)
Replication instructions
- Go to a board in gitlab-org (example)
- In the "Open" column, click the plus icon to "Add issue".
- In the "Project" selector, type "gitlab".
- See that the gitlab-org/gitlab project does not appear.
Note: You can type "end-to-end" as a workaround. That will cause gitlab-org/gitlab to appear as the 3rd suggestion.
Proposal
On the board's "Add issue" feature, the "Project" selector should use similarity sorting.
Relevant notes
As far as I can see it's using the group projects API endpoint which already has an option for similarity search. ... Fixing [this] is a 1. FE only change, we just need to add
order_by=similarity
URL parameter. There is a small documentation about the parameter under the table: https://docs.gitlab.com/ee/api/groups.html#list-a-groups-projects