graphql-engine/console/src
Vijay Prasanna 3acfd35d4e console/bigquery: fix showing empty dataset name when the dataset is from a non-US region
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
2021-05-25 18:21:48 +00:00
..
components console/bigquery: fix showing empty dataset name when the dataset is from a non-US region 2021-05-25 18:21:48 +00:00
dataSources console/bigquery: fix showing empty dataset name when the dataset is from a non-US region 2021-05-25 18:21:48 +00:00
helpers console: heroku oneclick integration 2021-02-23 09:03:03 +00:00
hooks console: remote schema permissions 2021-01-28 15:59:34 +00:00
metadata console: add new connection params to connect database form 2021-05-25 13:03:08 +00:00
shared/utils console: add session argument input for computed fields (close #5154) 2021-01-28 00:00:20 +00:00
telemetry console: upgrade typescript 2021-03-26 12:14:21 +00:00
theme console: update select font for firefox 2021-03-10 23:03:06 +00:00
utils console: quote column name when updating the column 2021-05-24 10:13:12 +00:00
client.js console: add eslint-plugin-react-hooks (#5219) 2020-07-01 12:22:09 +02:00
config.js fix console lint issues, code formatting (#3028) 2019-10-07 17:51:02 +05:30
constants.ts console: add notifications (#5070) 2020-10-05 14:31:10 +05:30
declaration.d.ts console: update hasura pro content to cloud in header (#5268) 2020-07-08 16:01:31 +05:30
Endpoints.ts console: heroku oneclick integration 2021-02-23 09:03:03 +00:00
Globals.ts console/ci: add unit tests 2021-04-07 13:28:13 +00:00
reducer.ts server: multi source metadata APIs (#217) 2021-01-07 09:05:19 +00:00
routes.js console: package modules from oss 2021-03-17 18:59:18 +00:00
server.js console: add scheduled triggers support (#4732) 2020-06-05 13:40:08 +05:30
types.ts server: multi source metadata APIs (#217) 2021-01-07 09:05:19 +00:00