Module: check_mk
Branch: master
Commit: 2be1976ee6714ca74a77ab93d99afc6407fd2e26
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2be1976ee6714c…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Jan 21 12:31:44 2014 +0100
New time range filter for Downtimes and Comments
---
.werks/123 | 8 ++++++++
ChangeLog | 1 +
web/plugins/views/filters.py | 3 ++-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/123 b/.werks/123
new file mode 100644
index 0000000..d0dc3dc
--- /dev/null
+++ b/.werks/123
@@ -0,0 +1,8 @@
+Title: New time range filter for Downtimes and Comments
+Level: 1
+Component: multisite
+Version: 1.2.5i1
+Date: 1390303340
+Class: feature
+
+With the two new filters it is possible to filter list of comments or the list of
downtimes for a special time range
diff --git a/ChangeLog b/ChangeLog
index 1c1ce3a..9ea09f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -131,6 +131,7 @@
* 0430 It is now possible to define custom time ranges in PNP graph search...
* 0449 Show all custom variables of hosts and services in the detail views...
* 0665 Added mail notificaton method to custom user notification dialog...
+ * 0123 New time range filter for Downtimes and Comments...
* 0302 FIX: Fixed highlight of choosen elements in foldertee/views snapin in
Chrome/IE
* 0239 FIX: Fixed incorrect html formatting when displaying host or service
comments...
* 0307 FIX: Increased performance of multisite GUI with a large userbase...
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index 36663ee..5e00808 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -606,7 +606,8 @@ declare_filter(251, FilterTime("service",
"svc_last_check", _("Last service chec
declare_filter(250, FilterTime("host", "host_last_state_change",
_("Last host state change"), "host_last_state_change"))
declare_filter(251, FilterTime("host", "host_last_check",
_("Last host check"), "host_last_check"))
-
+declare_filter(253, FilterTime("comment", "comment_entry_time",
_("Time of comment"), "comment_entry_time" ))
+declare_filter(253, FilterTime("downtime", "downtime_entry_time",
_("Time of Downtime"), "downtime_entry_time" ))
# _
# | | ___ __ _
# | | / _ \ / _` |