hasura / hasura/graphql-engine
Enum dropdown not showing if they are in a different schema
- 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): v2.12.0
### Environment
docker/self-hosted
### What is the current behaviour?
'locale' table is setup as enum in Schema named 'enum':

Definition of 'locale':

In another Schema 'public', it shows it as text for all tables:


This is the case for all enums.
### What is the expected behaviour?

It should be a drop down instead of a text field.
The issue is because they are not in the same schema.
In above screenshot, it worked correctly because I put the enum in the same schema.
### How to reproduce the issue?
1. define an enum in a new schema
2. foreign key it from a table in another schema
Contributor guide
Research direction
Reproduce the issue in the table editor by defining an enum in one schema and referencing it from a table in another, then compare it with an enum in the same schema. Trace how the editor identifies enum columns across schemas; done means the cross-schema enum is rendered as a dropdown rather than a text field.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, typescript
- Domain
- database, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100