Merge lp://qastaging/~jcsackett/launchpad/bugfix-612408 into lp://qastaging/launchpad
Proposed by
Curtis Hovey
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Curtis Hovey | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 11310 | ||||
Proposed branch: | lp://qastaging/~jcsackett/launchpad/bugfix-612408 | ||||
Merge into: | lp://qastaging/launchpad | ||||
Diff against target: |
66 lines (+25/-3) 3 files modified
lib/lp/registry/model/sourcepackage.py (+2/-0) lib/lp/registry/tests/test_sourcepackage.py (+21/-0) lib/lp/soyuz/tests/test_publishing.py (+2/-3) |
||||
To merge this branch: | bzr merge lp://qastaging/~jcsackett/launchpad/bugfix-612408 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+31599@code.qastaging.launchpad.net |
Commit message
Handles situations where summary is requested in sp and dsp with no publication history. Previously if summary was called for a package without history, an oops was the result.
Description of the change
During the preimplementation discussion, the cause of the error was discovered in the model and that it is possible for there to be a sourcepackagere
The fix was to convert the empty list to None in the return. Additional test coverage was added to verify the 3 conditions that SourcePackage.
To post a comment you must log in.
Launcpad wraps code at 78 characters so that it can be quoted in email. Run `make lint` to verify that files are okay.