Fix Search::Zoekt.index? logic
What does this MR do and why?
I've noticed that as soon as we add a new batch of namespaces we're seeing a surge of RuntimeError
exceptions: https://log.gprd.gitlab.net/app/r/s/Zvy14
This is because the logic in Search::Zoekt.index?
only checks Search::Zoekt::EnabledNamespace
availability. But if we don't have it assigned to a node, we can't index it.
This MR fixes this problem
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
Numbered steps to set up and validate the change are strongly suggested.
Edited by Dmitry Gruzd