Skip to content

Return 404 page when Metrics are hidden

What does this MR do and why?

Describe in detail what your merge request does and why.

Serving a 404 page, if user goes to Metrics dashboard via link. All the access points are being hidden behind the feature flag, we want to make sure that someone with url won't see the dashboard.

Screenshots or screen recordings

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

before after
Screenshot_2023-05-09_at_15.18.06 Screenshot_2023-05-09_at_15.17.21

How to set up and validate locally

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

  1. Go to Monitor > Metrics you should see the dashboard.
  2. Enable the flag by typing this into terminal:
rails c
Feature.enable(:remove_monitor_metrics) 
  1. Refresh the page, you should see 404 page.

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