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
c4d91e25
Unverified
Commit
c4d91e25
authored
Jan 05, 2021
by
Torkel Ödegaard
Committed by
GitHub
Jan 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SeriesToRows: Fixes issue in transform so that value field is always named Value (#30054)
parent
388d0087
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
packages/grafana-data/src/transformations/transformers/seriesToRows.test.ts
+6
-1
packages/grafana-data/src/transformations/transformers/seriesToRows.ts
+1
-1
No files found.
packages/grafana-data/src/transformations/transformers/seriesToRows.test.ts
View file @
c4d91e25
...
...
@@ -134,7 +134,12 @@ describe('Series to rows', () => {
name
:
'A'
,
fields
:
[
{
name
:
'Time'
,
type
:
FieldType
.
time
,
values
:
[
100
,
150
,
200
],
config
:
{
displayName
:
'Random time'
}
},
{
name
:
'Temp'
,
type
:
FieldType
.
number
,
values
:
[
1
,
4
,
5
],
config
:
{
displayName
:
'Temp'
}
},
{
name
:
'Temp'
,
type
:
FieldType
.
number
,
values
:
[
1
,
4
,
5
],
config
:
{
displayName
:
'Temp'
,
displayNameFromDS
:
'dsName'
},
},
],
});
...
...
packages/grafana-data/src/transformations/transformers/seriesToRows.ts
View file @
c4d91e25
...
...
@@ -93,7 +93,7 @@ const copyFieldStructure = (field: Field, name: string): Field => {
name
:
name
,
values
:
new
ArrayVector
(),
config
:
{
...
omit
(
field
.
config
,
'displayName'
),
...
omit
(
field
.
config
,
[
'displayName'
,
'displayNameFromDS'
]
),
},
};
};
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