question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[hasura cloud] Inconsistencies when applying metadata after table rename

See original GitHub issue

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 \"<old_table_name>\" 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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maria-nemeticommented, Feb 22, 2021

@codingkarthik The cloud instance is not running on an empty DB, but on an already populated DB with data in table A and event triggers defined.

0reactions
codingkarthikcommented, Mar 1, 2021

Hello @maria-nemeti

Unfortunately, I’m still not able to reproduce this issue. Can you try reproducing this issue on a local instance which is a replica of the cloud instance? I would like to know if the issue is cloud specific.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[hasura cloud] Inconsistencies when applying metadata after ...
[hasura cloud] Inconsistencies when applying metadata after table rename.
Read more >
Problems after attempt to rename a column (or add a new one ...
Tried to rename a column creator -> created_by in table messages Got . ... due to newly found inconsistent metadata", "code": "unexpected" }....
Read more >
Hasura CLI: hasura metadata inconsistency
Manage inconsistent objects in Hasura metadata using the Hasura CLI.
Read more >
Metadata API Reference: Query collections - Hasura
Create/rename/drop query collections and add/drop a query to a collection using the following query types. Supported from. The metadata API is supported for ......
Read more >
Managing Metadata | Hasura GraphQL Docs
We call the Hasura Server configuration the Metadata. All changes made to the Hasura instance via the Console or via the API such...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found