Allow to push feature flags to AI gateway
What does this MR do and why?
This MR allows us to adopt the Feature flags in the development of GitLab workflow in AI Gateway, which is a crucial piece for safe deployment by gradually rolling out the change to end-users.
AI Gateway counterpart: feat: support feature flags (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!1235 - merged)
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.
How to set up and validate locally
- Checkout Allow to push feature flags to AI gateway (!163282 - merged)
- Follow !163282 (diffs):
2. Push a feature flag from GitLab-Rails/Sidekiq. i.e.
Gitlab::AiGateway.push_feature_flag(:new_prompt_template, user)
3. Use the feature flag in AI Gateway. i.e.if feature_flags.is_enabled("new_prompt_template")
. gdk start
- Execute a Duo Chat feature and confirm that the flag state in AI Gateway reflects the flag state in GitLab-Rails.
- You can also confirm in the ai-gateway.log.
Edited by Shinya Maeda