console: fix row-level permission restrictions with boolean fields for bigquery

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5322
GitOrigin-RevId: 3609585c4cf735aeb98747a5b701bfaa88cb46ba
This commit is contained in:
Luca Restagno 2022-08-04 13:20:45 +02:00 committed by hasura-bot
parent c0a0a5fe87
commit 1f7eed1bc5
3 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
- server: add metadata API to enable Apollo Federation for a table
- console: add console support for Apollo Federation
- console: add custom names for streaming subscriptions
- console: fix the BigQuery row-level restrictions on boolean columns
## v2.10.0-beta.1
### Introducing Apollo Federation v1 support (experimental)

View File

@ -596,7 +596,7 @@ class PermissionBuilder extends React.Component<PermissionBuilderProps> {
if (
currentTypeMap?.boolean &&
currentTypeMap.boolean.includes(valueType) &&
currentDriver === 'postgres'
(currentDriver === 'postgres' || currentDriver === 'bigquery')
) {
input = renderBoolSelect(dispatchInput, value);
} else if (

View File

@ -24,6 +24,7 @@ const permissionColumnDataTypes = {
],
numeric: [],
dateTime: ['DATETIME', 'TIME', 'TIMESTAMP'],
boolean: ['BOOL'],
user_defined: [],
};