-
Notifications
You must be signed in to change notification settings - Fork 76
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
Guarantee dataset properties in order in dataset-diff #708
Comments
Have to fix it for Dataset Metadata endpoint as well |
How much does the actual order matter? Could sorting first by publishedAt and then by database id work? Are properties inserted in form order currently? |
See this comment about possibly removing |
@getodk/testers there is more detail about this issue in this PR: #933 the three places you'll see these properties in their new order (matching the order in which they appear in the form) are
The weird edge cases include:
|
I’m not sure what should be the expected result in those situations connected with moving fields in a form
|
Overall, like in the CSV export and in the dataset property page, the order of the properties should not change if a property gets moved around in later versions of the form. We're trying to make the order of the properties as consistent over time as possible. However... in this property list on a form status page, I'm trying to make it match the order in the current version form. It may not be the same order as the export order, but the properties here may not contain the full list of dataset properties anyway. Is that the right thing to do? I'm not sure, but feels better than alphabetical order, and I'm hoping it might help someone who is checking the properties in the latest version of the form.
Because the properties within a dataset can come from multiple forms, it's more complex than fields within a form, and it doesn't really matter if the order changes in later versions of different forms. We'll order the properties by
|
Testes with success! |
1 similar comment
Testes with success! |
Dataset properties are returned and shown in alphabetical order on the frontend, but it might be clearer for form designers if these properties match the order in which they are found in the form.
This is related to Issue #675 about guaranteeing property order in the CSV export. Whatever ordering we end up using there, we should use in the dataset-diff endpoint as well.
The text was updated successfully, but these errors were encountered: