From 595e9cb10345cf7ce9405a594feee54be9f572d0 Mon Sep 17 00:00:00 2001 From: fabianmenges Date: Wed, 4 Oct 2017 01:20:32 -0400 Subject: [PATCH] [Bugfix]: Explore view does not respect custom timeout. (#3582) --- .../javascripts/explore/components/ExploreViewContainer.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx b/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx index bb96dbc3a3270..f696ed6445e0f 100644 --- a/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx +++ b/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx @@ -24,6 +24,7 @@ const propTypes = { standalone: PropTypes.bool.isRequired, triggerQuery: PropTypes.bool.isRequired, queryRequest: PropTypes.object, + timeout: PropTypes.number, }; class ExploreViewContainer extends React.Component { @@ -90,7 +91,7 @@ class ExploreViewContainer extends React.Component { triggerQueryIfNeeded() { if (this.props.triggerQuery && !this.hasErrors()) { - this.props.actions.runQuery(this.props.form_data); + this.props.actions.runQuery(this.props.form_data, false, this.props.timeout); } } @@ -202,6 +203,7 @@ function mapStateToProps({ explore, chart }) { forcedHeight: explore.forced_height, queryRequest: chart.queryRequest, chartStatus: chart.chartStatus, + timeout: explore.common.conf.SUPERSET_WEBSERVER_TIMEOUT, }; }