mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
elasticsearch: improve validation and error message when adding/testing elasticsearch ds, #7836
This commit is contained in:
@@ -280,10 +280,12 @@ function (queryDef) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var size = 500;
|
||||
if(queryDef.size){
|
||||
if (queryDef.size) {
|
||||
size = queryDef.size;
|
||||
}
|
||||
|
||||
query.aggs = {
|
||||
"1": {
|
||||
"terms": {
|
||||
|
||||
Reference in New Issue
Block a user