hasura / hasura/graphql-engine

When deleting inconsistent metadata, do not delete entire permissions.

Open
#8,467 2 comments 2 reactions 0 assignees View on GitHub
k/enhancement team-platform/handover
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.