Monitoring dashboard should list only active environments in dropdown
Summary
The monitoring dashboard lists all the environments which include Review Apps. Review apps can expire after a period of time thus breaking the dashboard. The environments dropdown should only list active environments.
Steps to reproduce
Have a bunch of review apps and Prometheus metrics enabled.
Example Project
https://gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/-/environments/1239979/metrics
What is the current bug behaviour?
Inactive Review apps appear in the monitoring dashboard dropdown.
What is the expected correct behavior?
Only active environments should appear in the dropdown.
Relevant logs and/or screenshots
This screenshot shows an inactive environment breaking the dashboard.
Workaround
Modify the URL and reload the page.
Edited by 🤖 GitLab Bot 🤖