- Create a threshold alert for a service in APM
- Go to Kibana > Alerts and Actions in Kibana Management
- Click the alert name in the title
- Click the Edit link in the upper right corner
A flyout open and then disappears and the screen goes blank.
This is in the JS console:
Uncaught TypeError: Cannot destructure property 'notifications' of '(0 , _useApmPluginContext.useApmPluginContext)(...).core' as it is undefined.
This is because we're passing in a component that's not wrapped with the needed context provider when we create the alert.
It should bring up the flyout and allow you to edit and save the alert.
We've opened #65549 with the Alerting team in order to make it so the edit action can be disabled in the Alerting UI.
The components used also use useUrlParams, which means they won't work for editing because they get data about the alert from the URL. Make it so we don't have to use this in the Alerting UI.
A flyout open and then disappears and the screen goes blank.
This is in the JS console:
This is because we're passing in a component that's not wrapped with the needed context provider when we create the alert.
It should bring up the flyout and allow you to edit and save the alert.
We've opened #65549 with the Alerting team in order to make it so the edit action can be disabled in the Alerting UI.
The components used also use
useUrlParams, which means they won't work for editing because they get data about the alert from the URL. Make it so we don't have to use this in the Alerting UI.