Module: check_mk
Branch: master
Commit: 50c302cbd7fcdf6ca54ff9450a63afd0c0e9c4fd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=50c302cbd7fcdf…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Mar 29 16:45:01 2012 +0200
Do sort all BI views after BI name
---
ChangeLog | 1 +
web/plugins/views/builtin.py | 16 ++++++++--------
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8b36df8..dcc4e03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@
* Avoid duplicate rule incarnations when using FOREACH_*
* BI Boxes: allow closing boxes (not yet persisted)
* New filter for services (not) contained in any aggregate
+ * Configure sorting for all BI views
Checks & Agents:
* FIX: snmp_uptime handles empty snmp information without exception
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index d567fb8..d634985 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -2042,7 +2042,7 @@ multisite_builtin_views.update({
'aggr_output',
'aggr_assumed_state',
'aggr_effective_state'],
- 'sorters': [],
+ 'sorters': [ ('aggr_group', False), ('aggr_name',
False) ],
'title': _('All Aggregations'),
'topic': _('Business Intelligence')},
@@ -2095,7 +2095,7 @@ multisite_builtin_views.update({
'aggr_output',
'aggr_assumed_state',
'aggr_effective_state'],
- 'sorters': [],
+ 'sorters': [ ('aggr_name', False) ],
'title': _('Aggregation group'),
'topic': _('Business Intelligence')},
@@ -2189,7 +2189,7 @@ multisite_builtin_views.update({
'play_sounds': False,
'public': True,
'show_filters': [],
- 'sorters': [],
+ 'sorters': [ ('aggr_name', False) ],
'title': _('Single-Host Aggregations of Host'),
'topic': _('Other')},
@@ -2239,7 +2239,7 @@ multisite_builtin_views.update({
'aggr_output',
'aggr_assumed_state',
'aggr_effective_state'],
- 'sorters': [],
+ 'sorters': [ ('aggr_name', False) ],
'title': _('Aggregations Affected by Host'),
'topic': _('Business Intelligence')},
@@ -2289,7 +2289,7 @@ multisite_builtin_views.update({
'aggr_output',
'aggr_assumed_state',
'aggr_effective_state'],
- 'sorters': [],
+ 'sorters': [ ('aggr_name', False) ],
'title': _('Aggregations Affected by Service'),
'topic': _('Business Intelligence')},
@@ -2342,7 +2342,7 @@ multisite_builtin_views.update({
'aggr_output',
'aggr_assumed_state',
'aggr_effective_state'],
- 'sorters': [],
+ 'sorters': [ ('aggr_group', False), ('aggr_name',
False)],
'title': _('Problem Aggregations'),
'topic': _('Business Intelligence')},
@@ -2409,7 +2409,7 @@ multisite_builtin_views.update({
'hostregex',
'opthostgroup',
'aggr_effective_state'],
- 'sorters': [('site_host', False)],
+ 'sorters': [('aggr_group'), ('site_host',
False)],
'title': 'Single-Host Problems',
'topic': _('Business Intelligence')},
@@ -2530,7 +2530,7 @@ multisite_builtin_views.update({
],
'play_sounds': False,
'public': True,
- 'show_filters': ['aggr_group', 'hostregex' ],
+ 'show_filters': [ 'siteopt', 'hostregex',
'aggr_group' ],
'sorters': [('site', False), ('site_host',
False)],
'title': _('Hostgroup with BI state'),
'topic': _('hidden')},