mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Field order changes when updating schema

Open alexanderbotero opened this issue 3 years ago • 5 comments

Gentics Mesh Version

  • v1.7

Operating System

  • Windows

JVM

  • Oracle JDK 11.0.8

Problem

I have created a schema with some fields

body type htlm title type string metadata type list of strings twitter card data micro node url type string description type string

when I add a new field and change the order of the fields, the order of the fields changes and do no follow the order that I set when I configured the schema

Expected behaviour and actual behaviour

keep the order of the fields

alexanderbotero avatar Aug 24 '20 12:08 alexanderbotero

Duplicate of #721

Jotschi avatar Aug 25 '20 08:08 Jotschi

@Jotschi is there an impediment fixing #721 ?

zoosky avatar Aug 25 '20 09:08 zoosky

@zoosky This issue has not yet been adressed.

Jotschi avatar Aug 25 '20 10:08 Jotschi

@Jotschi Any guidance?

zoosky avatar Aug 25 '20 10:08 zoosky

@zoosky At first glance I think it may be possible that this is a UI-only issue. In Mesh server the schema fields are placed within a list and thus have a specific order. I would first verify whether the problem can be reproduced via REST API and if not check the UI code. Otherwise there may be an issue in the FieldMapImpl implementation in the Mesh Core. Maybe the UI is not ordering the fields according to the order of the field schemas.

@pschulzk Maybe you could take a quick glance and check whether this is the case?

Jotschi avatar Aug 25 '20 11:08 Jotschi