mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
Fixed missing default mandate on filters
This commit is contained in:
parent
036f6c5501
commit
113c6fc572
@ -5,6 +5,10 @@
|
|||||||
},
|
},
|
||||||
"name": "kibana",
|
"name": "kibana",
|
||||||
"version": "3.0.0pre-milestone5",
|
"version": "3.0.0pre-milestone5",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "http://github.com/elasticsearch/kibana.git"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rjs-build-analysis": "0.0.3",
|
"rjs-build-analysis": "0.0.3",
|
||||||
"grunt": "~0.4.0",
|
"grunt": "~0.4.0",
|
||||||
@ -16,13 +20,13 @@
|
|||||||
"grunt-git-describe": "~2.3.2",
|
"grunt-git-describe": "~2.3.2",
|
||||||
"grunt-contrib-clean": "~0.5.0",
|
"grunt-contrib-clean": "~0.5.0",
|
||||||
"grunt-contrib-cssmin": "~0.6.1",
|
"grunt-contrib-cssmin": "~0.6.1",
|
||||||
"grunt-contrib-uglify": "~0.2.4",
|
|
||||||
"grunt-contrib-jshint": "~0.6.0",
|
"grunt-contrib-jshint": "~0.6.0",
|
||||||
"grunt-string-replace": "~0.2.4",
|
"grunt-string-replace": "~0.2.4",
|
||||||
"grunt-contrib-htmlmin": "~0.1.3",
|
"grunt-contrib-htmlmin": "~0.1.3",
|
||||||
"grunt-contrib-requirejs": "~0.4.1",
|
"grunt-contrib-requirejs": "~0.4.1",
|
||||||
"grunt-angular-templates": "~0.3.12",
|
"grunt-angular-templates": "~0.3.12",
|
||||||
"grunt-contrib-compress": "~0.5.2"
|
"grunt-contrib-compress": "~0.5.2",
|
||||||
|
"grunt-contrib-uglify": "~0.2.4"
|
||||||
},
|
},
|
||||||
"license": "Apache License"
|
"license": "Apache License"
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ if(!_.isUndefined(ARGS.query)) {
|
|||||||
queries = {
|
queries = {
|
||||||
0: {
|
0: {
|
||||||
query: '*',
|
query: '*',
|
||||||
id: 0
|
id: 0,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ dashboard.services.filter = {
|
|||||||
field: ARGS.timefield||"@timestamp",
|
field: ARGS.timefield||"@timestamp",
|
||||||
type: "time",
|
type: "time",
|
||||||
active: true,
|
active: true,
|
||||||
id: 0
|
id: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ids: [0]
|
ids: [0]
|
||||||
|
@ -36,6 +36,10 @@ define([
|
|||||||
self.ids = dashboard.current.services.filter.ids;
|
self.ids = dashboard.current.services.filter.ids;
|
||||||
_f = dashboard.current.services.filter;
|
_f = dashboard.current.services.filter;
|
||||||
|
|
||||||
|
_.each(self.list,function(f) {
|
||||||
|
self.set(f,f.id,true);
|
||||||
|
});
|
||||||
|
|
||||||
// Date filters hold strings now, not dates
|
// Date filters hold strings now, not dates
|
||||||
/*
|
/*
|
||||||
_.each(self.getByType('time',true),function(time) {
|
_.each(self.getByType('time',true),function(time) {
|
||||||
@ -66,7 +70,8 @@ define([
|
|||||||
var _id = nextId();
|
var _id = nextId();
|
||||||
var _filter = {
|
var _filter = {
|
||||||
alias: '',
|
alias: '',
|
||||||
id: _id
|
id: _id,
|
||||||
|
mandate: 'must'
|
||||||
};
|
};
|
||||||
_.defaults(filter,_filter);
|
_.defaults(filter,_filter);
|
||||||
self.list[_id] = filter;
|
self.list[_id] = filter;
|
||||||
|
Loading…
Reference in New Issue
Block a user