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
9c8bd347
Commit
9c8bd347
authored
Dec 04, 2018
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove all query empty related code. root cause of the problem was to fix hasNonEmptyQuery
parent
8b3bb950
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
public/app/features/explore/Explore.tsx
+0
-2
public/app/features/explore/Logs.tsx
+2
-13
No files found.
public/app/features/explore/Explore.tsx
View file @
9c8bd347
...
@@ -840,7 +840,6 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
...
@@ -840,7 +840,6 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
const
tableLoading
=
queryTransactions
.
some
(
qt
=>
qt
.
resultType
===
'Table'
&&
!
qt
.
done
);
const
tableLoading
=
queryTransactions
.
some
(
qt
=>
qt
.
resultType
===
'Table'
&&
!
qt
.
done
);
const
logsLoading
=
queryTransactions
.
some
(
qt
=>
qt
.
resultType
===
'Logs'
&&
!
qt
.
done
);
const
logsLoading
=
queryTransactions
.
some
(
qt
=>
qt
.
resultType
===
'Logs'
&&
!
qt
.
done
);
const
loading
=
queryTransactions
.
some
(
qt
=>
!
qt
.
done
);
const
loading
=
queryTransactions
.
some
(
qt
=>
!
qt
.
done
);
const
queryEmpty
=
queryTransactions
.
some
(
qt
=>
qt
.
resultType
===
'Logs'
&&
qt
.
done
&&
qt
.
result
.
length
===
0
);
return
(
return
(
<
div
className=
{
exploreClass
}
ref=
{
this
.
getRef
}
>
<
div
className=
{
exploreClass
}
ref=
{
this
.
getRef
}
>
...
@@ -973,7 +972,6 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
...
@@ -973,7 +972,6 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
range=
{
range
}
range=
{
range
}
scanning=
{
scanning
}
scanning=
{
scanning
}
scanRange=
{
scanRange
}
scanRange=
{
scanRange
}
queryEmpty=
{
queryEmpty
}
/>
/>
</
Panel
>
</
Panel
>
)
}
)
}
...
...
public/app/features/explore/Logs.tsx
View file @
9c8bd347
...
@@ -140,7 +140,6 @@ interface LogsProps {
...
@@ -140,7 +140,6 @@ interface LogsProps {
range
?:
RawTimeRange
;
range
?:
RawTimeRange
;
scanning
?:
boolean
;
scanning
?:
boolean
;
scanRange
?:
RawTimeRange
;
scanRange
?:
RawTimeRange
;
queryEmpty
:
boolean
;
onChangeTime
?:
(
range
:
RawTimeRange
)
=>
void
;
onChangeTime
?:
(
range
:
RawTimeRange
)
=>
void
;
onClickLabel
?:
(
label
:
string
,
value
:
string
)
=>
void
;
onClickLabel
?:
(
label
:
string
,
value
:
string
)
=>
void
;
onStartScanning
?:
()
=>
void
;
onStartScanning
?:
()
=>
void
;
...
@@ -240,17 +239,7 @@ export default class Logs extends PureComponent<LogsProps, LogsState> {
...
@@ -240,17 +239,7 @@ export default class Logs extends PureComponent<LogsProps, LogsState> {
};
};
render
()
{
render
()
{
const
{
const
{
className
=
''
,
data
,
loading
=
false
,
onClickLabel
,
position
,
range
,
scanning
,
scanRange
}
=
this
.
props
;
className
=
''
,
data
,
loading
=
false
,
onClickLabel
,
position
,
range
,
scanning
,
scanRange
,
queryEmpty
,
}
=
this
.
props
;
const
{
dedup
,
deferLogs
,
hiddenLogLevels
,
renderAll
,
showLocalTime
,
showUtc
}
=
this
.
state
;
const
{
dedup
,
deferLogs
,
hiddenLogLevels
,
renderAll
,
showLocalTime
,
showUtc
}
=
this
.
state
;
let
{
showLabels
}
=
this
.
state
;
let
{
showLabels
}
=
this
.
state
;
const
hasData
=
data
&&
data
.
rows
&&
data
.
rows
.
length
>
0
;
const
hasData
=
data
&&
data
.
rows
&&
data
.
rows
.
length
>
0
;
...
@@ -369,7 +358,7 @@ export default class Logs extends PureComponent<LogsProps, LogsState> {
...
@@ -369,7 +358,7 @@ export default class Logs extends PureComponent<LogsProps, LogsState> {
{
hasData
&&
deferLogs
&&
<
span
>
Rendering
{
dedupedData
.
rows
.
length
}
rows...
</
span
>
}
{
hasData
&&
deferLogs
&&
<
span
>
Rendering
{
dedupedData
.
rows
.
length
}
rows...
</
span
>
}
</
div
>
</
div
>
{
!
loading
&&
{
!
loading
&&
queryEmpty
&&
!
hasData
&&
!
scanning
&&
(
!
scanning
&&
(
<
div
className=
"logs-nodata"
>
<
div
className=
"logs-nodata"
>
No logs found.
No logs found.
...
...
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