Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Synthetics] Update status count viz on monitor upsert (#145898)
## Summary Resolves #145845. This resolves the issue of count not updating when a monitor is enabled/disabled by listening for the `success` version of the saved object upsert action. This way, any time the frontend verifies that a monitor has had its state changed, we'll update the status count as a secondary effect. This could introduce some risk if we start using that action in some sort of batched way in the future, but at present it seems to only be driven by direct 1:1 user input to the Actions Popover component that we've reused in the detail flyout and on the overview cards. ## Testing this PR You can simply create some managed monitors and change their state from the Overview page. ![20221121122624](https://user-images.githubusercontent.com/18429259/203121081-2c1232b7-8f62-4d93-bec8-4f98e4bc7433.gif)
- Loading branch information