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
544abfd3
Unverified
Commit
544abfd3
authored
Apr 19, 2019
by
Ryan McKinley
Committed by
GitHub
Apr 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TestDataDatasource: add the query refId to each result
parent
80cca9c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
public/app/plugins/datasource/testdata/datasource.ts
+5
-3
No files found.
public/app/plugins/datasource/testdata/datasource.ts
View file @
544abfd3
...
...
@@ -61,12 +61,14 @@ export class TestDataDatasource implements DataSourceApi<TestDataQuery> {
continue
;
}
for
(
const
table
of
results
.
tables
||
[])
{
data
.
push
(
table
as
TableData
);
for
(
const
t
of
results
.
tables
||
[])
{
const
table
=
t
as
TableData
;
table
.
refId
=
query
.
refId
;
data
.
push
(
table
);
}
for
(
const
series
of
results
.
series
||
[])
{
data
.
push
({
target
:
series
.
name
,
datapoints
:
series
.
points
});
data
.
push
({
target
:
series
.
name
,
datapoints
:
series
.
points
,
refId
:
query
.
refId
});
}
}
...
...
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