Added ability to push multi result count to sidebar
What does this MR do and why?
Added ability to push multi-result count to sidebar
Currently all counts for the results in the left sidebar are collected using separate api that allows us to get Elastic Search results. The new multi-result page is using graphQL and Zoekt. This MR is fixing the simplest scenario for rendering results count in the sidebar.
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Enable the forks filter FF
echo 'Feature.enable(:zoekt_multimatch_frontend)' | rails c
- Make sure advanced search is installed and enabled
- Make sure you enable zoekt.
- Visit search page
http://gdk.test:3000/search
- Search code using namespace where zoekt is enabled
- Status bar results number and sidebar results number should are same.
related to #499691
Edited by Tomas Bulva