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
c9eccf99
Commit
c9eccf99
authored
Aug 30, 2013
by
Spencer Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added logic to the micropanel filters in the table panel to handle undefined values better
parent
df91300b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
panels/table/micropanel.html
+2
-2
panels/table/module.js
+3
-0
No files found.
panels/table/micropanel.html
View file @
c9eccf99
<a
class=
"close"
ng-click=
"dismiss()"
href=
""
>
×
</a>
<h4>
Micro Analysis of {{micropanel.field}}
Micro Analysis of {{micropanel.field}}
<i
class=
"pointer icon-search"
ng-click=
"fieldExists(micropanel.field,'must');dismiss();"
></i>
<i
class=
"pointer icon-ban-circle"
ng-click=
"fieldExists(micropanel.field,'mustNot');dismiss();"
></i>
<br><small>
{{micropanel.count}} events in the table set
</small>
...
...
@@ -13,7 +13,7 @@
</thead>
<tbody>
<tr
ng-repeat=
'field in micropanel.values'
>
<td>
{{{true: "__blank__",
false:field[0]}[field[0] == ""
]|tableTruncate:panel.trimFactor:3}}
</td>
<td>
{{{true: "__blank__",
false:field[0] }[field[0] == '' || field[0] == undefined
]|tableTruncate:panel.trimFactor:3}}
</td>
<td
style=
"width:40px"
>
<i
class=
"pointer icon-search"
ng-click=
"build_search(micropanel.field,field[0]);dismiss();"
></i>
<i
class=
"pointer icon-ban-circle"
ng-click=
"build_search(micropanel.field,field[0],true);dismiss();"
></i>
...
...
panels/table/module.js
View file @
c9eccf99
...
...
@@ -127,6 +127,9 @@ angular.module('kibana.table', [])
// This needs to be abstracted somewhere
if
(
_
.
isArray
(
value
))
{
query
=
"("
+
_
.
map
(
value
,
function
(
v
){
return
angular
.
toJson
(
v
);}).
join
(
" AND "
)
+
")"
;
}
else
if
(
_
.
isUndefined
(
value
))
{
query
=
'*'
;
negate
=
!
negate
;
}
else
{
query
=
angular
.
toJson
(
value
);
}
...
...
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