Loading
Remove ai_model_selection_namespace_update_rate_limit feature flag
What does this MR do and why?
Removes the ai_model_selection_namespace_update_rate_limit feature flag. The per-user rate limit (30 requests per minute) on the aiModelSelectionNamespaceUpdate GraphQL mutation becomes permanent, non-configurable behaviour.
- Drops the
Feature.enabled?guard inMutations::Ai::ModelSelection::Namespaces::Update#check_rate_limit!. - Deletes the flag definition YAML.
- Removes the "flag disabled" request spec context; the "rate limited endpoint" shared examples now run unconditionally.
- Updates the version history for the limit in
doc/rate_limits/non_configurable.md.
The flag was introduced in !265318 (merged) as part of Project Bulkhead (https://gitlab.com/gitlab-org/gitlab/-/work_items/635380).
Resolves https://gitlab.com/gitlab-org/gitlab/-/work_items/636938
Merge checklist
This MR is prepared ahead of time. Before marking it ready:
- Flag has been at 100% on GitLab.com for at least a week with no customer impact (rollout issue: https://gitlab.com/gitlab-org/gitlab/-/work_items/636937).
- See rollout update
- Confirm the GA milestone in
doc/rate_limits/non_configurable.md(currently19.7) matches the milestone this MR merges into.- Note: Will most likely land in 19.6 so have updated accordingly.
How to set up and validate locally
- Run the request spec:
bin/rspec ee/spec/requests/api/graphql/ai/model_selection/namespaces/update_spec.rb - In a Rails console, confirm the flag no longer exists:
Feature::Definition.get(:ai_model_selection_namespace_update_rate_limit)returnsnil. - Call
aiModelSelectionNamespaceUpdatemore than 30 times in a minute as the same user and confirm the 31st request returns a rate-limit error, without any feature flag enabled.
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.
@julie_huang
Edited by Julie Huang