-
Notifications
You must be signed in to change notification settings - Fork 2.8k
computed fields in export/import metadata, other fixes #3211
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
computed fields in export/import metadata, other fixes #3211
Conversation
9893425 to
cfd528f
Compare
|
Deploy preview for hasura-docs ready! Built with commit 9893425 |
|
Deploy preview for hasura-docs ready! Built with commit b56063a |
|
Review app for commit 55fb909 deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
-> Adds computed fields' function input arguments scalars thus fixes hasura#3232 -> In `buildSchemaCache`, adding computed fields done before permissions since permissions depend on computed fields availability -> Rename all 'computedCol....' to 'computedField....'
55fb909 to
ac775dd
Compare
-> Remove 'functionArgsWithoutTableArg' -> drop table argument in input args sequence of 'ComputedFieldFunction'
ac775dd to
14be647
Compare
|
Review app for commit 14be647 deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app for commit c776fe6 deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app for commit 21f5df3 deployed to Heroku: https://hge-ci-pull-3211.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.
This generally LGTM, but I’ve left a few small comments.
no-op refactor; Requested by @lexi-lambda
|
Review app for commit d3a5b60 deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app for commit 68462ba deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app for commit 80fdbe6 deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
Resolve Conflicts: server/src-lib/Hasura/RQL/DDL/Metadata.hs server/tests-py/queries/v1/metadata/export_metadata.yaml
…/graphql-engine into computed-field-metadata-export
|
Review app for commit bad1e6d deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app for commit 3cad102 deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app for commit 02356a6 deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app for commit b56063a deployed to Heroku: https://hge-ci-pull-3211.herokuapp.com |
|
Review app https://hge-ci-pull-3211.herokuapp.com is deleted |
Description
tablesin export/import metadatacomputedCol..names in the codebase.Affected components
Related Issues
Fix #3232, fix #3290
Solution and Design
computed_fieldsto eachtableinexport_metadataandreplace_metadataquery API.buildSchemaCacheWithOptionsfunction, move computed fields related code before permissions.argsinput field of computed fields, generate scalars for input argument fields and add them explicitly to scalar set.Steps to test and verify
export_metadatashould comprise computed fields for a tableLimitations, known bugs & workarounds