Container, Package and Infrastructure Registry, multi word search
Currently the search bar present in both the Package Registry and the Container Registry supports multiple free text keywords. So the user can type
npm
package
and this would be treated as 2 pieces:
npm
package
The issue is that the API (in both cases) is only able to accept one single word, thus in this example package
would be completely discarded.
Proposal
Join the words and submit to the API npm package
Implementation guide
- Create a new feature flag
registries_multi_word_search
- Join the final
result.search
array in https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/vue_shared/components/registry/registry_search.vue#L57-69 so that it either returns astring
or an array with 1 element. - Testing & verification needs to be done in:
- Package registry list page
- Container registry list & details page
- Infrastructure registry list page
- Harbor registry list page
Edited by Rahul Chanila