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

support _is_null operator for jsonb fields in permission builder #3777

@nik-paushkin

Description

@nik-paushkin

Version

1.0.0

What I try to do

Put null in permission check of jsonb field named message

image

What I get

App crashes with an error below

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at p (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.0/main.js.gz:1:388881)
    at n (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.0/main.js.gz:1:388554)
    at https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.0/main.js.gz:1:389022
    at Array.forEach (<anonymous>)
    at p (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.0/main.js.gz:1:388889)
    at n (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.0/main.js.gz:1:388554)
    at https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.0/main.js.gz:1:389022
    at Array.forEach (<anonymous>)
    at p (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.0/main.js.gz:1:388889)

What I excpect

  1. No app crash
  2. Ability to add filter by null value of field, not only by json object

Metadata

Metadata

Assignees

Labels

c/consoleRelated to consolee/quickfixcan be wrapped up in few hoursk/bugSomething isn't workingp/urgentImmediate action required

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions