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
9d1906d3
Commit
9d1906d3
authored
Nov 21, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(elasticsearch): fixed issue with disabling (hiding) query, fixes #3300
parent
4a3f50ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
CHANGELOG.md
+1
-0
public/app/plugins/datasource/elasticsearch/datasource.js
+4
-8
No files found.
CHANGELOG.md
View file @
9d1906d3
...
...
@@ -12,6 +12,7 @@
*
**dashboard**
: fix for collapse row by clicking on row title, fixes
[
#3065
](
https://github.com/grafana/grafana/issues/3065
)
*
**influxdb**
: fix for relative time ranges
`last x months`
and
`last x years`
, fixes
[
#3067
](
https://github.com/grafana/grafana/issues/3067
)
*
**graph**
: layout fix for color picker when right side legend was enabled, fixes
[
#3093
](
https://github.com/grafana/grafana/issues/3093
)
*
**elasticsearch**
: disabling elastic query (via eye) caused error, fixes
[
#3300
](
https://github.com/grafana/grafana/issues/3300
)
# 2.5 (2015-10-28)
...
...
public/app/plugins/datasource/elasticsearch/datasource.js
View file @
9d1906d3
...
...
@@ -163,11 +163,10 @@ function (angular, _, moment, kbn, ElasticQueryBuilder, IndexPattern, ElasticRes
var
payload
=
""
;
var
target
;
var
sentTargets
=
[];
var
headerAdded
=
false
;
for
(
var
i
=
0
;
i
<
options
.
targets
.
length
;
i
++
)
{
target
=
options
.
targets
[
i
];
if
(
target
.
hide
)
{
return
;}
if
(
target
.
hide
)
{
continue
;}
var
queryObj
=
this
.
queryBuilder
.
build
(
target
);
var
esQuery
=
angular
.
toJson
(
queryObj
);
...
...
@@ -176,12 +175,9 @@ function (angular, _, moment, kbn, ElasticQueryBuilder, IndexPattern, ElasticRes
luceneQuery
=
luceneQuery
.
substr
(
1
,
luceneQuery
.
length
-
2
);
esQuery
=
esQuery
.
replace
(
"$lucene_query"
,
luceneQuery
);
if
(
!
headerAdded
)
{
var
searchType
=
queryObj
.
size
===
0
?
'count'
:
'query_then_fetch'
;
var
header
=
this
.
getQueryHeader
(
searchType
,
options
.
range
.
from
,
options
.
range
.
to
);
payload
+=
header
+
'
\
n'
;
headerAdded
=
true
;
}
var
searchType
=
queryObj
.
size
===
0
?
'count'
:
'query_then_fetch'
;
var
header
=
this
.
getQueryHeader
(
searchType
,
options
.
range
.
from
,
options
.
range
.
to
);
payload
+=
header
+
'
\
n'
;
payload
+=
esQuery
+
'
\
n'
;
sentTargets
.
push
(
target
);
...
...
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