hasura / hasura/graphql-engine

Hasura Console Fails to Produce Migration Files

Open
#9,168 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

k/bug t/native-dbs
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Version Information

Server Version:
CLI Version (for CLI related issue): version=v2.14.0-cloud.1

What is the current behaviour?

Sometimes when running sql commands with "This is a migration" checkbox console fails to produce the migration files.

What is the expected behaviour?

Create the the migration files properly.

How to reproduce the issue?
  1. I have seen this a lot immediately after updating the CLI
Any possible solutions/workarounds you're aware of?

When I restart the console it usually resolves itself.
Revert any change, restart the console, and reapply the changes.

However, sometimes you can't revert the changes for example adding enum values so I have to resort to dropping the entire enum and readding it which is cumbersome.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure in Hasura Console after updating CLI version v2.14.0-cloud.1, using SQL commands with the "This is a migration" checkbox and checking whether migration files are produced. Compare behavior after restarting the console, including changes such as adding enum values; done means the migration files are consistently created without requiring a restart or destructive workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, typescript
Domain
database, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.