]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix for alert notification message being undefined 40588/head
authorNizamudeen A <nia@redhat.com>
Tue, 23 Mar 2021 07:10:46 +0000 (12:40 +0530)
committerNizamudeen A <nia@redhat.com>
Mon, 5 Apr 2021 06:22:40 +0000 (11:52 +0530)
commitf006f10b10727e893e7611b3bbf64ab7caa1e235
tree5cabfeeb83d9aae545a7d1147596795f508d34ca
parentf4fb41419a42bee43a2069637ef17064073bf30b
mgr/dashboard: Fix for alert notification message being undefined

Prometheus alert notification message in the dashboard always comes up
as undefined. Its because we were showing the alert.summary instead of
alert.description for displaying the message. I couldn't find the
summary field in the ceph_default_alerts.yml file. So removed all the
Summary fields from the dashboard code.

Fixes: https://tracker.ceph.com/issues/49342
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 2921b2e9a939e1ad52b07327fdf84885568384b9)
src/pybind/mgr/dashboard/frontend/src/app/shared/models/prometheus-alerts.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert-formatter.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert-formatter.ts
src/pybind/mgr/dashboard/frontend/src/testing/unit-test-helper.ts