Merge lp:~inspirated/launchpad/export-Person-getBugSubscriberPackages into lp:launchpad
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Graham Binns on 2010-06-15 | ||||||||
| Approved revision: | no longer in the source branch. | ||||||||
| Merged at revision: | 11121 | ||||||||
| Proposed branch: | lp:~inspirated/launchpad/export-Person-getBugSubscriberPackages | ||||||||
| Merge into: | lp:launchpad | ||||||||
| Diff against target: |
66 lines (+36/-0) 3 files modified
lib/canonical/launchpad/interfaces/_schema_circular_imports.py (+4/-0) lib/lp/registry/interfaces/person.py (+2/-0) lib/lp/registry/stories/webservice/xx-person.txt (+30/-0) |
||||||||
| To merge this branch: | bzr merge lp:~inspirated/launchpad/export-Person-getBugSubscriberPackages | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2010-06-15 | Approve on 2010-06-15 |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2010-06-15.
Commit Message
[ui=none][r=gmb][bug=331039,281443] Person.
Description of the Change
Summary:
As part of my GSoC 2010 project, functionality is required in Arsenal to search all the bugs a team is subscribed to. This required an API call which would export all the source packages subscriptions of a team. Bug #281443 and Bug #331039 document other needs for this API call.
Proposed fix:
The method for searching a team's subscriptions is already present in lib/lp/
| Kamran Riaz Khan (inspirated) wrote : | # |
Hi Graham,
Thanks for taking time out to review. Here are the results for person test suite:
$ bin/test -cvvt xx-person.
Running canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Running:
lib/lp/
Ran 52 tests with 0 failures and 0 errors in 1 minutes 12.426 seconds.
Tearing down left over layers:
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
The tests do not introduce any regression (since the branch doesn't implement anything new in LP, it just exports a method that is already present).
| Kamran Riaz Khan (inspirated) wrote : | # |
Added new doctest in revision #11012.
$ bin/test -cvvt xx-person.txt
Running tests at level 1
Running canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Running:
lib/lp/
Ran 53 tests with 0 failures and 0 errors in 59.176 seconds.
Tearing down left over layers:
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
| Graham Binns (gmb) wrote : | # |
The new test tests the method directly, not through the webservice; it should be tested using webservice.
| Kamran Riaz Khan (inspirated) wrote : | # |
The new diff uses webservice.
$ bin/test -cvvt xx-person.txt
Running tests at level 1
Running canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Set up canonical.
Running:
lib/lp/
Ran 54 tests with 0 failures and 0 errors in 51.925 seconds.
Tearing down left over layers:
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
Tear down canonical.
| Graham Binns (gmb) wrote : | # |
I'm happy for this to land now. I see some test failures when I run the test locally, but they seem unconnected to your changes, so I'll run it through ec2 test for you and see what comes out the other side.
| Bryce Harrington (bryce) wrote : | # |
kamran, small change needed to address a test failure:
=== modified file 'lib/lp/
--- a/lib/lp/
+++ b/lib/lp/
@@ -656,6 +656,7 @@
start: 0
total_size: 1
---
+ bug_reported_
bug_
display_name: u'...'
distributi
I attempted to land a branch of your branch with this fix added, but it wouldn't go; the branch has to be the one attached to the merge proposal. So if you could please apply this patch and update the branch, we can land it after that.
| Kamran Riaz Khan (inspirated) wrote : | # |
Thanks for the fix, Bryce. The bug_reported_

Hi Kamran,
Thanks for making this change. Unfortunately before changes can be landed in Launchpad they must have tests to cover them. With your changes, the tests suite will at the moment almost certainly fail. You need to alter the existing tests to cover this change.
I haven't had time to run the whole test suite to check which tests fail, but you'll at least need to fix the tests in lib/lp/ registry/ stories/ webservice/ xx-person. txt (you can find out where the failures will be by running bin/test -cvvt xx-person from the root of your LP branch).
I'd be happy to help you with fixing the tests, just ping me in #launchpad-dev on Freenode and if I'm around I'll help you out.