Explore/Loki: Fix field type in table for instant queries (#25907)

* Update field type for instant queries to number

* Remove fieldtype as in prometheus

* Revert "Remove fieldtype as in prometheus"

This reverts commit f887ad1125.
This commit is contained in:
Ivana Huckova
2020-06-30 09:25:19 +02:00
committed by GitHub
parent 69f9b6f945
commit 02cd1a441f

View File

@@ -207,7 +207,7 @@ export function lokiResultsToTableModel(
table.columns = [
{ text: 'Time', type: FieldType.time },
...sortedLabels.map(label => ({ text: label, filterable: true })),
{ text: resultCount > 1 || valueWithRefId ? `Value #${refId}` : 'Value', type: FieldType.time },
{ text: resultCount > 1 || valueWithRefId ? `Value #${refId}` : 'Value', type: FieldType.number },
];
// Populate rows, set value to empty string when label not present.