]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix for alert notification message being undefined 40590/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:37:14 +0000 (12:07 +0530)
commit15f50dd0a32dcc06315062ad56735876fcef0524
treeb947bfa0b52edab087d79d110ea8f96119c6e032
parentfd6dd0d340998b5a2d56e12d592473d5224ec395
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