Draft: Clicking on scope with empty search will send wild card search
requested to merge 438842-when-advanced-search-box-is-empty-and-user-clicks-on-a-scope-load-a-wildcard-search into master
What does this MR do and why?
When user loads search page and there is no search term scopes in the sidebar are populated but results page is empty. We will instead auto fill the search term with the wild card search term. So show all results for the default scope.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Make sure advanced search is installed and enabled
- Make sure Zoekt is installed and enabled.
- Visit search page directly
http://gdk.test:3000/search
- See page full of results
- Click on code scope with zoekt enabled to see zoekt results as well
http://gdk.test:3000/search?group_id=<YOUR_ZOEKT_ENABLED_GROUP_ID>&project_id=<YOUR_ZOEKT_ENABLED_PROJECT_ID>&scope=blobs
Related to #438842