]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: improve the logic on the alert viewer 50541/head
authorNizamudeen A <nia@redhat.com>
Wed, 22 Feb 2023 16:52:56 +0000 (22:22 +0530)
committerNizamudeen A <nia@redhat.com>
Wed, 15 Mar 2023 06:52:55 +0000 (12:22 +0530)
commit32a7d2c8ba2aff76f130a3a1c4fb13e810a53e12
tree3ee3f91330a757967da8f7287586c4664bbe7a5e
parent0c6ab8be77890ab73cd86970c20269f8444e6acd
mgr/dashboard: improve the logic on the alert viewer

only fetch the alerts when you toggle the alert viewer. don't fetch it
every 5 second cause its going to cause a heavy toll on the api.

Fixes: https://tracker.ceph.com/issues/58867
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 6cb0679aaf28b5f128ca3cae5f962cac50d084af)
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.ts