Skip to content

Analytics dashboards: Hide editor buttons for group context

Alex Pennells requested to merge 435543-hide-editor-buttons into master

What does this MR do and why?

Group analytics dashboards do not currently support custom dashboards or visualizations, so hide the buttonsVisualization designerandNew dashboard` buttons in this case.

Screenshots or screen recordings

Before After
Screenshot_2023-12-18_at_2.04.42_PM Screenshot_2023-12-18_at_2.05.04_PM

How to set up and validate locally

  1. Feature.enable(:group_analytics_dashboards)
  2. Visit analytics dashboard list for any group (ex. http://gdk.test:3000/groups/gitlab-org/-/analytics/dashboards)
  3. Validate that the buttons are hidden

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 #435543 (closed)

Merge request reports