Skip to content

Commit

Permalink
Listen to deregistration events to update home view state
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Jul 20, 2023
1 parent 5d1295e commit 7556fd8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions assets/js/state/sagas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import { keysToCamel } from '@lib/serialization';

import {
HOST_DEREGISTERED,
setHosts,
appendHost,
updateHost,
Expand All @@ -25,6 +26,7 @@ import {
} from '@state/hosts';

import {
CLUSTER_DEREGISTERED,
setClusters,
appendCluster,
updateCluster,
Expand All @@ -38,6 +40,7 @@ import {
import {
SAP_SYSTEM_REGISTERED,
SAP_SYSTEM_HEALTH_CHANGED,
SAP_SYSTEM_DEREGISTERED,
startSapSystemsLoading,
stopSapSystemsLoading,
setSapSystems,
Expand Down Expand Up @@ -328,6 +331,21 @@ function* refreshHealthSummaryOnComnponentsHealthChange() {
'CLUSTER_HEALTH_CHANGED',
loadSapSystemsHealthSummary
);
yield debounce(
debounceDuration,
SAP_SYSTEM_DEREGISTERED,
loadSapSystemsHealthSummary
);
yield debounce(
debounceDuration,
CLUSTER_DEREGISTERED,
loadSapSystemsHealthSummary
);
yield debounce(
debounceDuration,
HOST_DEREGISTERED,
loadSapSystemsHealthSummary
);
}

export default function* rootSaga() {
Expand Down

0 comments on commit 7556fd8

Please sign in to comment.