]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Queue notifications as default 27274/head
authorStephan Müller <smueller@suse.com>
Fri, 22 Mar 2019 16:12:20 +0000 (17:12 +0100)
committerStephan Müller <smueller@suse.com>
Tue, 30 Apr 2019 08:15:36 +0000 (10:15 +0200)
commit30aee044659f3f71d9a4e48c8062e7c5103dbd33
tree7d4f902cf3b8e1e2497d5177419107f9b79ec0c8
parent1f5bb0c2006da671fb46137ebd031cd350d5c185
mgr/dashboard: Queue notifications as default

Every time "show" is triggers now the notification gets queued before
sending it out. The notification service will make sure not to send out
duplicated notifications and to combine notifications that have the same
title. The combination of notification is useful for error messages.

For example if the mgr goes down you will get a view toasties notifying
about a 500 error. With the new implementation you get only one with the
different API paths it couldn't get.

Fixes: https://tracker.ceph.com/issues/39034
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/api-interceptor.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/notification.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/notification.service.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/app/shared/services/prometheus-alert.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-notification.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/styles.scss