From 9782df568770b711eebb2dbfcb2133a2b3300dd6 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Sat, 13 Jul 2024 23:37:48 +0200 Subject: [PATCH] Visualize internal property names in UI (#527) image --- quesma/quesma/ui/schemas.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/quesma/quesma/ui/schemas.go b/quesma/quesma/ui/schemas.go index 15ee4a0d6..ca893ae19 100644 --- a/quesma/quesma/ui/schemas.go +++ b/quesma/quesma/ui/schemas.go @@ -22,7 +22,7 @@ func (qmc *QuesmaManagementConsole) generateSchemas() []byte { buffer.Html(``) - buffer.Html(`

`) + buffer.Html(`

`) buffer.Html(`Index Name: `) buffer.Text(schemaName.AsString()) @@ -30,7 +30,10 @@ func (qmc *QuesmaManagementConsole) generateSchemas() []byte { buffer.Html(``) buffer.Html(``) buffer.Html(``) - buffer.Html(`Name`) + buffer.Html(`Public Name`) + buffer.Html(``) + buffer.Html(``) + buffer.Html(`Internal Name`) buffer.Html(``) buffer.Html(``) buffer.Html(`Type`) @@ -44,6 +47,9 @@ func (qmc *QuesmaManagementConsole) generateSchemas() []byte { buffer.Text(fieldName.AsString()) buffer.Html(``) buffer.Html(``) + buffer.Text(field.InternalPropertyName.AsString()) + buffer.Html(``) + buffer.Html(``) buffer.Text(fmt.Sprintf("%s %s", field.Type.Name, field.Type.Properties)) buffer.Html(``) buffer.Html(``) @@ -53,6 +59,9 @@ func (qmc *QuesmaManagementConsole) generateSchemas() []byte { targetFieldName := schema.Aliases[aliasFieldName] buffer.Html(``) buffer.Html(``) + buffer.Text("-") + buffer.Html(``) + buffer.Html(``) buffer.Text(fmt.Sprintf("%s->%s", aliasFieldName.AsString(), targetFieldName.AsString())) buffer.Html(``) buffer.Html(``)