Module: check_mk
Branch: master
Commit: 30e3490696407a6f222b47a60556e06273beeac7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=30e3490696407a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 27 22:17:51 2018 +0200
6455 FIX LDAP: Multiple sync processes could be running at the same time
Since 1.5.0b2 (#5986) the user synchronization is executed as background
job. Because of a broken locking the sync could be executed multiple times
in parallel. This issue did not lead to corrupted data, there were multiple
jobs running in parallel overwriting each others results.
Change-Id: I3c38897ec82b4878ac55ec4a426cfa60cbd7faf6
---
.werks/6455 | 14 ++++++++++++++
cmk/gui/userdb.py | 3 ++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/6455 b/.werks/6455
new file mode 100644
index 0000000..b27956e
--- /dev/null
+++ b/.werks/6455
@@ -0,0 +1,14 @@
+Title: LDAP: Multiple sync processes could be running at the same time
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1535400789
+
+Since 1.5.0b2 (#5986) the user synchronization is executed as background
+job. Because of a broken locking the sync could be executed multiple times
+in parallel. This issue did not lead to corrupted data, there were multiple
+jobs running in parallel overwriting each others results.
diff --git a/cmk/gui/userdb.py b/cmk/gui/userdb.py
index f1850fe..5d48d99 100644
--- a/cmk/gui/userdb.py
+++ b/cmk/gui/userdb.py
@@ -1247,7 +1247,8 @@ def execute_userdb_job():
job = UserSyncBackgroundJob()
if job.is_running():
- logger.debug("Another synchronization job is already running")
+ logger.debug("Another synchronization job is already running: Skipping this sync")
+ return
job.set_function(job.do_sync, add_to_changelog=False, enforce_sync=False)
job.start()
Module: check_mk
Branch: master
Commit: 0acd2856fd875a50ee5541e9ec7f768c5e33c6a0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0acd2856fd875a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 16 13:30:35 2018 +0200
6290 FIX Werk list can be limited by number of groups (default: 20 versions)
To prevent a too long loading page by default the number of werks
shown on the werk list (release notes) page can now bw limited by
the number of groups to be shown. By default the grouping is done
by version and limited to 20 versions now.
Change-Id: I3170548359502b19c437ec69522a8b8cf2f68ba9
---
.werks/6290 | 16 ++++++++++++++++
cmk/gui/werks.py | 15 ++++++++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/.werks/6290 b/.werks/6290
new file mode 100644
index 0000000..6cb0634
--- /dev/null
+++ b/.werks/6290
@@ -0,0 +1,16 @@
+Title: Limit the output of the werk list to the number of groups
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1534418929
+
+To circumvent a long loading time the number of werks on the werk list (release
+notes) page is now limited to the number of groups to be shown. By default the
+grouping is done by version and limited to 20 versions.
+
+You can change the grouping and limit options using the "Searching & Filtering"
+form when viewing the page.
diff --git a/cmk/gui/werks.py b/cmk/gui/werks.py
index cd7c5e5..19cadfe 100644
--- a/cmk/gui/werks.py
+++ b/cmk/gui/werks.py
@@ -293,6 +293,15 @@ def werk_table_option_entries():
),
"version",
),
+ ( "group_limit",
+ "single",
+ Integer(
+ title = _("Show number of groups"),
+ unit = _("groups"),
+ minvalue = 1,
+ ),
+ 20,
+ ),
]
@@ -321,7 +330,7 @@ def render_werks_table():
werk_table_options = default_werk_table_options()
werk_table_options["compatibility"] = [ "incomp_unack" ]
- current_group = False
+ current_group, number_of_groups = False, 0
def begin_group(title):
table.begin(title=title, limit=None, searchable = False, sortable = False, css="werks")
@@ -337,6 +346,10 @@ def render_werks_table():
if werk_matches_options(werk, werk_table_options):
group = werk_group_value(werk, werk_table_options["grouping"])
if group != current_group:
+ if number_of_groups >= werk_table_options["group_limit"]:
+ break
+ number_of_groups += 1
+
if current_group != False:
table.end()
begin_group(group)