You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2025/12/04 12:17:25 UTC

(streampipes) 01/01: fix: Use data view element id when removing charts from dashboard

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

zehnder pushed a commit to branch fix-failing-dashboard-test
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 06d388e14f40974c908695ac747f9696be291878
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Thu Dec 4 13:17:13 2025 +0100

    fix: Use data view element id when removing charts from dashboard
---
 .../resource/management/DataExplorerWidgetResourceManager.java          | 2 +-
 ui/cypress/support/utils/GeneralUtils.ts                                | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/DataExplorerWidgetResourceManager.java b/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/DataExplorerWidgetResourceManager.java
index ebae391785..c2fb0a6a8b 100644
--- a/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/DataExplorerWidgetResourceManager.java
+++ b/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/DataExplorerWidgetResourceManager.java
@@ -39,7 +39,7 @@ public class DataExplorerWidgetResourceManager extends CrudResourceManager<DataE
 
   private void deleteDataViewsFromDashboard(String widgetElementId) {
     dashboardManager.findAll().stream()
-        .filter(dashboard -> dashboard.getWidgets().removeIf(w -> w.getId().equals(widgetElementId)))
+        .filter(dashboard -> dashboard.getWidgets().removeIf(w -> w.getDataViewElementId().equals(widgetElementId)))
         .forEach(dashboardManager::update);
   }
 }
diff --git a/ui/cypress/support/utils/GeneralUtils.ts b/ui/cypress/support/utils/GeneralUtils.ts
index 1012f4be22..893240022d 100644
--- a/ui/cypress/support/utils/GeneralUtils.ts
+++ b/ui/cypress/support/utils/GeneralUtils.ts
@@ -22,7 +22,6 @@ export class GeneralUtils {
     }
 
     public static openMenuForRow(rowText: string) {
-        cy.log('ROW TEXT', rowText);
         cy.contains('[role="row"], tr, mat-row', rowText) // be flexible on row element
             .scrollIntoView()
             .within(() => {