mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[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. 
This commit is contained in:
parent
40de9eb5e7
commit
bf7c3bc502
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import { takeLatest, takeLeading } from 'redux-saga/effects';
|
||||
import { fetchUpsertSuccessAction } from '../monitor_list';
|
||||
import { fetchEffectFactory } from '../utils/fetch_effect';
|
||||
import {
|
||||
fetchMonitorOverviewAction,
|
||||
|
@ -28,7 +29,7 @@ export function* fetchMonitorOverviewEffect() {
|
|||
|
||||
export function* fetchOverviewStatusEffect() {
|
||||
yield takeLatest(
|
||||
[fetchOverviewStatusAction.get, quietFetchOverviewStatusAction.get],
|
||||
[fetchOverviewStatusAction.get, quietFetchOverviewStatusAction.get, fetchUpsertSuccessAction],
|
||||
fetchEffectFactory(
|
||||
fetchOverviewStatus,
|
||||
fetchOverviewStatusAction.success,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue