Explore: Fix context view in logs, where some rows may have been filtered out. (#21729)

* Fix timestamp formats and use uid to filter context rows

* Remove timestamps from tests
This commit is contained in:
Andrej Ocenas
2020-01-26 23:13:56 +01:00
committed by GitHub
parent ed140346a7
commit 0fda3c4f44
16 changed files with 172 additions and 121 deletions

View File

@@ -328,14 +328,13 @@ export function logSeriesToLogsModel(logSeries: DataFrame[]): LogsModel | undefi
timeFromNow: time.fromNow(),
timeEpochMs: time.valueOf(),
timeLocal: time.format(logTimeFormat),
timeUtc: toUtc(ts).format(logTimeFormat),
timeUtc: toUtc(time.valueOf()).format(logTimeFormat),
uniqueLabels,
hasAnsi,
searchWords,
entry: hasAnsi ? ansicolor.strip(message) : message,
raw: message,
labels: stringField.labels,
timestamp: ts,
uid: idField ? idField.values.get(j) : j.toString(),
});
}