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 2020/03/23 21:51:19 UTC
[incubator-streampipes] branch dev updated: Connect: Sort event
properties by name in GuessSchema editor
This is an automated email from the ASF dual-hosted git repository.
riemer 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 e8f9cea Connect: Sort event properties by name in GuessSchema editor
e8f9cea is described below
commit e8f9cead95f25c4b3544f2a48b614d5f18f04d25
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Mon Mar 23 22:51:07 2020 +0100
Connect: Sort event properties by name in GuessSchema editor
---
.../app/connect/schema-editor/event-schema/event-schema.component.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts b/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts
index 5b7e524..4cbf81f 100644
--- a/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts
+++ b/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts
@@ -80,6 +80,9 @@ export class EventSchemaComponent implements OnChanges {
this.restService.getGuessSchema(this.adapterDescription).subscribe(guessSchema => {
this.isLoading = false;
this.eventSchema = guessSchema.eventSchema;
+ this.eventSchema.eventProperties.sort((a, b) => {
+ return a.runtimeName < b.runtimeName ? -1 : 1;
+ });
this.eventSchemaChange.emit(this.eventSchema);
this.schemaGuess = guessSchema;