[RBAC] Monitoring endpoint information not consistent while editing db cluster
Description
Create a Database cluster with monitoring enabled.
Change user permissions and remove all permissions related to monitoring.
Edit the same db cluster
Open the monitoring page.
Actual Result:
Monitoring enabled is visible
0 is written under it
Warning message saying ‘monitoring is disabled’ with Add monitoring Endpoint option.
Expected Result:
For db cluster that already have monitoring enabled, only ‘Enable Monitoring’ with toggle turned on should be displayed, non-clickable.
For db cluster that does not already have monitoring enabled, either the monitoring option while editing the db cluster should not be displayed or an empty page only with ‘Cancel’ and ‘Edit Database’ buttons should be displayed.
Create a Database cluster with monitoring enabled.
Change user permissions and remove all permissions related to monitoring.
Edit the same db cluster
Open the monitoring page.
Actual Result:
Monitoring enabled is visible
0 is written under it
Warning message saying ‘monitoring is disabled’ with Add monitoring Endpoint option.
Expected Result:
For db cluster that already have monitoring enabled, only ‘Enable Monitoring’ with toggle turned on should be displayed, non-clickable.
For db cluster that does not already have monitoring enabled, either the monitoring option while editing the db cluster should not be displayed or an empty page only with ‘Cancel’ and ‘Edit Database’ buttons should be displayed.
Or any similar solution.