You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/05/26 21:12:08 UTC

[incubator-streampipes] branch dev updated: [STREAMPIPES-372] Update health status of pipelines in notifications dialog

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

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 2115359  [STREAMPIPES-372] Update health status of pipelines in notifications dialog
2115359 is described below

commit 2115359e24953abe8b97c12d6a78728e5a26a7c0
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Wed May 26 23:11:54 2021 +0200

    [STREAMPIPES-372] Update health status of pipelines in notifications dialog
---
 .../dialog/pipeline-notifications/pipeline-notifications.component.ts  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts b/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
index 142c19e..3e43fc0 100644
--- a/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
+++ b/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
@@ -43,6 +43,9 @@ export class PipelineNotificationsComponent implements OnInit {
 
   acknowledgeAndClose() {
     this.pipeline.pipelineNotifications = [];
+    if (this.pipeline.healthStatus === "REQUIRES_ATTENTION") {
+      this.pipeline.healthStatus = "OK";
+    }
     this.pipelineService.updatePipeline(this.pipeline).subscribe(msg => {
       this.dialogRef.close();
     });