Module: check_mk
Branch: master
Commit: 7d6b08580cbfd3225b5ccca97fb76d3672a7e75a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7d6b08580cbfd3…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Apr 26 17:27:48 2016 +0200
3125 FIX fixed grouping of werk list by version
The entries in the werk list when grouping by version were still sorted by date only and thus there
could be multiple groups for one version, interrupted by an older version.
---
.werks/3125 | 11 +++++++++++
ChangeLog | 1 +
web/htdocs/werks.py | 20 +++++++++++++++++++-
3 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/.werks/3125 b/.werks/3125
new file mode 100644
index 0000000..bdba236
--- /dev/null
+++ b/.werks/3125
@@ -0,0 +1,11 @@
+Title: fixed grouping of werk list by version
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1461684350
+
+The entries in the werk list when grouping by version were still sorted by date only and thus there
+could be multiple groups for one version, interrupted by an older version.
diff --git a/ChangeLog b/ChangeLog
index fcaeffb..d6f5372 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -247,6 +247,7 @@
* 3402 FIX: Using information from inventory in column tooltips now longer crashes
* 3413 FIX: Correctly display non-Ascii-characters in host tag values in host tag filter
* 3029 FIX: rule editor icon: fixed query of invalid livestatus column...
+ * 3125 FIX: fixed grouping of werk list by version...
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node selection...
diff --git a/web/htdocs/werks.py b/web/htdocs/werks.py
index 8363ace..89e4c5f 100644
--- a/web/htdocs/werks.py
+++ b/web/htdocs/werks.py
@@ -384,7 +384,14 @@ def render_werks_table():
def begin_group(title):
table.begin(title=title, limit=None, searchable = False, sortable = False, css="werks")
- for werk in werks_sorted_by_date(g_werks.values()):
+ werklist = []
+
+ if werk_table_options["grouping"] == "version":
+ werklist = werks_sorted_by_version(g_werks.values())
+ else:
+ werklist = werks_sorted_by_date(g_werks.values())
+
+ for werk in werklist:
if werk_matches_options(werk, werk_table_options):
group = werk_group_value(werk, werk_table_options["grouping"])
if group != current_group:
@@ -581,3 +588,14 @@ def insert_manpage_links(text):
def werks_sorted_by_date(werks):
return sorted(werks, cmp = lambda a, b: -cmp(a["date"], b["date"]))
+
+
+# sort by version and within one version by date
+def werks_sorted_by_version(werks):
+ def by_version(lhs, rhs):
+ if lhs["version"] == rhs["version"]:
+ return cmp(lhs["date"], rhs["date"])
+ else:
+ return cmp(lhs["version"], rhs["version"])
+
+ return sorted(werks, cmp=by_version, reverse=True)
Module: check_mk
Branch: master
Commit: 8ada9709ea371eb708c54e904e3db7f551e668ee
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8ada9709ea371e…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Apr 26 16:43:28 2016 +0200
Fixed spelling
---
web/htdocs/prediction.py | 4 ++--
web/plugins/wato/mkeventd.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/prediction.py b/web/htdocs/prediction.py
index 00490d7..d0e1d11 100644
--- a/web/htdocs/prediction.py
+++ b/web/htdocs/prediction.py
@@ -52,8 +52,8 @@ def page_graph():
defaults.var_dir, host, pnp_cleanup(service), pnp_cleanup(dsname))
if not os.path.exists(dir):
- raise MKGeneralException(_("There is currently no predition information "
- "available for this for this service."))
+ raise MKGeneralException(_("There is currently no prediction information "
+ "available for this service."))
# Load all prediction information, sort by time of generation
tg_name = html.var("timegroup")
diff --git a/web/plugins/wato/mkeventd.py b/web/plugins/wato/mkeventd.py
index 2481eae..9df85a7 100644
--- a/web/plugins/wato/mkeventd.py
+++ b/web/plugins/wato/mkeventd.py
@@ -699,8 +699,8 @@ vs_mkeventd_rule = Dictionary(
"groups in the text to match, then you can use the placeholders "
"<tt>\\1</tt>, <tt>\\2</tt>, etc. for inserting the first, second "
"etc matching group.") +
- _("The placeholder <tt>\\0</tt> will be replaced by the original Text "
- "to Match. Note that as an alternative, you may also use the rule "
+ _("The placeholder <tt>\\0</tt> will be replaced by the original text "
+ "to match. Note that as an alternative, you may also use the rule "
"Hostname translation for Incoming Messages in the Global Settings "
"of the EC to accomplish your task."),
allow_empty = False,
Module: check_mk
Branch: master
Commit: ff69992b4d4037f67c7407a49a0b7b9f91eb4748
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ff69992b4d4037…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 26 15:58:35 2016 +0200
Fixed some typos
---
web/plugins/metrics/check_mk.py | 2 +-
web/plugins/wato/mkeventd.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index 32e71e1..5e31cab 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -2765,7 +2765,7 @@ metric_info["harddrive_uncorrectable_erros"] = {
}
metric_info["harddrive_udma_crc_errors"] = {
- "title" : _("Harddrive udma crc errors"),
+ "title" : _("Harddrive UDMA CRC errors"),
"unit" : "count",
"color" : "46/a",
}
diff --git a/web/plugins/wato/mkeventd.py b/web/plugins/wato/mkeventd.py
index 41df8d3..2481eae 100644
--- a/web/plugins/wato/mkeventd.py
+++ b/web/plugins/wato/mkeventd.py
@@ -2642,7 +2642,7 @@ if mkeventd_enabled:
( "host", _("Host's contact groups have precedence") ),
( "rule", _("Contact groups in rule have precedence") ),
],
- help = _("Here you can specify whether which contact groups shall have "
+ help = _("Here you can specify which contact groups shall have "
"precedence when both the host of an event can be found in the "
"monitoring and the event rule has defined contact groups for the event."),
),
Module: check_mk
Branch: master
Commit: b1e1f6af7946f8d1420810fb546fd8c2fa58ffac
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1e1f6af7946f8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 26 15:23:20 2016 +0200
Fixed some typos
---
web/plugins/wato/check_parameters.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 51d33f5..ba7704e 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1556,7 +1556,7 @@ register_check_parameters(
( "remaining_life",
Tuple(
title = _("Remaining Life"),
- help = _("Estimatede remaining health of the disk based on other readings."),
+ help = _("Estimated remaining health of the disk based on other readings."),
elements = [
Percentage(title = _("Warning below"), default_value = 30),
Percentage(title = _("Critical below"), default_value = 10),
Module: check_mk
Branch: master
Commit: 340dd268a568b4e411db30caf2d453d7748dfb37
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=340dd268a568b4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 26 15:08:19 2016 +0200
Fixed some help texts
---
web/plugins/metrics/check_mk.py | 1 -
web/plugins/wato/datasource_programs.py | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index 9f92b9d..32e71e1 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -2440,7 +2440,6 @@ metric_info["buffered_io"] = {
metric_info["write_cache_usage"] = {
"title" : _("Write cache usage"),
- "help" : _("A write cache is a cache that uses an allocate on write miss, write-back, no allocate on read miss strategy"),
"unit" : "%",
"color" : "#030303",
}
diff --git a/web/plugins/wato/datasource_programs.py b/web/plugins/wato/datasource_programs.py
index 2713832..730cda7 100644
--- a/web/plugins/wato/datasource_programs.py
+++ b/web/plugins/wato/datasource_programs.py
@@ -585,7 +585,7 @@ def validate_siemens_plc_values(value, varprefix):
_siemens_plc_value = [
Transform(
CascadingDropdown(
- title = _("Area"),
+ title = _("The Area"),
choices = [
("db", _("Datenbaustein"),
Integer(
@@ -608,8 +608,8 @@ _siemens_plc_value = [
Float(
title = _("Address"),
display_format = "%.1f",
- help = _("Addresses are specified as float values, while the numbers "
- "the dot specify the byte to fetch and the number after the "
+ help = _("Addresses are specified with a dot notation, where number "
+ "before the dot specify the byte to fetch and the number after the "
"dot specifies the bit to fetch. The number of the bit is always "
"between 0 and 7."),
),