MinMax: Highlight issues with skipping field overrides (#33672)

* MinMax: Highlight issues with skipping field overrides

* check global range

* more selective

* basic test

* moved into getFieldDisplayValues

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Torkel Ödegaard
2021-05-13 10:06:54 +02:00
committed by GitHub
parent 59e8ba6773
commit fffff70d46
8 changed files with 109 additions and 3 deletions

View File

@@ -114,7 +114,12 @@ export class PanelQueryRunner {
fields: frame.fields.map((field, fieldIndex) => ({
...field,
values: data.series[frameIndex].fields[fieldIndex].values,
state: {},
state: {
...field.state,
calcs: undefined,
// add global range calculation here? (not optimal for streaming)
range: undefined,
},
})),
})),
};