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 2026/03/05 21:53:31 UTC

(streampipes) branch fix-local-storage created (now 92b570f0a4)

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

riemer pushed a change to branch fix-local-storage
in repository https://gitbox.apache.org/repos/asf/streampipes.git


      at 92b570f0a4 fix: Remember page settings after logout

This branch includes the following new commits:

     new 92b570f0a4 fix: Remember page settings after logout

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(streampipes) 01/01: fix: Remember page settings after logout

Posted by ri...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 92b570f0a4f25641f9dbaccbf69bdef660e3cdf5
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Thu Mar 5 22:53:12 2026 +0100

    fix: Remember page settings after logout
---
 .../apache/streampipes/health/monitoring/PipelineHealthCheck.java    | 5 ++++-
 .../shared-ui/src/lib/services/jwt-token-storage.service.ts          | 3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/streampipes-health-monitoring/src/main/java/org/apache/streampipes/health/monitoring/PipelineHealthCheck.java b/streampipes-health-monitoring/src/main/java/org/apache/streampipes/health/monitoring/PipelineHealthCheck.java
index 5447f7044b..c0b0adf71f 100644
--- a/streampipes-health-monitoring/src/main/java/org/apache/streampipes/health/monitoring/PipelineHealthCheck.java
+++ b/streampipes-health-monitoring/src/main/java/org/apache/streampipes/health/monitoring/PipelineHealthCheck.java
@@ -42,6 +42,7 @@ import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Objects;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.stream.Stream;
 
@@ -85,7 +86,9 @@ public class PipelineHealthCheck {
       pipelinesStats.updatePipelineHealthState(
           p.getElementId(),
           p.getName(),
-          p.getHealthStatus().toString());
+          Objects.nonNull(p.getHealthStatus())
+              ? p.getHealthStatus().toString()
+              : PipelineHealthStatus.REQUIRES_ATTENTION.toString());
 
       pipelinesStats.updatePipelineRunningState(
           p.getElementId(),
diff --git a/ui/projects/streampipes/shared-ui/src/lib/services/jwt-token-storage.service.ts b/ui/projects/streampipes/shared-ui/src/lib/services/jwt-token-storage.service.ts
index 78de9686d5..df6a4dd1fe 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/services/jwt-token-storage.service.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/services/jwt-token-storage.service.ts
@@ -27,7 +27,8 @@ export class JwtTokenStorageService {
     constructor() {}
 
     clearTokens(): void {
-        window.localStorage.clear();
+        window.localStorage.removeItem(TOKEN_KEY);
+        window.localStorage.removeItem(USER_KEY);
     }
 
     public saveToken(token: string): void {