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:00 UTC

[streampipes] branch SP-817 created (now 695bd182a)

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

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


      at 695bd182a Always sort data explorer fields by name (#817)

This branch includes the following new commits:

     new 695bd182a Always sort data explorer fields by name (#817)

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: Always sort data explorer fields by name (#817)

Posted by ri...@apache.org.
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);