Merge lp:~jtv/launchpad/pre-827347 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13706 |
Proposed branch: | lp:~jtv/launchpad/pre-827347 |
Merge into: | lp:launchpad |
Diff against target: |
277 lines (+75/-101) 3 files modified
lib/lp/registry/model/distroseriesdifference.py (+4/-5) lib/lp/registry/tests/test_distroseriesdifference.py (+66/-94) lib/lp/soyuz/model/packagecopyjob.py (+5/-2) |
To merge this branch: | bzr merge lp:~jtv/launchpad/pre-827347 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+71724@code.launchpad.net |
Commit message
[r=gmb][bug=827347] Sanitize default/None status arg for IDistroSeriesDi
Description of the change
= Summary =
IDistroSeriesDi
== Proposed fix ==
Make None mean "any status." No documentation changes needed. Some test cleanups though.
== Pre-implementation notes ==
DistroSeriesDif
== Implementation details ==
The actual code change is tiny and appears at the top of the diff.
Only in packagecopyjob did I see a case where the status argument was left out but the caller clearly meant to get NEEDS_ATTENTION DSDs. There are a few tests elsewhere that do not pass status but are just as valid with "any status" as they are with the previous default. I kept those unchanged.
I also rewrote a whole bunch of getForDistroSeries tests to get rid of the complex test data that enabled or compounded this situation.
I'm still running tests to find out whether I missed anything. Since DSDs are a new feature, I'll count on the test suite to expose any problems with the change.
== Tests ==
{{{
./bin/test -vvc lp.registry.
./bin/test -vvc lp.registry -t DistroSeriesDif
./bin/test -vvc lp.registry.
}}}
== Demo and Q/A ==
The DistroSeries:
Also verify the links from the page for a derived distroseries to the missing / changed / unique packages. Their counts may be affected. I'll be changing these links in my next branch for the same bug, since we want them to behave differently.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/