-
Notifications
You must be signed in to change notification settings - Fork 2.8k
deterministic ordering of objects in exported metadata (close #3125) #3230
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
deterministic ordering of objects in exported metadata (close #3125) #3230
Conversation
|
Deploy preview for hasura-docs ready! Built with commit 58db57e |
|
/heroku deploy |
|
Review app for commit 6f80691 deployed to Heroku: https://hge-ci-pull-3230.herokuapp.com |
|
Review app for commit b080558 deployed to Heroku: https://hge-ci-pull-3230.herokuapp.com |
b080558 to
6f5d599
Compare
|
Review app for commit 6f5d599 deployed to Heroku: https://hge-ci-pull-3230.herokuapp.com |
6f5d599 to
1724e40
Compare
|
Review app for commit 1724e40 deployed to Heroku: https://hge-ci-pull-3230.herokuapp.com |
|
Review app for commit 58db57e deployed to Heroku: https://hge-ci-pull-3230.herokuapp.com |
lexi-lambda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This seems like it could be something that could benefit a lot from random testing, since it could uncover edge cases the handwritten test might have missed (either now or in the future). It seems like it would probably be nontrivial to add, though, so I’m happy to wait and see if it ever becomes an actual problem (since this functionality doesn’t seem deeply critical).
|
Review app https://hge-ci-pull-3230.herokuapp.com is deleted |
…3125) (hasura#3230) * deterministic ordering of objects in exported metadata, close hasura#3125 * refactor 'Hasura.RQL.DDL.Metadata'
Description
Always export metadata objects in a deterministic order. Previously the order depends on how the Postgres supplies the data by default (with simple
SELECTwithout ordering). In this PR, the server explicitly selects the data from Postgres usingORDER BYclause, thus making the export of metadata objects deterministic.Affected components
Related Issues
Close #3125
Solution and Design
ORDER BYinexport_metadatametadata query API.Steps to test and verify
Define metadata objects in any order but the order of exported metadata should remain the same.