Module: check_mk
Branch: master
Commit: 99ad65e8121744b8d648a83afb5128586265d11e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=99ad65e8121744…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 28 14:03:50 2011 +0200
gb: target version is now an enum list
---
.bugs/105 | 2 +-
.bugs/400 | 2 +-
.bugs/401 | 2 +-
.bugs/402 | 2 +-
.bugs/403 | 2 +-
.bugs/404 | 2 +-
.bugs/405 | 2 +-
.bugs/config | 8 +++++++-
gb | 18 +++++++++++-------
9 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/.bugs/105 b/.bugs/105
index 0f1d95d..77bb133 100644
--- a/.bugs/105
+++ b/.bugs/105
@@ -5,7 +5,7 @@ State: open
Cost: 5
Date: 2011-01-24 16:22:26
Class: cleanup
-Targetversion: 1.1.12p1
+Targetversion: 1.1.12
All SNMP checks must define scan functions. Otherwise the scan
can take a long time on some slow devices.
diff --git a/.bugs/400 b/.bugs/400
index 601f09f..3bb55e5 100644
--- a/.bugs/400
+++ b/.bugs/400
@@ -4,7 +4,7 @@ Benefit: 2
State: open
Cost: 2
Date: 2011-10-27 15:00:16
-Targetversion: 1.1.12p1
+Targetversion: 1.1.12
Class: bug
The service hard state filter uses the HTML variables hst0, hst1, ...
diff --git a/.bugs/401 b/.bugs/401
index 16fcd01..37ecb08 100644
--- a/.bugs/401
+++ b/.bugs/401
@@ -4,7 +4,7 @@ Benefit: 1
State: open
Cost: 1
Date: 2011-10-27 18:51:44
-Targetversion: 1.1.12p1
+Targetversion: 1.1.12
Class: bug
When in a view in Checkbox mode hovering over the rows
diff --git a/.bugs/402 b/.bugs/402
index c511803..386e62b 100644
--- a/.bugs/402
+++ b/.bugs/402
@@ -4,7 +4,7 @@ Benefit: 1
State: open
Cost: 1
Date: 2011-10-27 18:52:58
-Targetversion: 1.1.12p1
+Targetversion: 1.1.12
Class: bug
When hitting Enter in Quicksearch when no host matches, a service
diff --git a/.bugs/403 b/.bugs/403
index 8e3aac8..db7173c 100644
--- a/.bugs/403
+++ b/.bugs/403
@@ -6,7 +6,7 @@ State: done
Class: bug
Benefit: 2
Fun: 0
-Targetversion: 1.1.12p1
+Targetversion: 1.1.12
Take the allhosts_mini View. Add a service column
with the 1.st service perfdata variable. Now click
diff --git a/.bugs/404 b/.bugs/404
index 1e9a4d2..beb0e63 100644
--- a/.bugs/404
+++ b/.bugs/404
@@ -4,7 +4,7 @@ Benefit: 2
State: open
Cost: 2
Date: 2011-10-27 18:55:56
-Targetversion:
+Targetversion: 1.2.0
Class: todo
So that we can filter events for the alert state.
diff --git a/.bugs/405 b/.bugs/405
index eeb183d..85518f2 100644
--- a/.bugs/405
+++ b/.bugs/405
@@ -4,7 +4,7 @@ Benefit: 1
State: open
Cost: 1
Date: 2011-10-27 18:56:40
-Targetversion:
+Targetversion: 1.2.0
Class: todo
Do we have filters for the hard service state? At least in
diff --git a/.bugs/config b/.bugs/config
index e56e56b..52e04cf 100644
--- a/.bugs/config
+++ b/.bugs/config
@@ -3,7 +3,7 @@ states = {
"done" : tty_green,
"closed" : tty_normal,
"wontfix" : tty_magenta,
- "discuss" : tty_red,
+ "discuss" : tty_red,
}
components = [
@@ -24,3 +24,9 @@ classes = [
"phantasm",
"feature",
]
+
+targetversions = [
+ "1.1.12",
+ "1.2.0",
+ "future",
+]
diff --git a/gb b/gb
index e4f4def..3726f7f 100755
--- a/gb
+++ b/gb
@@ -115,7 +115,7 @@ def load_bug(bugid):
"state" : "unknown",
"title" : "unknown",
"component" : "general",
- "targetversion" : "",
+ "targetversion" : "future",
}
f = file(str(bugid))
@@ -252,7 +252,11 @@ def main_list(args):
hit = False
for tp, values in [
- ( "component", components ), ( "state", states ), (
"class", classes ), ]:
+ ( "component", components ),
+ ( "state", states ),
+ ( "class", classes ),
+ ( "targetversion", targetversions),
+ ]:
for v in values:
if v.startswith(a):
entries = filters.get(tp, [])
@@ -367,11 +371,11 @@ def main_new(args):
if bug["title"] == "":
sys.stderr.write("Cancelled.\n")
sys.exit(0)
- bug["class"] = input_choice("Class", classes)
- bug["component"] = input_choice("Component", components)
- bug["targetversion"] = get_input("Target Version")
- bug["cost"] = input_choice("Cost",
"123456789")
- bug["benefit"] = input_choice("Benefit",
"123456789")
+ bug["class"] = input_choice("Class", classes)
+ bug["component"] = input_choice("Component", components)
+ bug["targetversion"] = input_choice("Target Version",
targetversions)
+ bug["cost"] = input_choice("Cost",
"123456789")
+ bug["benefit"] = input_choice("Benefit",
"123456789")
bug["description"] = get_long_input("description")
g_bugs[bug["id"]] = bug