-
Notifications
You must be signed in to change notification settings - Fork 2.8k
console: provide option to cascade metadata on dependency conflicts (close #1593) #4846
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
console: provide option to cascade metadata on dependency conflicts (close #1593) #4846
Conversation
|
Deploy preview for hasura-docs ready! Built with commit ccb84a7 |
|
Review app for commit d1185f3 deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
|
Review app for commit 55f0fd0 deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
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.
- Can we also add the same logic for the
untrack_tableapi. - In case of table delete if PG throws an error regarding dependent objects, we can have the same prompt regarding dropping dependent objects and on
continuewe can run the drop table command with cascade, ie.drop table <name> cascade;edit: This can be done in a separate PR
|
Review app for commit 21fab93 deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
As discussed, |
rikinsk
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.
UX approved
beerose
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.
@soorajshankar @rikinsk remote schemas relationships are not handled. You can check it out here: https://hge-ci-pull-4846.herokuapp.com/console/ by trying to remove remote schema.
…o chore/cascade-dependency-on-user-confirmation
|
Review app for commit 75aba3a deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
…o chore/cascade-dependency-on-user-confirmation
|
Review app for commit 49cd8b9 deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
|
Review app for commit 852226c deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
|
Review app for commit e9859dd deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
|
Review app for commit 223960b deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
|
Review app for commit ccb84a7 deployed to Heroku: https://hge-ci-pull-4846.herokuapp.com |
|
Review app https://hge-ci-pull-4846.herokuapp.com is deleted |
Improve dependency management experience on the console.
Description
whenever the run_sql query throws an error with dependency-error, the error alert will now have additional option to cascade the continue with the

run_sqlas follows.Changelog
CHANGELOG.mdis updated with user-facing content relevant to this PR.Affected components
Related Issues
close #1593
Solution and Design
dependency_erroruser will get a prompt.Continuebutton click, the user will be able to cascade drop the dependent items as well.Steps to test and verify
Previous Behaviour
The user gets an error message without any actions.
This PR will
Do you want to drop the dependent items as well?.continuebutton, the user can retry the operation withcascade=true.untract_tablefailures due to a dependency error.The cascade implementation in this PR is for metadata cascade only.