Skip to content

Commit

Permalink
[Bugfix]: Explore view does not respect custom timeout. (#3582)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmenges authored and mistercrunch committed Oct 4, 2017
1 parent efc6366 commit a85968e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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,
};
}

Expand Down

0 comments on commit a85968e

Please sign in to comment.