From 7556fd8f745f9b38c41ecea1d07ee9281ca593f6 Mon Sep 17 00:00:00 2001 From: arbulu89 Date: Thu, 20 Jul 2023 16:03:43 +0200 Subject: [PATCH] Listen to deregistration events to update home view state --- assets/js/state/sagas/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/assets/js/state/sagas/index.js b/assets/js/state/sagas/index.js index e4c3b71c90..b4269f887d 100644 --- a/assets/js/state/sagas/index.js +++ b/assets/js/state/sagas/index.js @@ -12,6 +12,7 @@ import { import { keysToCamel } from '@lib/serialization'; import { + HOST_DEREGISTERED, setHosts, appendHost, updateHost, @@ -25,6 +26,7 @@ import { } from '@state/hosts'; import { + CLUSTER_DEREGISTERED, setClusters, appendCluster, updateCluster, @@ -38,6 +40,7 @@ import { import { SAP_SYSTEM_REGISTERED, SAP_SYSTEM_HEALTH_CHANGED, + SAP_SYSTEM_DEREGISTERED, startSapSystemsLoading, stopSapSystemsLoading, setSapSystems, @@ -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() {