Skip to content

Filter out insights charts based on settings

What does this MR do and why?

This MR filters out charts/dashboards from the insights feature when specific project settings are disabled.

By default, the insights feature uses the default configuration where generic stats are shown for MRs and issues. When MRs or issues are disabled in the project settings, these charts will not show any useful data.

image

How to set up and validate locally

  1. Make sure that you have ultimate license
  2. Go to a project
  3. Go to Analytics > Insights
  4. Assert that issue and merge request dashboards are available
  5. Go to project setting: Visibility, project features, permissions
  6. Disable issues and merge requests
  7. Go to Analytics > Insights
  8. Assert that the issue and merge requests dashboard are not available (DORA only)

The following message should show:

Some items are not visible beacuse the project was filtered out in the insights.yml file (see the projects.only config in the YAML file or the enabled project features (issues, merge requests) in the project settings).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #250631 (closed)

Edited by Adam Hegyi

Merge request reports