mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TestData: multiple arrow requests should return multiple frames (#28417)
This commit is contained in:
parent
29162a3aed
commit
f32d47a535
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user