hasura / hasura/graphql-engine

Pretty Print Migrations For Readability

Open
#7,997 0 comments 0 reactions 0 assignees View on GitHub
c/console estimate/M k/enhancement p/longterm
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?

We use Hasura Console to make table additions / modifications to Postgres which generates the appropriate migrations and configurations, which are then reviewed in Github and applied to staging and then production.

As with all PR best practices, we require a PR review and approval from a colleague before it can be accepted. Unfortunately, the migrations generated by Hasura can be really hard to read. Some of our engineers will then clean things up by hand to make it easier for a review.

Related To: #2635

![Screen Shot 2022-01-05 at 12 38 50 PM](https://user-images.githubusercontent.com/134368/148263612-0ca285f0-355f-4c8f-b5d0-5091f83d88e9.png)

### Describe the solution you'd like

Generate a pretty printed migration files for changes made in Hasura console.

### Describe alternatives you've considered

Manually cleaning up in `vim` after Hasura does the hard work.

### If the feature is approved, would you be willing to submit a PR?

Maybe if I have time. Would love to contribute to this lovely project.

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.