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
2d41154b
Commit
2d41154b
authored
Jul 23, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #259 from rashidkpc/master
Fix derivequeries
parents
6203ef6c
ad69ccc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
panels/derivequeries/module.js
+4
-4
No files found.
panels/derivequeries/module.js
View file @
2d41154b
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
'use strict'
;
'use strict'
;
angular
.
module
(
'kibana.derivequeries'
,
[])
angular
.
module
(
'kibana.derivequeries'
,
[])
.
controller
(
'derivequeries'
,
function
(
$scope
,
$rootScope
,
query
,
fields
,
dashboard
,
filterSrv
)
{
.
controller
(
'derivequeries'
,
function
(
$scope
,
$rootScope
,
query
Srv
,
fields
,
dashboard
,
filterSrv
)
{
// Set and populate defaults
// Set and populate defaults
var
_d
=
{
var
_d
=
{
...
@@ -87,15 +87,15 @@ angular.module('kibana.derivequeries', [])
...
@@ -87,15 +87,15 @@ angular.module('kibana.derivequeries', [])
_
.
each
(
results
.
facets
.
query
.
terms
,
function
(
v
)
{
_
.
each
(
results
.
facets
.
query
.
terms
,
function
(
v
)
{
var
_q
=
$scope
.
panel
.
field
+
':"'
+
v
.
term
+
'"'
+
suffix
;
var
_q
=
$scope
.
panel
.
field
+
':"'
+
v
.
term
+
'"'
+
suffix
;
// if it isn't in the list, remove it
// if it isn't in the list, remove it
var
_iq
=
query
.
findQuery
(
_q
);
var
_iq
=
query
Srv
.
findQuery
(
_q
);
if
(
!
_iq
)
{
if
(
!
_iq
)
{
ids
.
push
(
query
.
set
({
query
:
_q
}));
ids
.
push
(
query
Srv
.
set
({
query
:
_q
}));
}
else
{
}
else
{
ids
.
push
(
_iq
.
id
);
ids
.
push
(
_iq
.
id
);
}
}
});
});
_
.
each
(
_
.
difference
(
$scope
.
panel
.
ids
,
ids
),
function
(
id
){
_
.
each
(
_
.
difference
(
$scope
.
panel
.
ids
,
ids
),
function
(
id
){
query
.
remove
(
id
);
query
Srv
.
remove
(
id
);
});
});
$scope
.
panel
.
ids
=
ids
;
$scope
.
panel
.
ids
=
ids
;
dashboard
.
refresh
();
dashboard
.
refresh
();
...
...
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