Merge lp:~wgrant/launchpad/sprb-new-model-columns into lp:launchpad/db-devel
Proposed by
William Grant
on 2010-02-12
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Tim Penhey on 2010-02-21 | ||||||||
| Approved revision: | not available | ||||||||
| Merged at revision: | not available | ||||||||
| Proposed branch: | lp:~wgrant/launchpad/sprb-new-model-columns | ||||||||
| Merge into: | lp:launchpad/db-devel | ||||||||
| Prerequisite: | lp:~wgrant/launchpad/sprbu-columns-to-sprb | ||||||||
| Diff against target: |
355 lines (+89/-61) 9 files modified
.bzrignore (+1/-0) database/sampledata/current-dev.sql (+0/-7) database/sampledata/current.sql (+0/-7) database/schema/security.cfg (+0/-2) lib/lp/buildmaster/model/buildbase.py (+29/-1) lib/lp/code/model/sourcepackagerecipebuild.py (+13/-19) lib/lp/soyuz/doc/build.txt (+1/-1) lib/lp/soyuz/model/build.py (+1/-24) lib/lp/soyuz/tests/test_build.py (+44/-0) |
||||||||
| To merge this branch: | bzr merge lp:~wgrant/launchpad/sprb-new-model-columns | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Julian Edwards (community) | 2010-02-12 | Approve on 2010-02-15 | |
|
Review via email:
|
|||
Commit Message
Drop SourcePackageRe
To post a comment you must log in.
| William Grant (wgrant) wrote : | # |
| Julian Edwards (julian-edwards) wrote : | # |
Looks good, thanks for this. Just a couple of comments:
1. s/exist/exists/ in the assertion text message.
2. You get brownie points if you can remove the commit from the tests - we found out that they slow the tests down massively so now I am on a jihad against them. Try using store.flush() or if that fails, try store.commit() as it's a bit closer to the metal than transaction.
review:
Approve

This branch extends the prerequisite DB branch by adding the new dependencies, upload_log and pocket columns to the SourcePackageRe cipeBuild model class. It also moves Build.storeUplo adLog onto BuildBase, where it can be used by SPRB.
I had to alter BuildBase. storeBuildInfo to explicitly turn the dependencies str into a unicode, since plain Storm is less forgiving than its SQLObject compatibility layer. Since the method didn't appear to be tested anywhere, I've added some unit tests for the dependencies behaviour.