Loading
Remove the insights_query_limits feature flag
What does this MR do and why?
Removes the insights_query_limits feature flag. It has been enabled on GitLab.com since 2026-11-13 (rollout issue), so the Insights chart query limits from !267465 (merged) now always apply:
- Bar and pie charts without
group_bycount issues and merge requests created in the last 180 days. period_limitis capped at three years for itsgroup_by:day1095,week156,month36.projects.onlyaccepts at most 100 entries.
Changes:
- Delete the flag definition and
Gitlab::Insights.query_limits_enabled?. - Drop the
insights_entity:argument fromParamsValidator. It was only used for the flag check. - Remove the flag-off spec contexts.
- Update the Insights docs: version history, and remove the feature flag notes.
GitLab Self-Managed and GitLab Dedicated get these limits on upgrade. The Changelog: changed trailer covers that.
References
- Issue: https://gitlab.com/gitlab-org/gitlab/-/work_items/636125
- Rollout issue: https://gitlab.com/gitlab-org/gitlab/-/work_items/637997
- Introduced by: !267465 (merged)
How to set up and validate locally
- On an Ultimate group, open Analyze > Insights and confirm the default charts load.
POSTto the group's-/insights/querywithgroup_by: monthandperiod_limit: 37. It returns422withMaximum for :group_by month is 36.POSTwith more than 100projects.onlyentries. It returns422.
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.