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

Sort properties on collection types alphabetically #16

Closed
badrange opened this issue Nov 7, 2022 · 2 comments
Closed

Sort properties on collection types alphabetically #16

badrange opened this issue Nov 7, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@badrange
Copy link

badrange commented Nov 7, 2022

In our project we often get diffs where the order of properties on a collection type changes in the type file when a developer adds new types to the Directus schema.

I'm not sure what causes it, it could be that different developers have different orders of creation of fields in their database or something else.

I think it would be great if the properties on each collection type would be sorted alphabetically, that way we'd see fewer changes after updates and reduce the risk of merge conflicts if several people would add new fields to directus/new properties to the collection types.

@maltejur maltejur added the enhancement New feature or request label Nov 7, 2022
@maltejur
Copy link
Owner

maltejur commented Jan 4, 2023

Fixed in f02c82f

@maltejur maltejur closed this as completed Jan 4, 2023
@badrange
Copy link
Author

badrange commented Jan 5, 2023

Thank you for this fix, it will be very helpful to all teams using this extension!

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

No branches or pull requests

2 participants