Module: check_mk
Branch: master
Commit: 2c91b96c1dc296c801c6237f9c12c2e08244a70d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2c91b96c1dc296…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 23 08:06:12 2018 +0200
6359 FIX View "Export as PDF" results in empty PDFs
When showing a view that includes a graph and clicking on one of the
small graph preview images (the ones for choosing another time range)
and then using "Export as PDF" after that, this resulted in an empty
PDF.
Change-Id: I811af79fdf91ac104136080609a85939fcb6f161
---
.werks/6359 | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.werks/6359 b/.werks/6359
new file mode 100644
index 0000000..7e95773
--- /dev/null
+++ b/.werks/6359
@@ -0,0 +1,14 @@
+Title: View "Export as PDF" results in empty PDFs
+Level: 1
+Component: reporting
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1532183686
+
+When showing a view that includes a graph and clicking on one of the
+small graph preview images (the ones for choosing another time range)
+and then using "Export as PDF" after that, this resulted in an empty
+PDF.
Module: check_mk
Branch: master
Commit: ab284dc878aa4991cc3f9e2a5136a1969c2b0bc2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ab284dc878aa49…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 20 17:33:51 2018 +0200
6356 New standard theme for Check_MK GUI
The Check_MK GUI is now shipped with a new standard theme. This theme is
enabled by default for all sites created with 1.5.0b9 or newer. Updated sites
keep the classic theme by default.
You can use the Global Setting "User Interface > UI Theme" for changing the
default theme for you whole installation. Each user can change the theme on
his user profile page.
Change-Id: Iff50b2cdcef5696f981135b90f1630bd747dc0d9
---
.werks/6356 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.werks/6356 b/.werks/6356
new file mode 100644
index 0000000..6a73e61
--- /dev/null
+++ b/.werks/6356
@@ -0,0 +1,17 @@
+Title: New standard theme for Check_MK GUI
+Level: 3
+Component: multisite
+Class: feature
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1532100627
+
+The Check_MK GUI is now shipped with a new standard theme. This theme is
+enabled by default for all sites created with 1.5.0b9 or newer. Updated sites
+keep the classic theme by default.
+
+You can use the Global Setting "User Interface > UI Theme" for changing the
+default theme for you whole installation. Each user can change the theme on
+his user profile page.
Module: check_mk
Branch: master
Commit: 1474e7fa7d8a10c2c5d4c0612cfafa595ae1f393
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1474e7fa7d8a10…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 18 17:59:54 2018 +0200
New sites use the new UI theme by default now
Change-Id: Id6e6e26e0a6eee607a706274afadbed041effc1c
---
cmk/gui/wato/__init__.py | 1 +
omd/packages/omd/omd | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/cmk/gui/wato/__init__.py b/cmk/gui/wato/__init__.py
index b051f92..e366f11 100644
--- a/cmk/gui/wato/__init__.py
+++ b/cmk/gui/wato/__init__.py
@@ -14208,6 +14208,7 @@ def create_sample_config():
"mssql_versions",
],
"enable_rulebased_notifications": True,
+ "ui_theme": "facelift",
}
)
diff --git a/omd/packages/omd/omd b/omd/packages/omd/omd
index b01701b..ef63be0 100644
--- a/omd/packages/omd/omd
+++ b/omd/packages/omd/omd
@@ -2754,6 +2754,24 @@ def init_site(config_settings=None, options=False):
admin_password = calculate_admin_password(options)
set_admin_password(admin_password)
+ # Special hack for 1.5: Requirement is to activate the new facelift theme
+ # for new sites. Normally we use the "WATO sample configuration" for setting
+ # specific options for sites created with the new version. But this sample
+ # configuration is not set too late to affect the first login.
+ # It is set when a user accesses WATO for the first time, which happens
+ # after the first login.
+ # It is a open task to move this initial configuration step to an earlier
+ # stage for the 1.6. But this is nothing we can change now for the 1.5
+ # because it would involve some bigger changes.
+ # We decided to reach this goal using hard coded specific hack here for the
+ # 1.5 and solve the issue completely (also for the other sample config) in
+ # the future.
+ with open(os.path.join(g_sitedir, "etc/check_mk/multisite.d/wato/global.mk"), "w") as f:
+ f.write(
+ "# Created by 'omd create'\n"
+ "ui_theme = 'facelift'\n"
+ )
+
# Change ownership of all files and dirs to site user
chown_tree(g_sitedir, g_sitename)