Skip to content

Hide link to Monitor metrics when flag is turned on

What does this MR do and why?

Describe in detail what your merge request does and why.

Hides link to Monitor > Metrics present in Deployments > Environements in action dropdown of each environment listed & from detailed environment view header.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

before after
Screenshot_2023-05-10_at_10.17.24 Screenshot_2023-05-10_at_10.33.47
Screenshot_2023-05-09_at_11.44.19 Screenshot_2023-05-09_at_14.47.42

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Deployments > Environements and make sure dropdown shows a link to Metrics page.
  2. Click on a specific environment on the list to go to detailed view. The button with link to Metrics should be in the page header.
  3. Enable the flag by typing this into terminal:
rails c
Feature.enable(:remove_monitor_metrics) 
  1. Refresh Deployments > Environements, the link to Metrics should be present within the action dropdown.
  2. Go to detailed view. The button with link to Metrics should not be present.

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 Paulina Sedlak-Jakubowska

Merge request reports