asfgit closed pull request #1306: METRON-1941: Alert Escalation Not Consistent 
in Alerts UI
URL: https://github.com/apache/metron/pull/1306
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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 fcc129f8bf..20c3a19410 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();
     });
   }
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to