mirror of https://github.com/grafana/grafana
Explore: Remove not running query for collapsed elements (#27026)
* Make graph and table collapsing just a UI thing * Remove showingGraph and showingTable, set them defaultly to true * Remove collaapsing for panels in Explore * UI toggle WiP * WIP, add query type * Refactor, clean up * Update tests * Clean uo * Update rangeAll to range and instant * Remove console logs * Update packages/grafana-data/src/types/datasource.ts Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com> * Update public/app/core/utils/explore.ts Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com> * Fix prettier error Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>pull/27711/head
parent
32deddbf0b
commit
f6c91d1318
@ -1,62 +1,68 @@ |
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||||
|
|
||||||
exports[`PromExploreQueryEditor should render component 1`] = ` |
exports[`PromExploreQueryEditor should render component 1`] = ` |
||||||
<PromQueryField |
<Fragment> |
||||||
ExtraFieldElement={ |
<PromQueryField |
||||||
<PromExploreExtraField |
ExtraFieldElement={ |
||||||
hasTooltip={true} |
<PromExploreExtraField |
||||||
label="Step" |
hasTooltip={true} |
||||||
onChangeFunc={[Function]} |
label="Step" |
||||||
onKeyDownFunc={[Function]} |
onChangeFunc={[Function]} |
||||||
tooltipContent="Time units can be used here, for example: 5s, 1m, 3h, 1d, 1y (Default if no unit is specified: s)" |
onKeyDownFunc={[Function]} |
||||||
value="1s" |
tooltipContent="Time units can be used here, for example: 5s, 1m, 3h, 1d, 1y (Default if no unit is specified: s)" |
||||||
/> |
value="1s" |
||||||
} |
/> |
||||||
data={ |
} |
||||||
Object { |
data={ |
||||||
"request": Object { |
Object { |
||||||
"app": "Grafana", |
"request": Object { |
||||||
"dashboardId": 1, |
"app": "Grafana", |
||||||
"interval": "1s", |
"dashboardId": 1, |
||||||
"intervalMs": 1000, |
"interval": "1s", |
||||||
"panelId": 1, |
"intervalMs": 1000, |
||||||
"range": Object { |
"panelId": 1, |
||||||
"from": "2020-01-01T00:00:00.000Z", |
"range": Object { |
||||||
"raw": Object { |
|
||||||
"from": "2020-01-01T00:00:00.000Z", |
"from": "2020-01-01T00:00:00.000Z", |
||||||
|
"raw": Object { |
||||||
|
"from": "2020-01-01T00:00:00.000Z", |
||||||
|
"to": "2020-01-02T00:00:00.000Z", |
||||||
|
}, |
||||||
"to": "2020-01-02T00:00:00.000Z", |
"to": "2020-01-02T00:00:00.000Z", |
||||||
}, |
}, |
||||||
"to": "2020-01-02T00:00:00.000Z", |
"requestId": "1", |
||||||
|
"scopedVars": Object {}, |
||||||
|
"startTime": 0, |
||||||
|
"targets": Array [], |
||||||
|
"timezone": "GMT", |
||||||
}, |
}, |
||||||
"requestId": "1", |
"series": Array [], |
||||||
"scopedVars": Object {}, |
"state": "NotStarted", |
||||||
"startTime": 0, |
"timeRange": Object { |
||||||
"targets": Array [], |
|
||||||
"timezone": "GMT", |
|
||||||
}, |
|
||||||
"series": Array [], |
|
||||||
"state": "NotStarted", |
|
||||||
"timeRange": Object { |
|
||||||
"from": "2020-01-01T00:00:00.000Z", |
|
||||||
"raw": Object { |
|
||||||
"from": "2020-01-01T00:00:00.000Z", |
"from": "2020-01-01T00:00:00.000Z", |
||||||
|
"raw": Object { |
||||||
|
"from": "2020-01-01T00:00:00.000Z", |
||||||
|
"to": "2020-01-02T00:00:00.000Z", |
||||||
|
}, |
||||||
"to": "2020-01-02T00:00:00.000Z", |
"to": "2020-01-02T00:00:00.000Z", |
||||||
}, |
}, |
||||||
"to": "2020-01-02T00:00:00.000Z", |
} |
||||||
}, |
|
||||||
} |
} |
||||||
} |
datasource={Object {}} |
||||||
datasource={Object {}} |
history={Array []} |
||||||
history={Array []} |
onBlur={[Function]} |
||||||
onBlur={[Function]} |
onChange={[MockFunction]} |
||||||
onChange={[MockFunction]} |
onRunQuery={[MockFunction]} |
||||||
onRunQuery={[MockFunction]} |
query={ |
||||||
query={ |
Object { |
||||||
Object { |
"expr": "", |
||||||
"expr": "", |
"interval": "1s", |
||||||
"interval": "1s", |
"refId": "A", |
||||||
"refId": "A", |
} |
||||||
} |
} |
||||||
} |
/> |
||||||
/> |
<PromExploreRadioButton |
||||||
|
onQueryTypeChange={[Function]} |
||||||
|
selected="range" |
||||||
|
/> |
||||||
|
</Fragment> |
||||||
`; |
`; |
||||||
|
Loading…
Reference in new issue