Gate traversal id search behind minimum zoekt schema version
What does this MR do and why?
Gate traversal id search behind minimum zoekt schema version
AI Summary
This change improves the Zoekt search system by adding a version check to ensure compatibility before enabling advanced search features.
The code introduces a minimum schema version requirement (2531) that must be met across all search repositories before allowing "traversal ID queries" - a more advanced search method. It consolidates duplicate logic by creating a centralized method that checks both feature flags and the schema version requirement, replacing scattered checks throughout the codebase.
The system now caches the version check results for 30 minutes to avoid repeatedly querying the database. When the search system determines if it can use the advanced search features, it verifies that all repositories meet the minimum version requirement and that the necessary feature flags are enabled.
This ensures that the search system only uses advanced features when the underlying infrastructure is ready to support them, preventing potential errors or inconsistencies that could occur if some repositories were running older, incompatible versions.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.