graphql-engine
graphql-engine copied to clipboard
Cannot remove datasource with dependencies
Version Information
Server Version: 2.8.3
Environment
OSS
What is the current behaviour?
Hasura is unable to remove datasources if dependencies to it exist, despite being offered as an option.
What is the expected behaviour?
The "Continue" button should work and cascade to remote relationships.
How to reproduce the issue?
- Track two databases (A and B)
- Create a remote relationship from B to A
- Try to remove database A
- Hasura will fail, and offer to "Drop the dependent objects"
- Clicking "Continue" fails again
Screenshots or Screencast


This is still a problem in 2.11.2
This time trying to remove a database which has permissions granted to inherited roles

Still a problem in 2.15.1
@jflambert Thanks. I was able to reproduce this on my end as well. We'll look into this asap
@jflambert this should be fixed now in https://github.com/hasura/graphql-engine/commit/3af0d49dd7cc8eaf2bc2337e32d4fcce449de699 and will be available in the next release.