Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field order changes when updating schema #1111

Open
alexanderbotero opened this issue Aug 24, 2020 · 5 comments
Open

Field order changes when updating schema #1111

alexanderbotero opened this issue Aug 24, 2020 · 5 comments

Comments

@alexanderbotero
Copy link

alexanderbotero commented Aug 24, 2020

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

@Jotschi
Copy link
Contributor

Jotschi commented Aug 25, 2020

Duplicate of #721

@Jotschi Jotschi marked this as a duplicate of #721 Aug 25, 2020
@zoosky
Copy link

zoosky commented Aug 25, 2020

@Jotschi is there an impediment fixing #721 ?

@Jotschi
Copy link
Contributor

Jotschi commented Aug 25, 2020

@zoosky This issue has not yet been adressed.

@zoosky
Copy link

zoosky commented Aug 25, 2020

@Jotschi Any guidance?

@Jotschi
Copy link
Contributor

Jotschi commented Aug 25, 2020

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants