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
ac24a06d
Commit
ac24a06d
authored
Jun 12, 2013
by
Nikolay Bryskin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
derivequeries: combine derived query with original query using brackets
parent
a0350103
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
panels/derivequeries/module.js
+2
-2
No files found.
panels/derivequeries/module.js
View file @
ac24a06d
...
...
@@ -85,9 +85,9 @@ angular.module('kibana.derivequeries', [])
if
(
$scope
.
panel
.
query
===
''
||
$scope
.
panel
.
mode
===
'terms only'
)
{
var
suffix
=
''
;
}
else
if
(
$scope
.
panel
.
mode
===
'AND'
)
{
var
suffix
=
' AND
'
+
$scope
.
panel
.
query
;
var
suffix
=
' AND
('
+
$scope
.
panel
.
query
+
')'
;
}
else
if
(
$scope
.
panel
.
mode
===
'OR'
)
{
var
suffix
=
' OR
'
+
$scope
.
panel
.
query
;
var
suffix
=
' OR
('
+
$scope
.
panel
.
query
+
')'
;
}
_
.
each
(
results
.
facets
.
query
.
terms
,
function
(
v
)
{
data
.
push
(
$scope
.
panel
.
field
+
':"'
+
v
.
term
+
'"'
+
suffix
)
...
...
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