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 |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Go to
Monitor >
Metrics
you should see the dashboard. - Enable the flag by typing this into terminal:
rails c
Feature.enable(:remove_monitor_metrics)
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #399231 (closed)
Edited by Paulina Sedlak-Jakubowska