grafana-data: removed DataQueryRequest.reverse (#47487)

This commit is contained in:
Gábor Farkas 2022-04-08 11:00:16 +02:00 committed by GitHub
parent 2cf88cfec8
commit 9574f447bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -481,7 +481,6 @@ export interface DataQueryRequest<TQuery extends DataQuery = DataQuery> {
intervalMs: number;
maxDataPoints?: number;
range: TimeRange;
reverse?: boolean;
scopedVars: ScopedVars;
targets: TQuery[];
timezone: string;

View File

@ -309,8 +309,7 @@ export class LokiDatasource
responseListLength,
maxDataPoints,
this.instanceSettings.jsonData,
(options as DataQueryRequest<LokiQuery>).scopedVars,
(options as DataQueryRequest<LokiQuery>).reverse
(options as DataQueryRequest<LokiQuery>).scopedVars
)
)
);

View File

@ -520,13 +520,12 @@ export function processRangeQueryResponse(
responseListLength: number,
limit: number,
config: LokiOptions,
scopedVars: ScopedVars,
reverse = false
scopedVars: ScopedVars
) {
switch (response.data.resultType) {
case LokiResultType.Stream:
return of({
data: lokiStreamsToDataFrames(response as LokiStreamResponse, target, limit, config, reverse),
data: lokiStreamsToDataFrames(response as LokiStreamResponse, target, limit, config),
key: `${target.refId}_log`,
});