chore(explore): Get Explore data from endpoint instead of bootstrap_data (#20519)

* feat(explore): Use v1/explore endpoint data instead of bootstrapData

* Add tests

* Fix ci

* Remove redundant dependency

* Use form_data_key in cypress tests

* Add auth headers to for data request

* Address comments

* Remove displaying danger toast

* Conditionally add auth headers

* Address comments

* Fix typing bug

* fix

* Fix opening dataset

* Fix sqllab chart create

* Run queries in parallel

* Fix dashboard id autofill

* Fix lint

* Fix test
This commit is contained in:
Kamil Gabryjelski
2022-06-30 21:06:51 +02:00
committed by GitHub
parent f2af81b1c7
commit b30f6a5db1
55 changed files with 845 additions and 327 deletions

View File

@@ -237,7 +237,7 @@ class DatasourceControl extends React.PureComponent {
const isSqlSupported = datasource.type === 'table';
const { user } = this.props;
const allowEdit = datasource.owners
.map(o => o.id || o.value)
?.map(o => o.id || o.value)
.includes(user.userId);
isUserAdmin(user);