Draft: Add ad-hoc indexing Feature Flag
What does this MR do and why?
We recently added the capability to trigger ad-hoc indexing when the semantic_code_search MCP tool is invoked (see Issue | MR).
Currently, the only way to toggle ad-hoc indexing (ie, if there are issues during rollout or testing) is to toggle the semantic_code_search MCP tool
This MR adds a gitlab_com_derisk feature flag. This should allow us to disable ad-hoc indexing without disabling the semantic_code_search tool. This can be useful once we are rolling out to all namespaces, and some projects already have Code Embeddings, but we want to temporarily disable ad-hoc indexing for other projects due to problems.
References
Rollout issue: [FF] `allow_adhoc_trigger_code_embeddings_index... (#579581 - closed)
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.