mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
TestData: multiple arrow requests should return multiple frames (#28417)
This commit is contained in:
+4
-2
@@ -198,7 +198,9 @@ function runArrowFile(target: TestDataQuery, req: DataQueryRequest<TestDataQuery
|
||||
if (target.stringInput && target.stringInput.length > 10) {
|
||||
try {
|
||||
const table = base64StringToArrowTable(target.stringInput);
|
||||
data = [arrowTableToDataFrame(table)];
|
||||
const frame = arrowTableToDataFrame(table);
|
||||
frame.refId = target.refId;
|
||||
data = [frame];
|
||||
} catch (e) {
|
||||
console.warn('Error reading saved arrow', e);
|
||||
const error = toDataQueryError(e);
|
||||
@@ -206,7 +208,7 @@ function runArrowFile(target: TestDataQuery, req: DataQueryRequest<TestDataQuery
|
||||
return of({ state: LoadingState.Error, error, data });
|
||||
}
|
||||
}
|
||||
return of({ state: LoadingState.Done, data });
|
||||
return of({ state: LoadingState.Done, data, key: req.requestId + target.refId });
|
||||
}
|
||||
|
||||
function runGrafanaAPI(target: TestDataQuery, req: DataQueryRequest<TestDataQuery>): Observable<DataQueryResponse> {
|
||||
|
||||
Reference in New Issue
Block a user