Skip to content

Draft: Clicking on scope with empty search will send wild card search

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

  1. Make sure advanced search is installed and enabled
  2. Make sure Zoekt is installed and enabled.
  3. Visit search page directly http://gdk.test:3000/search
  4. See page full of results
  5. 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

Merge request reports