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

When deleting inconsistent metadata, do not delete entire permissions.

Open BenoitRanque opened this issue 2 years ago • 2 comments

Is your proposal related to a problem?

When making certain changes to a table, hasura may throw an error due to the change rendering existing metadata inconsistent. Hasura will then propose to delete the inconsistent metadata.

As a user, if I am deleting or renaming a column, and this happens, I would expect to only delete the reference to the column.

But hasura deletes the entire permission.

Describe the solution you'd like

When renaming a column, rename references to it in metadata. When deleting a column, delete references to it in metadata, without deleting entire permissions.

BenoitRanque avatar May 06 '22 04:05 BenoitRanque

I confirm this (extremely annoying) issue!!!

jflambert avatar May 11 '22 16:05 jflambert

Related: https://github.com/hasura/graphql-engine/issues/8414

tirumaraiselvan avatar Jul 14 '22 09:07 tirumaraiselvan