Refactor empty search results
What does this MR do and why?
Related to #461874 (closed)
Refactor Gitlab::EmptySearchResults
so that I can use it in the next MR !157210 (merged)
- Move to search namespace
- Clean up rubocop todos
- Introduce
scope
tofailed?
method so that it can be used with all Advanced search scopes. Currently this works for Zoekt only but this code can (and will) be used by Advanced search
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
No UI changes
How to set up and validate locally
- Enable exact code search for gdk
- run a code search and verify that exact code search is working
- stop the zoekt webserver
gdk stop zoekt-webserver-development
- run a code search and verify the failed UI comes back
Edited by Terri Chu