You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by ni...@apache.org on 2018/12/21 20:23:05 UTC

[metron] branch master updated: METRON-1941 Alert Escalation Not Consistent in Alerts UI (ruffle1986 via nickwallen) closes apache/metron#1306

This is an automated email from the ASF dual-hosted git repository.

nickallen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/metron.git


The following commit(s) were added to refs/heads/master by this push:
     new adbe945  METRON-1941 Alert Escalation Not Consistent in Alerts UI (ruffle1986 via nickwallen) closes apache/metron#1306
adbe945 is described below

commit adbe94530e0783aeee976e765e3e57c0907c2854
Author: ruffle1986 <ft...@gmail.com>
AuthorDate: Fri Dec 21 15:22:35 2018 -0500

    METRON-1941 Alert Escalation Not Consistent in Alerts UI (ruffle1986 via nickwallen) closes apache/metron#1306
---
 .../metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts b/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
index fcc129f..20c3a19 100644
--- a/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
+++ b/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
@@ -289,8 +289,10 @@ export class AlertsListComponent implements OnInit, OnDestroy {
   }
 
   processEscalate() {
-    this.updateService.updateAlertState(this.selectedAlerts, 'ESCALATE', false).subscribe(results => {
+    this.updateService.updateAlertState(this.selectedAlerts, 'ESCALATE', false).subscribe(() => {
+      const alerts = [...this.selectedAlerts];
       this.updateSelectedAlertStatus('ESCALATE');
+      this.alertsService.escalate(alerts).subscribe();
     });
   }