hasura / hasura/graphql-engine

adding a column to an enum table puts the metadata into inconsistent state

Open
#7,193 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Repro:
1. Create an enum table with `id` and `description`.
2. Try adding a new column to it.

The console says: `Adding column failed due to inconsistent metadata`. However, the column does get added but console forever shows the following error on the table page.

![Screenshot from 2021-07-06 17-14-57](https://user-images.githubusercontent.com/27274869/124594726-c4dc9200-de7d-11eb-8bf6-d7aea22ec17f.png)

Not sure if it's the intentional behaviour, but I felt like actions on console shouldn't create any inconsistent metadata.

Contributor guide

Open the contributing guide

Research direction

Reproduce the console workflow by creating an enum table with id and description, then adding a column. Trace the enum-table column-addition and metadata handling entry points; done means the column is added without the inconsistent-metadata error and the table page remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, typescript
Domain
database, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.