Module: check_mk
Branch: master
Commit: a6ffcd7e2c7d45e5c6bf812a4fb63f03c8d8959f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a6ffcd7e2c7d45…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Fri Apr 13 10:41:38 2018 +0200
Fix topics in ModeEditCustomAttr
Change-Id: If051a65944d3a8369b0d488b429b67de150f3716
---
web/htdocs/wato.py | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 7c044da..a40d298 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -15686,6 +15686,10 @@ class ModeEditCustomAttr(WatoMode):
raise NotImplementedError()
@property
+ def _default_topic(self):
+ raise NotImplementedError()
+
+ @property
def _macro_help(self):
raise NotImplementedError()
@@ -15716,8 +15720,7 @@ class ModeEditCustomAttr(WatoMode):
forms.section(_('Topic'))
html.help(_('The attribute is added to this section in the edit dialog.'))
- # TODO: is deflt set correctly?
- html.dropdown('topic', self._topics, deflt=self._attr.get('topic', 'personal'))
+ html.dropdown('topic', self._topics, deflt=self._attr.get('topic', self._default_topic))
forms.section(_('Help Text') + "<sup>*</sup>")
html.help(_('You might want to add some helpful description for the attribute.'))
@@ -15768,6 +15771,10 @@ class ModeEditCustomUserAttr(ModeEditCustomAttr):
]
@property
+ def _default_topic(self):
+ return 'personal'
+
+ @property
def _macro_help(self):
return _('The attribute can be added to the contact definiton in order to use it for notifications.')
@@ -15808,11 +15815,16 @@ class ModeEditCustomHostAttr(ModeEditCustomAttr):
@property
def _topics(self):
- topics = list(set([ (a[1], a[1]) for a in watolib.all_host_attributes() if a[1] != None ]))
- topics.insert(0, (_("Custom attributes"), _("Custom attributes")))
+ default = self._default_topic
+ topics = list(set((a[1], a[1]) for a in watolib.all_host_attributes() if a[1] not in (None, default)))
+ topics.insert(0, (default, default))
return topics
@property
+ def _default_topic(self):
+ return _("Custom attributes")
+
+ @property
def _macro_help(self):
return _("The attribute can be added to the host definition in order to "
"use it as monitoring macro in different places, for example "
Module: check_mk
Branch: master
Commit: e4e4f3f3f46ddb31ea259e08ada21dd3f56038f8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e4e4f3f3f46ddb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Apr 13 11:57:11 2018 +0200
5835 FIX Improve performance of various event console queries.
Various event console queries took a very long time, e.g. retrieving the
event history of a given host. This could even lead to timeout in the GUI.
This was a regression in 1.4.0 compared to 1.2.8 and has been fixed.
Change-Id: I357ac3df0a082f3dbfed1e9413596cd4b4a82497
---
.werks/5835 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.werks/5835 b/.werks/5835
new file mode 100644
index 0000000..6c04ccd
--- /dev/null
+++ b/.werks/5835
@@ -0,0 +1,13 @@
+Title: Improve performance of various event console queries.
+Level: 1
+Component: ec
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1523613247
+Class: fix
+
+Various event console queries took a very long time, e.g. retrieving the
+event history of a given host. This could even lead to timeout in the GUI.
+
+This was a regression in 1.4.0 compared to 1.2.8 and has been fixed.
Module: check_mk
Branch: master
Commit: 3ec1a2fb3de94bd6538936f1f3301b1d79960098
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3ec1a2fb3de94b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Apr 9 16:37:16 2018 +0200
5962 BI aggregation groups: Group paths can be specified in order to manage aggregations as a virtual tree
Previously aggregation groups were a flat list of strings.
Now you're able to add paths in order to manage these
groups as a virtual tree.
There's also a new sidebar snapin {BI Aggregation Groups Tree}
which displays this tree and a related filter.
Change-Id: I8f486d4c12c87fc5e39207dc4ba5c4fca05b587b
---
.werks/5962 | 15 ++++++
web/htdocs/bi.py | 121 +++++++++++++++++++++++++++-------------------
web/htdocs/valuespec.py | 12 ++++-
web/plugins/sidebar/bi.py | 72 ++++++++++++++++++++++++++-
web/plugins/visuals/bi.py | 109 ++++++++++++++++++++++++++++++++++++++---
web/plugins/wato/bi.py | 88 ++++++++++++++++++++++-----------
6 files changed, 332 insertions(+), 85 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=3ec1a2fb3d…