hasura / hasura/graphql-engine

[hasura cloud] Inconsistencies when applying metadata after table rename

Open
#6,580 7 comments 0 reactions 1 assignee Claimed by @codingkarthik View on GitHub
support/needs-more-info
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Using a local hasura UI, we did rename one of our table - operation resulting in a migration file. That table was used in an event trigger insert, but the trigger was not renamed automatically by hasura, so we did keep the event trigger name.
We tested successfully several times this on our local machines the metadata apply.
But when trying to apply the metadata in hasura cloud, we did get inconsistencies for the event trigger name:

`level=fatal msg="failed to apply metadata: cannot apply metadata on the database: [unexpected] cannot continue due to inconsistent metadata ($.args)\r\n\nreason: table \"\" does not exist type: event_trigger`

After multiple unsuccessful tries to resolve the inconsistencies on hasura cloud, we did rename the trigger and this solved the problem.

We consider this a bug since the event triggers have names that we do assign manually.

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.