Merge lp:~jtv/launchpad/db-bug-782096 into lp:launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10573 |
Proposed branch: | lp:~jtv/launchpad/db-bug-782096 |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
364 lines (+219/-10) 6 files modified
lib/lp/registry/browser/distroseries.py (+20/-0) lib/lp/registry/browser/tests/test_distroseries.py (+27/-0) lib/lp/registry/templates/distroseries-localdifferences.pt (+13/-7) lib/lp/soyuz/interfaces/packagecopyjob.py (+15/-0) lib/lp/soyuz/model/packagecopyjob.py (+43/-2) lib/lp/soyuz/tests/test_packagecopyjob.py (+101/-1) |
To merge this branch: | bzr merge lp:~jtv/launchpad/db-bug-782096 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+61612@code.launchpad.net |
Commit message
[r=jcsackett][bug=782096] Active PlainPackageCop
Description of the change
= Summary =
IPlainPackageCo
1. It failed to check for job status, so unless finished jobs were immediately deleted, it would pick up completed or failed jobs.
2. It failed to impose a sane ordering, so it wouldn't necessarily pick up the oldest available job.
This fixes that.
The test uses the makeJob helper, which isn't actually in db-devel at the time of writing. But it's on the way through EC2 and should land soon. Tests pass when I merge in that branch, but I wanted to keep the diff minimal so I left it out. (There were no text conflicts to complicate this, luckily).
== Tests ==
{{{
./bin/test -vvc lp.soyuz.
}}}
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
With the return of the order_by, this looks good to land.