Fixed item filtering by types.

This commit is contained in:
Alexander Zobnin
2016-02-01 14:31:20 +03:00
parent fbebb1f04e
commit 5ead2950b8
3 changed files with 27 additions and 33 deletions

View File

@@ -294,11 +294,11 @@ function (angular, _, dateMath, utils, metricFunctions) {
// Get items
if (parts.length === 4) {
//var items = this.queryProcessor.filterItems(template.host, template.app, true);
return this.queryProcessor.filterItems(template.group, template.host, template.app, true)
.then(function(items) {
return _.map(items, formatMetric);
});
return this.queryProcessor.filterItems(template.group, template.host,
template.app, 'all', true)
.then(function(items) {
return _.map(items, formatMetric);
});
}
// Get applications
else if (parts.length === 3) {