Merge lp:~cjwatson/launchpad/queue-api-accept-reject into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Steve Kowalik on 2012-05-30 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15331 | ||||
| Proposed branch: | lp:~cjwatson/launchpad/queue-api-accept-reject | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
232 lines (+120/-7) 4 files modified
lib/lp/soyuz/interfaces/queue.py (+14/-3) lib/lp/soyuz/stories/webservice/xx-packageupload.txt (+1/-0) lib/lp/soyuz/tests/test_packageupload.py (+103/-2) lib/lp/testing/factory.py (+2/-2) |
||||
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/queue-api-accept-reject | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Steve Kowalik (community) | code | 2012-05-30 | Approve on 2012-05-30 |
|
Review via email:
|
|||
Commit Message
Export PackageUpload.id, PackageUpload.
Description of the Change
== Summary ==
This is a small first step towards fixing bug 1006173, to provide an API sufficient to replace scripts/
Most of the rest of the work gets fairly big and complicated, so I split off this initial branch since it has value in itself and I hope it's simple enough to be relatively uncontentious.
== Proposed fix ==
Export PU.acceptFromQueue and PU.rejectFromQueue.
I also exported PU.id while I was there, since that makes it a bit easier to emulate the "queue accept ID" form.
== LOC Rationale ==
+91. I think this is valid because this is part of an arc of work (resourced by Ubuntu Engineering) that will culminate in removing lib/lp/
== Tests ==
bin/test -vvct test_packageupload -t xx-packageuploa
== Demo and Q/A ==
I have a local implementation of a client-side queue tool that could be used to demo this on (I guess, since I need to run the uploader) dogfood, by accepting and rejecting a couple of uploads. It's fairly easy to do this by hand in lp-shell, though: use DistroSeries.

This looks like excellent work and I certainly approve of your overarching plan to nuke scripts/ ftpmaster- tools/queue from orbit.