Merge lp:~allenap/launchpad/freedesktop-importance-flip-flop-bug-707478 into lp:launchpad

Proposed by Gavin Panella
Status: Merged
Approved by: Graham Binns
Approved revision: no longer in the source branch.
Merged at revision: 12279
Proposed branch: lp:~allenap/launchpad/freedesktop-importance-flip-flop-bug-707478
Merge into: lp:launchpad
Diff against target: 53 lines (+3/-11)
2 files modified
lib/lp/bugs/externalbugtracker/bugzilla.py (+3/-5)
lib/lp/bugs/scripts/checkwatches/remotebugupdater.py (+0/-6)
To merge this branch: bzr merge lp:~allenap/launchpad/freedesktop-importance-flip-flop-bug-707478
Reviewer Review Type Date Requested Status
Graham Binns (community) code Approve
Review via email: mp+47667@code.launchpad.net

Commit message

[r=gmb][ui=none][bug=707478] bugs.freedesktop.org (Bugzilla 3.4.6) has decided to take notice of the columnlist parameter we pass over.

Description of the change

For some reason bugs.freedesktop.org (Bugzilla 3.4.6) has decided to take notice of the columnlist parameter we pass over. It was incorrect, now it's not :)

To post a comment you must log in.
Revision history for this message
Graham Binns (gmb) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/bugs/externalbugtracker/bugzilla.py'
--- lib/lp/bugs/externalbugtracker/bugzilla.py 2011-01-19 00:10:48 +0000
+++ lib/lp/bugs/externalbugtracker/bugzilla.py 2011-01-27 15:26:48 +0000
@@ -357,7 +357,9 @@
357 data = {357 data = {
358 'form_name': 'buglist.cgi',358 'form_name': 'buglist.cgi',
359 'bug_id_type': 'include',359 'bug_id_type': 'include',
360 'columnlist': 'id,product,bug_status,resolution',360 'columnlist':
361 ('id,product,bug_status,resolution,'
362 'priority,bug_severity'),
361 'bug_id': ','.join(bug_ids),363 'bug_id': ','.join(bug_ids),
362 }364 }
363 if self.version < (2, 17, 1):365 if self.version < (2, 17, 1):
@@ -469,10 +471,6 @@
469 self.remote_bug_product[bug_id] = (471 self.remote_bug_product[bug_id] = (
470 product_node.childNodes[0].data)472 product_node.childNodes[0].data)
471473
472 def initializeRemoteImportance(self, bug_ids):
473 for bug_id in bug_ids:
474 self.remote_bug_importance[bug_id] = "NORMAL NORMAL"
475
476 def getRemoteImportance(self, bug_id):474 def getRemoteImportance(self, bug_id):
477 """See `ExternalBugTracker`."""475 """See `ExternalBugTracker`."""
478 try:476 try:
479477
=== modified file 'lib/lp/bugs/scripts/checkwatches/remotebugupdater.py'
--- lib/lp/bugs/scripts/checkwatches/remotebugupdater.py 2010-10-26 15:47:24 +0000
+++ lib/lp/bugs/scripts/checkwatches/remotebugupdater.py 2011-01-27 15:26:48 +0000
@@ -132,10 +132,6 @@
132 error = None132 error = None
133 oops_id = None133 oops_id = None
134134
135 # XXX: 2007-10-17 Graham Binns
136 # This nested set of try:excepts isn't really
137 # necessary and can be refactored out when bug
138 # 136391 is dealt with.
139 try:135 try:
140 new_remote_status = (136 new_remote_status = (
141 self.external_bugtracker.getRemoteStatus(137 self.external_bugtracker.getRemoteStatus(
@@ -179,7 +175,6 @@
179 for bug_watch in bug_watches:175 for bug_watch in bug_watches:
180 bug_watch_updater = BugWatchUpdater(176 bug_watch_updater = BugWatchUpdater(
181 self, bug_watch, self.external_bugtracker)177 self, bug_watch, self.external_bugtracker)
182
183 bug_watch_updater.updateBugWatch(178 bug_watch_updater.updateBugWatch(
184 new_remote_status, new_malone_status,179 new_remote_status, new_malone_status,
185 new_remote_importance, new_malone_importance)180 new_remote_importance, new_malone_importance)
@@ -234,4 +229,3 @@
234 launchpad_status = BugTaskStatus.UNKNOWN229 launchpad_status = BugTaskStatus.UNKNOWN
235230
236 return launchpad_status231 return launchpad_status
237