It's hard to add a project to the instance security dashboard
Summary
When using the GitLab instance Security Dashboard, you need to manually add projects to it.
This is done by searching a project's name and clicking on it in the list of results.
For common words, it's practically impossible to find the desired project. For example, I can't find gitlab-org/gitlab
when using 3 different search terms.
Steps to reproduce
- Go to https://gitlab.com/-/security/?state=DETECTED&state=CONFIRMED
- Click "Edit dashboard" on the top-right
- Try to find
gitlab-org/gitlab
using the "Search your projects" field; search terms used:- gitlab
- gitlab.org/gitlab
- gitlab-org/gitlab
Example Project
https://gitlab.com/-/security/?state=DETECTED&state=CONFIRMED
What is the current bug behavior?
I can't find gitlab-org/gitlab
in the list of results using known syntax for specifying a project path.
What is the expected correct behavior?
gitlab-org/gitlab
should be the top result when searching specifically for it.
Relevant logs and/or screenshots
gitlab-org/gitlab
is not on this list
Using the same syntax from results, gitlab.org/gitlab
doesn't produce the wanted result either
Using the URL path syntax gitlab-org/gitab
also doesn't yield the project I want
Output of checks
This bug happens on GitLab.com
Possible fixes
- Check to see if the search term is an exact match for a project path. If so, inject the project as the first result.
- Use the same search that the "Create issue" in an Epic uses. It still doesn't understand a path to a project but the results seem more relevant.