Gate zoekt traversal ID search based on scope

What does this MR do and why?

Gate zoekt traversal ID search based on scope

AI Summary

This change improves how the search system decides when to use a more efficient search method called "traversal ID queries."

Previously, the system made a simple global check to see if this feature was available across the entire platform. Now it's much smarter - it can check availability at three different levels: for individual projects, for groups of projects, or globally. This means the system can use the faster search method in some areas even if it's not ready everywhere yet.

The code also reduces cache time from 30 minutes to 10 minutes, so it checks for updates more frequently. Additionally, when the feature becomes globally available, it caches that information for a full day to avoid unnecessary repeated checks.

The changes include updating the main logic, the query builder that uses this information, and all the related tests to work with the new three-level checking system instead of the old single global check.

References

https://gitlab.slack.com/archives/C07SBRDSJUS/p1756325568902189?thread_ts=1756236521.159329&cid=C07SBRDSJUS

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.

Merge request reports

Loading