Skip to content

Hide metrics shortcuts behind `remove_monitor_metrics` feature flag

Tristan Read requested to merge tr-disable-metric-shortcuts into master

What does this MR do and why?

Follow-up to !115714 (merged).

Moves metrics shortcuts behind the existing :remove_monitor_metrics feature flag, in preparation for the metrics removal in 16.0.

Screenshots or screen recordings

before after
Screenshot_2023-04-26_at_20.39.13 Screenshot_2023-04-26_at_20.40.01

How to set up and validate locally

  1. Open the rails console: rails c
  2. Enable the feature flag: Feature.enable(:remove_monitor_metrics)
  3. Navigate to an existing project.
  4. Open the shortcut menu by pressing ?.
  5. Search for 'metrics'.

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

Edited by Tristan Read

Merge request reports