When using the 'Configure job rules' action from the click action menu (when clicking on an anomaly in the single metric viewer panel in dashboards) and trying to save changes there is an error toast and the save cannot be made.
NOTE: This functionality works as expected when the panel is first created - the create flow loads all the necessary services. This bug is is seen when an SMV panel already exists when they navigate to dashboards and they attempt the action.
Steps to reproduce:
Create an anomaly detection job
Navigate to Dashboards and click Edit > Add panel > Machine Learning > Single metric viewer and select your job and config
Once the panel is added and the dashboard saved, close the browser tab and open a new one.
In the fresh tab - navigate to the dashboard with the SMV panel and click on an anomaly so the menu shows up.
Click on 'Configure job rules' and make a change in the flyout and attempt to save
See the error toast pop up
Expected behavior:
The save should happen and no error toast should appear
Seen in 8.14 and latest main.
Describe the bug:
When using the 'Configure job rules' action from the click action menu (when clicking on an anomaly in the single metric viewer panel in dashboards) and trying to save changes there is an error toast and the save cannot be made.
NOTE: This functionality works as expected when the panel is first created - the create flow loads all the necessary services. This bug is is seen when an SMV panel already exists when they navigate to dashboards and they attempt the action.
Steps to reproduce:
Expected behavior: The save should happen and no error toast should appear
Screenshots (if relevant):