Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
f32d47a5
Unverified
Commit
f32d47a5
authored
Oct 21, 2020
by
Ryan McKinley
Committed by
GitHub
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TestData: multiple arrow requests should return multiple frames (#28417)
parent
29162a3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
public/app/plugins/datasource/testdata/datasource.ts
+4
-2
No files found.
public/app/plugins/datasource/testdata/datasource.ts
View file @
f32d47a5
...
...
@@ -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
>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment