Merge lp:~rockstar/launchpad/unsupported-series-recipe-api into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11187 |
Proposed branch: | lp:~rockstar/launchpad/unsupported-series-recipe-api |
Merge into: | lp:launchpad |
Prerequisite: | lp:~rockstar/launchpad/create-recipe-error-messages |
Diff against target: |
518 lines (+120/-112) 10 files modified
database/schema/security.cfg (+2/-0) lib/lp/code/browser/configure.zcml (+2/-2) lib/lp/code/browser/sourcepackagerecipe.py (+4/-36) lib/lp/code/errors.py (+12/-0) lib/lp/code/model/sourcepackagerecipe.py (+22/-2) lib/lp/code/model/tests/test_sourcepackagerecipe.py (+22/-21) lib/lp/code/model/tests/test_sourcepackagerecipe.py.moved (+0/-40) lib/lp/code/model/tests/test_sourcepackagerecipebuild.py (+6/-6) lib/lp/code/vocabularies/sourcepackagerecipe.py (+38/-0) lib/lp/testing/factory.py (+12/-5) |
To merge this branch: | bzr merge lp:~rockstar/launchpad/unsupported-series-recipe-api |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+30397@code.launchpad.net |
Description of the change
This branch fixes bug #607125 - Yesterday, we had a user request builds for distroserieses that we don't have chroots for anymore using the API. At least, we SUSPECT that it was through the API, since the UI prevents this.
Going on the theory that it was through the API and that it's not possible to do through the UI, I took the code that helps the UI show the correct set of distroserieses and moved it to lp.code.
After everything was moved around, I made it so that ISourcePackageR
Once the tests were passing again, I wrote some a webservice test to stop that vector.
If you see random oddness in my branch, it's because I took the liberty of cleaning up some lint I found in 'make lint.' Make lint is also a little brain-dead in thinking that you can't have a single item tuple have a comma without whitespace. I didn't fix those, because I thought that rule was stupid... I'm happy to fix it if you're that hung up on it.
get_buildable_ distroseries_ set could use a docstring - just a little one noting why its not doing the search at the sql layer perhaps?
+ new_distroseries = archive. distribution. getSeries( 'hoary' )
doesn't seem to use your helper function - could it?
copy=n=paste mismatch:
294 + def test_requestBui ldRejectUnsuppo rtedDistroSerie s(self) :
295 + """Build requests are rejected if they exceed quota."""
this :
369 + second_distroseries = \ makeSourcePacka geRecipeDistros eries(" hoary")
370 + self.factory.
is that a change to use another non-sample- data-tied helper?
Generally fine to land, consider these recommendations.
Thanks,
Rob