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 2022/11/30 22:20:01 UTC

[streampipes] 01/01: Always sort data explorer fields by name (#817)

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

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

commit 695bd182aa8f8531e72fc06146a1c0ca234e5e7e
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Wed Nov 30 23:19:49 2022 +0100

    Always sort data explorer fields by name (#817)
---
 .../field-selection-panel/field-selection-panel.component.ts          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui/src/app/data-explorer/components/designer-panel/data-settings/field-selection-panel/field-selection-panel.component.ts b/ui/src/app/data-explorer/components/designer-panel/data-settings/field-selection-panel/field-selection-panel.component.ts
index 75ecc2f01..f6ff26abf 100644
--- a/ui/src/app/data-explorer/components/designer-panel/data-settings/field-selection-panel/field-selection-panel.component.ts
+++ b/ui/src/app/data-explorer/components/designer-panel/data-settings/field-selection-panel/field-selection-panel.component.ts
@@ -60,7 +60,9 @@ export class FieldSelectionPanelComponent implements OnInit {
   }
 
   addAllFields(checkFields: FieldConfig[] = []) {
-    this.sourceConfig.measure.eventSchema.eventProperties.forEach(property => {
+    this.sourceConfig.measure.eventSchema.eventProperties
+      .sort((a, b) => a.runtimeName.localeCompare(b.runtimeName))
+      .forEach(property => {
       // this ensures that dimension properties are not aggregated, this is not possible with the influxdb, See [STREAMPIPES-524]
       if (this.sourceConfig.queryType === 'raw' || property.propertyScope !== 'DIMENSION_PROPERTY') {
         const fieldConfig = checkFields.find(field => field.runtimeName === property.runtimeName);