]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: improve the logic on the alert viewer 50214/head
authorNizamudeen A <nia@redhat.com>
Wed, 22 Feb 2023 16:52:56 +0000 (22:22 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 28 Feb 2023 08:20:00 +0000 (13:50 +0530)
commit6cb0679aaf28b5f128ca3cae5f962cac50d084af
tree304e3b5762dfb4f06d2c385a8f174cb446653ac7
parent2d80e57dd4a60cbf52074d982ba3ebd4471a14ca
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>
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