Merge lp:~rvb/launchpad/dsd-api-bug-766158 into lp:launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10513 |
Proposed branch: | lp:~rvb/launchpad/dsd-api-bug-766158 |
Merge into: | lp:launchpad/db-devel |
Prerequisite: | lp:~stevenk/launchpad/db-use-dsp |
Diff against target: |
378 lines (+180/-22) 9 files modified
lib/canonical/launchpad/interfaces/_schema_circular_imports.py (+14/-0) lib/lp/registry/browser/tests/test_distroseries_webservice.py (+44/-0) lib/lp/registry/interfaces/distribution.py (+1/-1) lib/lp/registry/interfaces/distroseries.py (+41/-0) lib/lp/registry/interfaces/distroseriesdifference.py (+7/-3) lib/lp/registry/model/distroseries.py (+15/-0) lib/lp/registry/model/distroseriesdifference.py (+10/-3) lib/lp/registry/tests/test_distroseriesdifference.py (+34/-4) lib/lp/testing/factory.py (+14/-11) |
To merge this branch: | bzr merge lp:~rvb/launchpad/dsd-api-bug-766158 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Данило Шеган (community) | Approve | ||
Review via email: mp+59227@code.launchpad.net |
Commit message
[r=danilo][bug=766158] Add an method IDistroSeries.
Description of the change
This branch adds a method IDistroSeries.
= Details =
This branch is branched off lp:~stevenk/launchpad/db-use-dsp which removes the usage of IDistroSeries.
The method getDifferencesTo is a simple wrapper around IDistroSeriesDi
= Tests =
(added test)
./bin/test -cvv test_distroseri
./bin/test -cvv test_distroseri
(fixed test)
./bin/test -cvv test_distroseri
= QA =
Once lp:~stevenk/launchpad/db-use-dsp is merged and qa-ed, this can be tested by calling the api on a distroseries with multiple parents to fetch differences.
= Drive-by fixes =
- Add missing assert statement in test_getForDist
- his branch also fixes a small glitch in lib/lp/
Several issues as discussed on IRC:
1. There is now a easy-to-fix conflict :)
2. operation_ parameters seem to abuse TextLine quite a bit: please use appropriate interface definitions (Choices, Bools, etc) and make sure appropriate enums are exported as well
3. A tiny whitespace issue:
At line 89 of the diff, you've got double space inside a string (at EOL and SOL :):
+ title=_("Only return differences for packages matching this "
+ " name."),