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; intervalMs: number;
maxDataPoints?: number; maxDataPoints?: number;
range: TimeRange; range: TimeRange;
reverse?: boolean;
scopedVars: ScopedVars; scopedVars: ScopedVars;
targets: TQuery[]; targets: TQuery[];
timezone: string; timezone: string;

View File

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

View File

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