mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
3acfd35d4e
Fixes [issue](https://github.com/hasura/graphql-engine/issues/6937) ### Description The problem lies with the `schemaListSql` for Big Query. Without a region qualifier prefixed, the SQL result contains datasets only US regions, as described in the [docs](https://cloud.google.com/bigquery/docs/information-schema-datasets). ``` If you do not specify a regional qualifier, metadata is retrieved from the us multi-region. ``` The alternative way is to get a list of all available publicly available regions (which is `us` and `europe` atm), for example for europe - ``` SELECT * FROM region-europe.INFORMATION_SCHEMA.SCHEMATA; ``` and then perform `UNION ALL` of the results. This is approached is ditched in favour of the reason that Big Query is read-only on Hasura and new datasets cannot be added from the console (other than by modifying the metadata), we can return the datasets available in the Big Query source's metadata as the possible values of datasets needed by the console to render the data nav tree, thereby avoiding an extra API call in the process. GitOrigin-RevId: 8117d5698dcc4e7d932362b7cf2e7c8ef34d106a |
||
---|---|---|
.. | ||
components | ||
dataSources | ||
helpers | ||
hooks | ||
metadata | ||
shared/utils | ||
telemetry | ||
theme | ||
utils | ||
client.js | ||
config.js | ||
constants.ts | ||
declaration.d.ts | ||
Endpoints.ts | ||
Globals.ts | ||
reducer.ts | ||
routes.js | ||
server.js | ||
types.ts |