]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: improve the logic on the alert viewer
authorNizamudeen A <nia@redhat.com>
Wed, 22 Feb 2023 16:52:56 +0000 (22:22 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 21 Mar 2023 16:10:28 +0000 (21:40 +0530)
commitadc7a456b89f4c41805634efb858b1fbc5325888
tree3ae2a39d9efa862dc9c4bfd196aaf03164b21868
parentde822669664a6163d66dba5d288591da3192b6aa
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)
(cherry picked from commit 32a7d2c8ba2aff76f130a3a1c4fb13e810a53e12)
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