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_by count issues and merge requests created in the last 180 days.
  • period_limit is capped at three years for its group_by: day 1095, week 156, month 36.
  • projects.only accepts at most 100 entries.

Changes:

  • Delete the flag definition and Gitlab::Insights.query_limits_enabled?.
  • Drop the insights_entity: argument from ParamsValidator. 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

How to set up and validate locally

  1. On an Ultimate group, open Analyze > Insights and confirm the default charts load.
  2. POST to the group's -/insights/query with group_by: month and period_limit: 37. It returns 422 with Maximum for :group_by month is 36.
  3. POST with more than 100 projects.only entries. It returns 422.

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
Loading