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 2022/01/25 13:40:04 UTC

[incubator-streampipes] 01/02: [STREAMPIPES-507] Increase number of maximum events for widget

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

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

commit caa40b02f55e98363d77683f126d4b1663f8d2a7
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Tue Jan 25 13:46:33 2022 +0100

    [STREAMPIPES-507] Increase number of maximum events for widget
---
 .../components/panel/data-explorer-dashboard-panel.component.html     | 2 +-
 .../components/panel/data-explorer-dashboard-panel.component.ts       | 3 ++-
 .../components/widgets/base/base-data-explorer-widget.directive.ts    | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
index 014c67f..b2c976f 100644
--- a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
+++ b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.html
@@ -39,7 +39,7 @@
                 mat-raised-button
                 color="accent"
                 class="edit-menu-btn"
-                (click)="createW()"
+                (click)="createWidget()"
                 [disabled]="!editMode"
                 data-cy="add-new-widget">
             <i class="material-icons">add</i>
diff --git a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
index 49fcb85..cc82282 100644
--- a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
+++ b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
@@ -170,7 +170,7 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
     this.resetDashboardChanges.emit(true);
   }
 
-  createW() {
+  createWidget() {
     this.dataLakeMeasure = new DataLakeMeasure();
     this.currentlyConfiguredWidget = new DataExplorerWidgetModel();
     this.currentlyConfiguredWidget['@class'] = 'org.apache.streampipes.model.datalake.DataExplorerWidgetModel';
@@ -180,6 +180,7 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
     this.currentlyConfiguredWidget.baseAppearanceConfig.backgroundColor = '#FFFFFF';
     this.newWidgetMode = true;
     this.showDesignerPanel = true;
+    this.newWidgetMode = true;
   }
 
   closeDesignerPanel() {
diff --git a/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.directive.ts b/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.directive.ts
index 5ada1de..0540684 100644
--- a/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.directive.ts
+++ b/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.directive.ts
@@ -33,7 +33,7 @@ import { TimeSelectionService } from '../../../services/time-selection.service';
 @Directive()
 export abstract class BaseDataExplorerWidgetDirective<T extends DataExplorerWidgetModel> implements BaseWidgetData<T>, OnInit, OnDestroy {
 
-  private static TOO_MUCH_DATA = 10;
+  private static TOO_MUCH_DATA_PARAMETER = 10000;
 
   @Output()
   removeWidgetCallback: EventEmitter<boolean> = new EventEmitter();
@@ -145,7 +145,7 @@ export abstract class BaseDataExplorerWidgetDirective<T extends DataExplorerWidg
               this.timeSettings.startTime,
               this.timeSettings.endTime,
               this.dataExplorerWidget.dataConfig as DataExplorerDataConfig,
-              BaseDataExplorerWidgetDirective.TOO_MUCH_DATA
+              BaseDataExplorerWidgetDirective.TOO_MUCH_DATA_PARAMETER
           );
     } else {
       observables = this