Module: check_mk
Branch: master
Commit: 1f383dcb1e890681636a5db6903a3e052f97d594
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1f383dcb1e8906…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Tue Jul 24 13:19:39 2018 +0200
Remove None module entries to avoid crash in cmk/gui/modules.py
Change-Id: I07730cab181adb4200eb01024bb8289cade9c384
---
cmk/gui/modules.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/cmk/gui/modules.py b/cmk/gui/modules.py
index a0a4a6a..7ba9684 100644
--- a/cmk/gui/modules.py
+++ b/cmk/gui/modules.py
@@ -137,9 +137,12 @@ def load_all_plugins():
def _cmk_gui_top_level_modules():
return [ module for name, module in sys.modules.items()
- if (name.startswith("cmk.gui.") and len(name.split(".")) == 3)
- or (name.startswith("cmk.gui.cee.") and len(name.split(".")) == 4)
- or (name.startswith("cmk.gui.cme.") and len(name.split(".")) == 4) ]
+ # None entries are only an import optimization of cPython and can be removed:
+ # https://www.python.org/dev/peps/pep-0328/#relative-imports-and-indirection-…
+ if module is not None
+ and ((name.startswith("cmk.gui.") and len(name.split(".")) == 3)
+ or (name.startswith("cmk.gui.cee.") and len(name.split(".")) == 4)
+ or (name.startswith("cmk.gui.cme.") and len(name.split(".")) == 4)) ]
Module: check_mk
Branch: master
Commit: f36a62a39606d2b34b9e7602f891e568f42e175f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f36a62a39606d2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 24 11:21:22 2018 +0200
Fixed typo resulting in broken GUI
Change-Id: If6511f9c60b5489df77db0dbd425eda1b25011c9
---
omd/packages/check_mk/skel/etc/check_mk/apache.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/omd/packages/check_mk/skel/etc/check_mk/apache.conf b/omd/packages/check_mk/skel/etc/check_mk/apache.conf
index 3c38b82..ab1c31f 100644
--- a/omd/packages/check_mk/skel/etc/check_mk/apache.conf
+++ b/omd/packages/check_mk/skel/etc/check_mk/apache.conf
@@ -69,7 +69,7 @@ Alias /###SITE###/check_mk ###ROOT###/share/check_mk/web/htdocs
# the version strings. This is done with mod_rewrite.
# e.g. change http://localhost/event/check_mk/js/checkmk-2014.10.22.js to
# e.g. change http://localhost/event/check_mk/js/checkmk.js
- RewriteRule "^(js/|themes/.*?/|)([a-z0-9_]+)-(.+?)\.(js|css)$" "/###SITE###/c heck_mk/$1$2.$4"
+ RewriteRule "^(js/|themes/.*?/|)([a-z0-9_]+)-(.+?)\.(js|css)$" "/###SITE###/check_mk/$1$2.$4"
# Rewrite rules for handling the local-hierarchy. All URI to static
# files are redirected, if those exist in local/. Thus the user
Module: check_mk
Branch: master
Commit: 60114c8cf9c9605871802622a35f943fbce211c5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60114c8cf9c960…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 24 11:15:46 2018 +0200
6362 FIX Preview graphs of "Service Graphs with Timerange Previews" painter can now be overridden
The option "show previews" of the painter "Service Graphs with Timerange Previews" could be
disabled using the painter and display options of a view, but had no effect.
Change-Id: I3ea9f5bb766ad7e542bb6851a411abb88536cfb2
---
.werks/6362 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.werks/6362 b/.werks/6362
new file mode 100644
index 0000000..c714d54
--- /dev/null
+++ b/.werks/6362
@@ -0,0 +1,12 @@
+Title: Preview graphs of "Service Graphs with Timerange Previews" painter can now be overridden
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1532334499
+
+The option "show previews" of the painter "Service Graphs with Timerange Previews" could be
+disabled using the painter and display options of a view, but had no effect.
Module: check_mk
Branch: master
Commit: 18d5f84f4b64cd1eb3ed4acaa6f9857b01b4addb
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18d5f84f4b64cd…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Jul 24 09:34:19 2018 +0200
Reduce duplicated work for pylint.
pylint automatically recurses into packages, so repeating subpackages just
creates additional useless work. In addition, the output was sometimes
confusing because different parallel jobs reported the same warning multiple
times.
This shaves off roughly 1 min of the pylint runs. Still some cleanup to do,
the overlay mechanism and symlinks are highly confusing...
Change-Id: I25609eabcef63410de9db64f5385b2b362f408a6
---
tests/pylint/test_pylint_misc.py | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/tests/pylint/test_pylint_misc.py b/tests/pylint/test_pylint_misc.py
index c06f0e9..41bcd09 100755
--- a/tests/pylint/test_pylint_misc.py
+++ b/tests/pylint/test_pylint_misc.py
@@ -12,25 +12,23 @@ def test_pylint_misc():
modules_or_packages = [
# Check_MK base
"cmk_base",
- "cmk_base/modes",
- "cmk_base/automations",
- "cmk_base/default_config",
- "cmk_base/data_sources",
- "enterprise/cmk_base/cee",
- "enterprise/cmk_base/modes/cee.py",
+ # TODO: Check if this kind of "overlay" really works.
+ # TODO: Why do we have e.g. a symlink cmk_base/cee -> enterprise/cmk_base/cee?
"enterprise/cmk_base/automations/cee.py",
+ "enterprise/cmk_base/cee",
"enterprise/cmk_base/default_config/cee.py",
+ "enterprise/cmk_base/modes/cee.py",
"managed/cmk_base/default_config/cme.py",
# cmk module level
+ # TODO: This checks the whole cmk hierarchy, including things like
+ # cmk.gui.plugins.cron etc. Do we really want that here?
+ # TODO: Funny links there, see above.
"cmk",
- "cmk/ec",
"enterprise/cmk/cee",
- "enterprise/cmk/cee/liveproxy",
# GUI specific
"web/app/index.wsgi",
- "cmk/gui",
"enterprise/cmk/gui/cee",
"managed/cmk/gui/cme",
]