-
Notifications
You must be signed in to change notification settings - Fork 2.8k
allow altering type of a column whose permissions defined only with session variables (close #2070) #2683
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
allow altering type of a column whose permissions defined only with session variables (close #2070) #2683
Conversation
|
Deploy preview for hasura-docs ready! Built with commit afcdf64 |
|
Review app for commit 6d0de6b deployed to Heroku: https://hge-ci-pull-2683.herokuapp.com |
|
Review app for commit a9600e2 deployed to Heroku: https://hge-ci-pull-2683.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 mostly LGTM, aside from the small issue I mentioned wrt the magic constants.
|
Review app for commit bfbea13 deployed to Heroku: https://hge-ci-pull-2683.herokuapp.com |
|
Review app for commit f974433 deployed to Heroku: https://hge-ci-pull-2683.herokuapp.com |
|
Review app for commit 9c39e9b deployed to Heroku: https://hge-ci-pull-2683.herokuapp.com |
|
Review app for commit afcdf64 deployed to Heroku: https://hge-ci-pull-2683.herokuapp.com |
|
Review app https://hge-ci-pull-2683.herokuapp.com is deleted |
…ession variables (close hasura#2070) (hasura#2683) * allow altering type of a column iff session vars are defined in permissions * use a sum type to define dependency reason * set jwt expiry test's expiry time to 4 seconds * derive Data instance for necessary types to simplify 'hasStaticExp'
Description
Allow altering type of a column even if it is being used in permissions with session variable values.
Affected components
Related Issues
close #2070
Solution and Design
sess_varif its permissions are defined only with session variablesrun_sqlquery flow, if column types are altered andsess_vardependant permissions are found then rebuild those permission infos and update the schema cache.Steps to test and verify
Limitations, known bugs & workarounds