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

Schema export sorts order of fields in interfaces #21391

Open
u12206050 opened this issue Feb 9, 2024 · 0 comments · May be fixed by #21392
Open

Schema export sorts order of fields in interfaces #21391

u12206050 opened this issue Feb 9, 2024 · 0 comments · May be fixed by #21392

Comments

@u12206050
Copy link
Contributor

Describe the Bug

When using the schema export functionality, we noticed that on importing, all our fields on the list-o2m interface were reset to be alphabetically ordered. Upon investigating the schema.json file we saw that on a field under meta.options.fields the array has been sorted.

Fix in PR

To Reproduce

Added a relationship field with the list-o2m interface, add fields to the list in a non alphabetical order.
Run schema export, you might need to change something manually or in another environment for the hash to update, but once you then run schema import you'll notice those fields have now been sorted alphabetically.

Directus Version

10.9.0

Hosting Strategy

Self-Hosted (Docker Image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

3 participants