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.

Is hasura beta-5 to beta-6 upgrade breaking?

See original GitHub issue

Problem

I’ve tried to update my Heroku’ hasura repo with beta-5 to beta-6 but a lot of inconsistency problem arise. I wanted to try the enum feature but seems i can’t 😞

What I think is the problem

New release brings breaking changes and data is inconsistent with past releases.

What I’ve tried

I’ve upload my my new dockerfile using heroku container:push web && heroku container:release web, all the process ended successfully.

But when I opened my app it crashed. Inspecting the logs says a lot of inconsistencies, like {"definition":{"role":"owner","comment":null,"permission":{"allow_aggregations":false,"columns":["stars","stars_id","target_id"],"filter":{}},"table":"stars"},"reason":"table \"stars\" does not exist","type":"select_permission"}

So it seems like hasura can’t undestand the actual database in Postgres.

The I rolled back downgrading the repo to beta-5 and all is normal.

Proposed solution

Warn users that upgrading when you have a working app to a new release is ⚠️ dangerous 🛑 and must be done by an expert or something in that line, so people don’t find breaking changes in their apps.

Also some testings upgrading a test app would be nice, so hasura team can tell if the release brings breaking changes to working apps with old release.

BTW: Good job with Hasure!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
0x777commented, Aug 30, 2019

@Israel-Laguan Can share your schema and metadata? That’ll help us identify the issue that you are facing. Metadata can be exported from the console settings and schema as follows:

curl -H 'x-hasura-admin-secret: <admin-secret>' -d'{"opts":["-O","-x", "--schema-only", "-N" ,"hdb_catalog", "-N", "hdb_views"], "clean_output":true}' 'https://your-app-domain/v1alpha1/pg_dump'
1reaction
lexi-lambdacommented, Aug 29, 2019

The beta-6 release was not intended to have any backwards-incompatible changes, but it’s possible there’s a bug somewhere. If there is, we don’t know about it, and we haven’t managed to reproduce it, so it would be very helpful if you could share an example that reproduces the issue! It’s likely that the behavior you describe was not intentional, and we can fix it in the next release.

(In general, I would always recommend having a backup of your database when upgrading, but that is just judicious caution—we don’t intend to make breaking changes without being explicit about it.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating to Hasura GraphQL engine v2
This page talks about the conceptual changes introduces in Hasura v2 and things to keep in mind while updating from Hasura v1 to...
Read more >
Announcing Hasura 2.0.0-beta.1
The code is feature frozen and no more features will be added (unless absolutely necessary); All breaking changes are incorporated, documented ...
Read more >
Updating Hasura GraphQL engine
Update guides​ ... The Hasura GraphQL engine runs off a Docker image and updates are as simple as changing the image tag. Based...
Read more >
Migrating from Hasura v1.3 to v2.0
Hasura 2.0 was announced last month with significant changes inside the GraphQL Engine. But we have made sure that user facing APIs didn't ......
Read more >
Announcing Hasura GraphQL Engine 2.0!
x. Over the last 85 releases of Hasura over 2 years, we've endeavoured to never break user facing APIs and this major release...
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