mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
grafana-data: removed DataQueryRequest.reverse (#47487)
This commit is contained in:
parent
2cf88cfec8
commit
9574f447bb
@ -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;
|
||||
|
@ -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
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -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`,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user