graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

Cannot remove datasource with dependencies

Open jflambert opened this issue 3 years ago • 1 comments

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?

  1. Track two databases (A and B)
  2. Create a remote relationship from B to A
  3. Try to remove database A
  4. Hasura will fail, and offer to "Drop the dependent objects"
  5. Clicking "Continue" fails again

Screenshots or Screencast

image

image

jflambert avatar Jul 04 '22 02:07 jflambert

This is still a problem in 2.11.2

This time trying to remove a database which has permissions granted to inherited roles

image

jflambert avatar Oct 18 '22 14:10 jflambert

Still a problem in 2.15.1

jflambert avatar Nov 29 '22 13:11 jflambert

@jflambert Thanks. I was able to reproduce this on my end as well. We'll look into this asap

vijayprasanna13 avatar Jun 22 '23 08:06 vijayprasanna13

@jflambert this should be fixed now in https://github.com/hasura/graphql-engine/commit/3af0d49dd7cc8eaf2bc2337e32d4fcce449de699 and will be available in the next release.

vijayprasanna13 avatar Jun 23 '23 07:06 vijayprasanna13