Remove metric related unused routes from project file
What does this MR do and why?
Relates to removals mentioned in #397138 (closed)
Address comment - !122055 (comment 1419054097)
Screenshots or screen recordings
NA
How to set up and validate locally
- End points for Prometheus API proxy is removed. So that endpoint should return 404.
- Metrics endpoint for project namespace should return 404. Endpoints -
metrics/:dashboard_path/
. - Endpoint for creating new metrics panel should also return 404.
- Earlier
/-/metrics
endpoint on project returned 500 for non existence of controller, now it should return 404.
Rest of the changes revolve around specs for fixing the usage of these endpoints using GitlabRoutingHelper
.
While removing the above usages for endpoints, I also had to update the entity code that returned URL to metrics page.
And I had to update some json fixtures to match the new entity schema.
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 #397138 (closed)
Edited by Vitali Tatarintev