feat: bypass cache on screenshots for alerts (#17695)

* feat: bypass cache on screenshots for alerts

* Update existing tests

* Add backend test

* Add frontend test
This commit is contained in:
Beto Dealmeida
2021-12-22 08:26:38 -08:00
committed by GitHub
parent 9840fbf49b
commit b7707e8ff7
11 changed files with 111 additions and 24 deletions

View File

@@ -52,6 +52,7 @@ const propTypes = {
form_data: PropTypes.object,
ownState: PropTypes.object,
standalone: PropTypes.number,
force: PropTypes.bool,
timeout: PropTypes.number,
refreshOverlayVisible: PropTypes.bool,
chart: chartPropShape,
@@ -131,7 +132,7 @@ const ExploreChartPanel = props => {
if (slice && slice.query_context === null) {
const queryContext = buildV1ChartDataPayload({
formData: slice.form_data,
force: false,
force: props.force,
resultFormat: 'json',
resultType: 'full',
setDataMask: null,
@@ -227,6 +228,7 @@ const ExploreChartPanel = props => {
chartId={chart.id}
chartStatus={chart.chartStatus}
triggerRender={props.triggerRender}
force={props.force}
datasource={props.datasource}
errorMessage={props.errorMessage}
formData={props.form_data}