Module: check_mk
Branch: master
Commit: c5828cab01a2ed936bf6e28eff3bf4e78695c367
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5828cab01a2ed…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Oct 17 09:25:18 2016 +0200
3959 Two new filters for the comment view: author and comment text field
---
.werks/3959 | 9 +++++++++
ChangeLog | 3 ++-
web/plugins/visuals/filters.py | 4 ++++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/3959 b/.werks/3959
new file mode 100644
index 0000000..898039c
--- /dev/null
+++ b/.werks/3959
@@ -0,0 +1,9 @@
+Title: Two new filters for the comment view: author and comment text field
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i2
+Date: 1476689081
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index c122b16..092eee0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,10 +22,11 @@
* 3649 FIX: Added a workaround for an escaping-related bug in old bash versions...
* 3958 FIX: netapp_qtree_quota: fixed graph scaling
* 3823 FIX: The windows agent were unable to execute powershell, python and pearl
scripts
- * 3824 FIX: netapp_api_snapvault: fixed duplicate service when item name contains a $
character...
* 3937 FIX: check_mk_agent.aix: fixed hadling of mailq command
+ * 3824 FIX: netapp_api_snapvault: fixed duplicate service when item name contains a $
character...
Multisite:
+ * 3959 Two new filters for the comment view: author and comment text field
* 3897 FIX: Fixed possible exception in raw edition when rendering graphs
* 3898 FIX: Unmonitored services: Fixed possible bug in case discovery service
produces unexpected output
* 3902 FIX: Graph search view: Changing painter options made page empty
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index 872ddff..abedb8c 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -837,6 +837,10 @@ 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(258, FilterText("comment_comment", _("Comment"),
"comment", "comment_comment", "comment_comment",
"~~" , True))
+declare_filter(259, FilterText("comment_author", _("Author comment"),
"comment", "comment_author", "comment_author",
"~~" , True))
+
declare_filter(253, FilterTime("downtime", "downtime_entry_time",
_("Time when downtime was created"), "downtime_entry_time" ))
declare_filter(254, FilterText("downtime_comment", _("Downtime
comment"), "downtime", "downtime_comment",
"downtime_comment", "~"))
declare_filter(255, FilterTime("downtime", "downtime_start_time",
_("Start of downtime"), "downtime_start_time" ))