Skip to content

Commit ecd2635

Browse files
fix an issue where the Logs panel shows an empty view when infinite scrolling at the bottom (#472)
1 parent 41e98ff commit ecd2635

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## tip
44

55
* BUGFIX: fix an issue where `_msg` was incorrectly parsed to `detected_level` label according to `Log Level rules`. See [#465](https://github.com/VictoriaMetrics/victorialogs-datasource/pull/465).
6+
* BUGFIX: fix an issue where the `Logs panel` shows an empty view when infinite scrolling at the bottom. See [#466](https://github.com/VictoriaMetrics/victorialogs-datasource/pull/466).
67

78
## v0.22.2
89

src/backendResultTransformer.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
2-
DataFrame,
3-
DataFrameType,
2+
DataFrame, DataFrameType,
43
DataQueryError,
54
DataQueryRequest,
65
DataQueryResponse,
@@ -46,7 +45,6 @@ function setFrameMeta(frame: DataFrame, meta: QueryResultMeta): DataFrame {
4645
meta: {
4746
...newMeta,
4847
typeVersion: [0, 1],
49-
type: DataFrameType.TimeSeriesMulti
5048
},
5149
};
5250
}
@@ -135,7 +133,7 @@ function processStreamFrame(
135133
const frameWithLevel = addLevelField(frameWithMeta, logLevelRules);
136134

137135
const derivedFields = getDerivedFields(frameWithLevel, derivedFieldConfigs);
138-
const baseFields = getStreamFields(frameWithLevel.fields, transformLabels)
136+
const baseFields = getStreamFields(frameWithLevel.fields, transformLabels);
139137

140138
return {
141139
...frameWithLevel,
@@ -211,7 +209,7 @@ function getQueryMap(queries: Query[]) {
211209
}
212210

213211
function processMetricRangeFrames(frames: DataFrame[], queries: Query[], startTime: number, endTime: number): DataFrame[] {
214-
const meta: QueryResultMeta = { preferredVisualisationType: 'graph' };
212+
const meta: QueryResultMeta = { preferredVisualisationType: 'graph', type: DataFrameType.TimeSeriesMulti };
215213
const queryMap = getQueryMap(queries);
216214

217215
return frames.map((frame) => {

0 commit comments

Comments
 (0)