这是indexloc提供的服务,不要输入任何密码
Skip to content

Using permissions with Postgres enum field doesn't show comparing options #3603

@garlou

Description

@garlou

I'm using typeorm to manage my database migrations and when I use typescript enums, typeorm generates a Postgres table like this:
Screenshot 2019-12-30 11 42 23

When I try to setup a permission, the dropdown select is empty:
Screenshot 2019-12-30 11 43 01

Workaround:
Save permission as it is, export hasura metadata and then manually edit the metadata.yaml:
Screenshot 2019-12-30 11 44 32
to
Screenshot 2019-12-30 11 44 50

Then apply the fixed metadata file on server.

Metadata

Metadata

Assignees

Labels

c/consoleRelated to consolee/easycan be wrapped up in a couple of daysk/bugSomething isn't workingp/highcandidate for being included in the upcoming sprints/wipStatus: This issue is a work in progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions