|
@@ -361,7 +361,6 @@ angular.module('kibana.services', [])
|
|
|
.to(filter.to)
|
|
.to(filter.to)
|
|
|
break;
|
|
break;
|
|
|
case 'querystring':
|
|
case 'querystring':
|
|
|
- console.log(filter.query)
|
|
|
|
|
return ejs.QueryFilter(ejs.QueryStringQuery(filter.query))
|
|
return ejs.QueryFilter(ejs.QueryStringQuery(filter.query))
|
|
|
break;
|
|
break;
|
|
|
case 'terms':
|
|
case 'terms':
|
|
@@ -499,7 +498,7 @@ angular.module('kibana.services', [])
|
|
|
self.dash_load(dashboard)
|
|
self.dash_load(dashboard)
|
|
|
// No? Ok, grab default.json, its all we have now
|
|
// No? Ok, grab default.json, its all we have now
|
|
|
} else {
|
|
} else {
|
|
|
- self.file_load('default')
|
|
|
|
|
|
|
+ self.file_load('default.json')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -524,6 +523,7 @@ angular.module('kibana.services', [])
|
|
|
// This is not optimal, we should be getting the entire index list here, or at least every
|
|
// This is not optimal, we should be getting the entire index list here, or at least every
|
|
|
// index that possibly matches the pattern
|
|
// index that possibly matches the pattern
|
|
|
self.indices = [self.current.index.default]
|
|
self.indices = [self.current.index.default]
|
|
|
|
|
+ $rootScope.$broadcast('refresh')
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
self.indices = [self.current.index.pattern]
|
|
self.indices = [self.current.index.pattern]
|
|
@@ -700,6 +700,7 @@ angular.module('kibana.services', [])
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.dash_load = function(dashboard) {
|
|
this.dash_load = function(dashboard) {
|
|
|
|
|
+ timer.cancel_all();
|
|
|
|
|
|
|
|
if(dashboard.index.interval === 'none') {
|
|
if(dashboard.index.interval === 'none') {
|
|
|
self.indices = [dashboard.index.pattern]
|
|
self.indices = [dashboard.index.pattern]
|
|
@@ -707,8 +708,6 @@ angular.module('kibana.services', [])
|
|
|
|
|
|
|
|
self.current = dashboard;
|
|
self.current = dashboard;
|
|
|
|
|
|
|
|
- timer.cancel_all();
|
|
|
|
|
-
|
|
|
|
|
// Ok, now that we've setup the current dashboard, we can inject our services
|
|
// Ok, now that we've setup the current dashboard, we can inject our services
|
|
|
query = $injector.get('query');
|
|
query = $injector.get('query');
|
|
|
filterSrv = $injector.get('filterSrv')
|
|
filterSrv = $injector.get('filterSrv')
|