Merge lp:~gmb/launchpad/debbugs-zero-batch-size-bug-444322 into lp:launchpad

Proposed by Graham Binns
Status: Merged
Merged at revision: not available
Proposed branch: lp:~gmb/launchpad/debbugs-zero-batch-size-bug-444322
Merge into: lp:launchpad
Diff against target: 33 lines
2 files modified
lib/lp/bugs/doc/externalbugtracker-debbugs.txt (+7/-0)
lib/lp/bugs/externalbugtracker/debbugs.py (+5/-0)
To merge this branch: bzr merge lp:~gmb/launchpad/debbugs-zero-batch-size-bug-444322
Reviewer Review Type Date Requested Status
Abel Deuring (community) code Approve
Review via email: mp+12905@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Graham Binns (gmb) wrote :

This branch is a simple fix for bug 444322. It removes the batch_size limit for the DebBugs ExternalBugTracker, which has the effect of letting checkwatches alway update all the needs-checking watches for DebBugs every time it runs rather than only updating the first 100.

Revision history for this message
Abel Deuring (adeuring) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/bugs/doc/externalbugtracker-debbugs.txt'
2--- lib/lp/bugs/doc/externalbugtracker-debbugs.txt 2009-06-15 11:10:49 +0000
3+++ lib/lp/bugs/doc/externalbugtracker-debbugs.txt 2009-10-06 07:45:29 +0000
4@@ -38,6 +38,13 @@
5 >>> verifyObject(IExternalBugTracker, external_debbugs)
6 True
7
8+Because we keep a local copy of the DebBugs database we don't need to
9+worry about batching bug watch updates for performance reasons, so
10+DebBugs instances don't have a batch_size limit.
11+
12+ >>> print external_debbugs.batch_size
13+ None
14+
15
16 == Retrieving bug status from the debbugs database ==
17
18
19=== modified file 'lib/lp/bugs/externalbugtracker/debbugs.py'
20--- lib/lp/bugs/externalbugtracker/debbugs.py 2009-06-25 00:40:31 +0000
21+++ lib/lp/bugs/externalbugtracker/debbugs.py 2009-10-06 07:45:29 +0000
22@@ -57,6 +57,11 @@
23 debbugs_pl = os.path.join(
24 os.path.dirname(debbugs.__file__), 'debbugs-log.pl')
25
26+ # Because we keep a local copy of debbugs, we remove the batch_size
27+ # limit so that all debbugs watches that need checking will be
28+ # checked each time checkwatches runs.
29+ batch_size = None
30+
31 def __init__(self, baseurl, db_location=None):
32 super(DebBugs, self).__init__(baseurl)
33 if db_location is None: