]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 488931: Change the default priority values to be human-readable words instead...
authormkanat%bugzilla.org <>
Wed, 30 Sep 2009 08:55:03 +0000 (08:55 +0000)
committermkanat%bugzilla.org <>
Wed, 30 Sep 2009 08:55:03 +0000 (08:55 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat

Bugzilla/DB.pm
contrib/bugzilla-submit/bugzilla-submit
contrib/gnats2bz.pl [changed mode: 0644->0755]
contrib/gnatsparse/gnatsparse.py
template/en/default/pages/fields.html.tmpl

index f39eb6511aa20cb80e249c77b55cd15916a1896b..24c1f24f9d32d3d56bca3156b8c54d1e62db7ffa 100644 (file)
@@ -65,7 +65,7 @@ use constant ISOLATION_LEVEL => 'REPEATABLE READ';
 use constant ENUM_DEFAULTS => {
     bug_severity  => ['blocker', 'critical', 'major', 'normal',
                       'minor', 'trivial', 'enhancement'],
-    priority     => ["P1","P2","P3","P4","P5"],
+    priority     => ["Highest", "High", "Normal", "Low", "Lowest", "---"],
     op_sys       => ["All","Windows","Mac OS","Linux","Other"],
     rep_platform => ["All","PC","Macintosh","Other"],
     bug_status   => ["UNCONFIRMED","NEW","ASSIGNED","REOPENED","RESOLVED",
index 47c94b27522a6cb38ee8dd8f37d048e16f31800d..e1e9b64d894a6eab77298d8221eec38ab9ef06c8 100755 (executable)
@@ -158,7 +158,7 @@ def ensure_defaults(data):
     if 'bug_file_loc' not in data:
         data['bug_file_loc'] = 'http://'        # Yes, Bugzilla needs this
     if 'priority' not in data:
-        data['priority'] = 'P2'
+        data['priority'] = 'Normal'
 
 def validate_fields(data):
     # Fields for validation
old mode 100644 (file)
new mode 100755 (executable)
index 0cd6a32..27f3ad8
@@ -606,25 +606,25 @@ sub write_bugs {
     # Mapping from Severity,Priority to priority
     # At our site, the Severity,Priority fields have degenerated
     # into a 9-level priority field.
-    my($priority) = "P1";
+    my($priority) = "Highest";
     if (defined($pr_data{"Severity"}) && defined($pr_data{"Severity"})) {
         if ($pr_data{"Severity"} eq "critical") {
             if ($pr_data{"Priority"} eq "high") {
-                $priority = "P1";
+                $priority = "Highest";
             } else {
-                $priority = "P2";
+                $priority = "High";
             }
         } elsif ($pr_data{"Severity"} eq "serious") {
             if ($pr_data{"Priority"} eq "low") {
-                $priority = "P4";
+                $priority = "Low";
             } else {
-                $priority = "P3";
+                $priority = "Normal";
             }
         } else {
             if ($pr_data{"Priority"} eq "high") {
-                $priority = "P4";
+                $priority = "Low";
             } else {
-                $priority = "P5";
+                $priority = "Lowest";
             }
         }
     }
index 21ec7a8407ed7b218d092984857fb8fde2accfec..9eef18b898fca98c81fbe3a6650dc5a4ed69426f 100755 (executable)
@@ -552,19 +552,19 @@ class Bugzillabug(object):
             priority = self.fields["Priority"]
             if severity == "critical":
                 if priority == "high":
-                    self.fields["priority"] = "P1"
+                    self.fields["priority"] = "Highest"
                 else:
-                    self.fields["priority"] = "P2"
+                    self.fields["priority"] = "High"
             elif severity == "serious":
                 if priority == "low":
-                    self.fields["priority"] = "P4"
+                    self.fields["priority"] = "Low"
                 else:
-                    self.fields["priority"] = "P3"
+                    self.fields["priority"] = "Normal"
             else:
                 if priority == "high":
-                    self.fields["priority"] = "P4"
+                    self.fields["priority"] = "Low"
                 else:
-                    self.fields["priority"] = "P5"
+                    self.fields["priority"] = "Lowest"
         self.fields["priority"] = SqlQuote(self.fields["priority"])
         state = self.fields["State"]
         if (state == "open" or state == "analyzed") and self.fields["userid"] != 3:
index 0125a55e987c32a882ddf7bd2f48d5f27b75ac5d..7487841c865d2f0030588f370b7767f84bc6927a 100644 (file)
@@ -213,10 +213,8 @@ as described below.
 
 <h2><a name="priority">Priority</a></h2>
 This field describes the importance and order in which [% terms.abug %]
-should be fixed. This field is utilized by the
-programmers/engineers to prioritize their work to be done. The
-available priorities range from <b>P1</b> (most important) to
-<b>P5</b> (least important).
+should be fixed compared to other [% terms.bugs %]. This field is utilized
+by the programmers/engineers to prioritize their work to be done.
 
 <h2><a name="bug_severity">Severity</a></h2>
 This field describes the impact of [% terms.abug %].