Merge lp:~stevenk/launchpad/db-spph-ancestry into lp:launchpad/db-devel
Proposed by
Steve Kowalik
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Steve Kowalik | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 10030 | ||||
Proposed branch: | lp:~stevenk/launchpad/db-spph-ancestry | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
172 lines (+48/-7) 7 files modified
database/schema/comments.sql (+2/-1) database/schema/patch-2208-34-0.sql (+8/-0) lib/canonical/launchpad/interfaces/_schema_circular_imports.py (+3/-0) lib/lp/soyuz/interfaces/publishing.py (+9/-1) lib/lp/soyuz/model/publishing.py (+7/-2) lib/lp/soyuz/tests/test_publishing.py (+17/-2) lib/lp/testing/factory.py (+2/-1) |
||||
To merge this branch: | bzr merge lp:~stevenk/launchpad/db-spph-ancestry | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange (community) | Approve | ||
Stuart Bishop (community) | db | Approve | |
Jeroen T. Vermeulen (community) | code | Approve | |
Review via email: mp+41943@code.launchpad.net |
Commit message
[r=jml,
Description of the change
Add an ancestor attribute onto SourcePackagePu
At the moment, nothing makes use of this field, but I wanted to get it into this months rollout.
To post a comment you must log in.
Nicely put!
The code looks good to me. Just a few points:
Looks like it was impossible to set the right schema for ancestor in lib/lp/ soyuz/interface s/publishing. py (diff line 49), so you had to set it to mere Interface instead. When you do that, fix things up in lib/canonical/ launchpad/ interfaces/ _schema_ circular_ imports. py.
Also in lib/lp/ soyuz/interface s/publishing. py, diff line 61/62, the new parameter to newSourcePublic ation defaults to None but the method definition in the interface does not reflect that.
In lib/lp/ soyuz/tests/ test_publishing .py, I don't suppose TestSPPHModel could get away with a lighter test layer such as ZopelessDatabas eLayer? Probably not, but always nice to save a dozen seconds or so on test setup when you can.
Jeroen