Syncing the timeout param from backend (#3329)

* Syncing the timeout param from backend

* Linting
This commit is contained in:
Maxime Beauchemin
2017-08-18 15:49:47 -07:00
committed by GitHub
parent 527572c3eb
commit 2923a125db
8 changed files with 36 additions and 25 deletions

View File

@@ -44,6 +44,7 @@ const propTypes = {
standalone: PropTypes.bool,
datasourceType: PropTypes.string,
datasourceId: PropTypes.number,
timeout: PropTypes.number,
};
class ChartContainer extends React.PureComponent {
@@ -148,7 +149,7 @@ class ChartContainer extends React.PureComponent {
}
runQuery() {
this.props.actions.runQuery(this.props.formData, true);
this.props.actions.runQuery(this.props.formData, true, this.props.timeout);
}
updateChartTitle(newTitle) {
@@ -346,6 +347,7 @@ function mapStateToProps({ explore, chart }) {
chartUpdateStartTime: chart.chartUpdateStartTime,
latestQueryFormData: chart.latestQueryFormData,
queryResponse: chart.queryResponse,
timeout: explore.common.conf.SUPERSET_WEBSERVER_TIMEOUT,
};
}