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
431a5359
Unverified
Commit
431a5359
authored
Sep 09, 2020
by
Torkel Ödegaard
Committed by
GitHub
Sep 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inspect: Fixed missing rows issue in inspect data (#27422)
parent
f9752f0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
27 deletions
+23
-27
public/app/features/dashboard/components/Inspector/InspectDataTab.tsx
+23
-27
No files found.
public/app/features/dashboard/components/Inspector/InspectDataTab.tsx
View file @
431a5359
...
@@ -45,9 +45,9 @@ export class InspectDataTab extends PureComponent<Props, State> {
...
@@ -45,9 +45,9 @@ export class InspectDataTab extends PureComponent<Props, State> {
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
selectedDataFrame
:
DataTransformerID
.
seriesToColumns
,
selectedDataFrame
:
0
,
dataFrameIndex
:
0
,
dataFrameIndex
:
0
,
transformId
:
DataTransformerID
.
seriesToColumns
,
transformId
:
DataTransformerID
.
noop
,
transformationOptions
:
buildTransformationOptions
(),
transformationOptions
:
buildTransformationOptions
(),
};
};
}
}
...
@@ -141,28 +141,28 @@ export class InspectDataTab extends PureComponent<Props, State> {
...
@@ -141,28 +141,28 @@ export class InspectDataTab extends PureComponent<Props, State> {
return
activeString
;
return
activeString
;
}
}
const
parts
:
string
[]
=
[];
if
(
selectedDataFrame
===
DataTransformerID
.
seriesToColumns
)
{
if
(
selectedDataFrame
===
DataTransformerID
.
seriesToColumns
)
{
activeString
=
'series joined by time'
;
parts
.
push
(
'Series joined by time'
)
;
}
else
{
}
else
if
(
data
.
length
>
1
)
{
activeString
=
getFrameDisplayName
(
data
[
selectedDataFrame
as
number
]
);
parts
.
push
(
getFrameDisplayName
(
data
[
selectedDataFrame
as
number
])
);
}
}
if
(
options
.
withTransforms
||
options
.
withFieldConfig
)
{
if
(
options
.
withTransforms
||
options
.
withFieldConfig
)
{
activeString
+=
' - applied '
;
if
(
options
.
withTransforms
)
{
if
(
options
.
withTransforms
)
{
activeString
+=
'panel transformations '
;
parts
.
push
(
'Panel transforms'
)
;
}
}
if
(
options
.
withTransforms
&&
options
.
withFieldConfig
)
{
if
(
options
.
withTransforms
&&
options
.
withFieldConfig
)
{
activeString
+=
'and '
;
}
}
if
(
options
.
withFieldConfig
)
{
if
(
options
.
withFieldConfig
)
{
activeString
+=
'formatted data'
;
parts
.
push
(
'Formatted data'
)
;
}
}
}
}
return
activeString
;
return
parts
.
join
(
', '
)
;
}
}
renderDataOptions
(
dataFrames
:
DataFrame
[])
{
renderDataOptions
(
dataFrames
:
DataFrame
[])
{
...
@@ -197,28 +197,24 @@ export class InspectDataTab extends PureComponent<Props, State> {
...
@@ -197,28 +197,24 @@ export class InspectDataTab extends PureComponent<Props, State> {
return
(
return
(
<
QueryOperationRow
<
QueryOperationRow
id=
"
Table d
ata options"
id=
"
D
ata options"
index=
{
0
}
index=
{
0
}
title=
"
Table d
ata options"
title=
"
D
ata options"
headerElement=
{
<
DetailText
>
{
this
.
getActiveString
()
}
</
DetailText
>
}
headerElement=
{
<
DetailText
>
{
this
.
getActiveString
()
}
</
DetailText
>
}
isOpen=
{
false
}
isOpen=
{
false
}
>
>
<
div
className=
{
styles
.
options
}
>
<
div
className=
{
styles
.
options
}
>
<
VerticalGroup
spacing=
"lg"
>
<
VerticalGroup
spacing=
"none"
>
<
Field
{
data
!
.
length
>
1
&&
(
label=
"Show data frame"
<
Field
label=
"Show data frame"
>
className=
{
css
`
<
Select
margin-bottom: 0;
options=
{
selectableOptions
}
`
}
value=
{
selectedDataFrame
}
disabled=
{
data
!
.
length
<
2
}
onChange=
{
this
.
onDataFrameChange
}
>
width=
{
30
}
<
Select
/>
options=
{
selectableOptions
}
</
Field
>
value=
{
selectedDataFrame
}
)
}
onChange=
{
this
.
onDataFrameChange
}
width=
{
30
}
/>
</
Field
>
<
HorizontalGroup
>
<
HorizontalGroup
>
{
showPanelTransformationsOption
&&
(
{
showPanelTransformationsOption
&&
(
...
...
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