mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
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:
committed by
GitHub
parent
f2af81b1c7
commit
b30f6a5db1
@@ -694,17 +694,9 @@ function ExploreViewContainer(props) {
|
||||
ExploreViewContainer.propTypes = propTypes;
|
||||
|
||||
function mapStateToProps(state) {
|
||||
const {
|
||||
explore,
|
||||
charts,
|
||||
common,
|
||||
impressionId,
|
||||
dataMask,
|
||||
reports,
|
||||
datasources,
|
||||
user,
|
||||
} = state;
|
||||
const { controls, slice } = explore;
|
||||
const { explore, charts, common, impressionId, dataMask, reports, user } =
|
||||
state;
|
||||
const { controls, slice, datasource } = explore;
|
||||
const form_data = getFormDataFromControls(controls);
|
||||
const slice_id = form_data.slice_id ?? slice?.slice_id ?? 0; // 0 - unsaved chart
|
||||
form_data.extra_form_data = mergeExtraFormData(
|
||||
@@ -720,8 +712,6 @@ function mapStateToProps(state) {
|
||||
dashboardId = undefined;
|
||||
}
|
||||
|
||||
const datasource = datasources[form_data.datasource];
|
||||
|
||||
return {
|
||||
isDatasourceMetaLoading: explore.isDatasourceMetaLoading,
|
||||
datasource,
|
||||
|
||||
Reference in New Issue
Block a user