[log] Add dashboard_id param to explore_json request (#9243)

* [log] Add dashboard_id param to explore_json request

* fix cypress test
This commit is contained in:
Grace Guo
2020-03-08 19:51:08 -07:00
committed by GitHub
parent 8cabea5cb8
commit 8bc30da621
15 changed files with 101 additions and 28 deletions

View File

@@ -34,6 +34,8 @@ const propTypes = {
actions: PropTypes.object,
chartId: PropTypes.number.isRequired,
datasource: PropTypes.object.isRequired,
// current chart is included by dashboard
dashboardId: PropTypes.number,
// original selected values for FilterBox viz
// so that FilterBox can pre-populate selected values
// only affect UI control
@@ -71,6 +73,7 @@ const defaultProps = {
initialValues: BLANK,
setControlValue() {},
triggerRender: false,
dashboardId: null,
};
class Chart extends React.PureComponent {
@@ -101,6 +104,7 @@ class Chart extends React.PureComponent {
false,
this.props.timeout,
this.props.chartId,
this.props.dashboardId,
);
} else {
// Create chart with POST request
@@ -109,6 +113,7 @@ class Chart extends React.PureComponent {
false,
this.props.timeout,
this.props.chartId,
this.props.dashboardId,
);
}
}