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
The following commit(s) were added to refs/heads/dev by this push:
new eec32b9 Add sp_internal_label to dropdown in line chart
eec32b9 is described below
commit eec32b92783cdd42938b0eafeed5f42adc25654b
Author: Philipp Zehnder <[email protected]>
AuthorDate: Mon Jul 27 08:59:20 2020 +0200
Add sp_internal_label to dropdown in line chart
---
.idea/runConfigurations/SinksInternalJvmInit.xml | 4 ++++
.../components/widgets/base/base-data-explorer-widget.ts | 5 +++++
.../components/widgets/line-chart/line-chart-widget.component.ts | 1 +
3 files changed, 10 insertions(+)
diff --git a/.idea/runConfigurations/SinksInternalJvmInit.xml
b/.idea/runConfigurations/SinksInternalJvmInit.xml
index 6d2525a..467ef95 100644
--- a/.idea/runConfigurations/SinksInternalJvmInit.xml
+++ b/.idea/runConfigurations/SinksInternalJvmInit.xml
@@ -15,6 +15,10 @@
</envs>
<option name="MAIN_CLASS_NAME"
value="org.apache.streampipes.sinks.internal.jvm.SinksInternalJvmInit" />
<module name="streampipes-sinks-internal-jvm" />
+ <extension name="net.ashald.envfile">
+ <option name="IS_ENABLED" value="false" />
+ <ENTRIES />
+ </extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
diff --git
a/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts
b/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts
index 3eddc5a..e6a6ff4 100644
---
a/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts
+++
b/ui/src/app/data-explorer/components/widgets/base/base-data-explorer-widget.ts
@@ -117,6 +117,11 @@ export abstract class BaseDataExplorerWidget implements
OnChanges {
}
});
+ const b = new EventPropertyPrimitive();
+ b.setRuntimeType('https://www.w3.org/2001/XMLSchema#string');
+ b.setRuntimeName('sp_internal_label');
+ result.push(b);
+
return result;
}
diff --git
a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts
b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts
index 9ee9e94..11f2201 100644
---
a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts
+++
b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-widget.component.ts
@@ -556,6 +556,7 @@ export class LineChartWidgetComponent extends
BaseDataExplorerWidget implements
if (this.nonNumericKey === undefined) {
this.nonNumericKey = 'sp_internal_label';
}
+
this.dataLakeRestService.saveLabelsInDatabase(this.data['measureName'],
this.nonNumericKey, startdate, enddate, label).subscribe(
res => {
// console.log('Successfully wrote label ' + currentLabel + '
into database.');