Merge lp:~cjwatson/launchpad/queue-api-fix-urls into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Steve Kowalik | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 15607 | ||||
Proposed branch: | lp:~cjwatson/launchpad/queue-api-fix-urls | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
356 lines (+141/-17) 8 files modified
lib/lp/soyuz/browser/configure.zcml (+4/-0) lib/lp/soyuz/browser/queue.py (+10/-1) lib/lp/soyuz/configure.zcml (+1/-0) lib/lp/soyuz/interfaces/queue.py (+17/-0) lib/lp/soyuz/interfaces/sourcepackagerelease.py (+15/-0) lib/lp/soyuz/model/queue.py (+29/-9) lib/lp/soyuz/model/sourcepackagerelease.py (+13/-0) lib/lp/soyuz/tests/test_packageupload.py (+52/-7) |
||||
To merge this branch: | bzr merge lp:~cjwatson/launchpad/queue-api-fix-urls | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Kowalik (community) | code | Approve | |
Review via email: mp+113776@code.launchpad.net |
Commit message
Fix source, binary, and custom URLs returned by PackageUpload methods.
Description of the change
== Summary ==
Following the deployment of https:/
== Proposed fix ==
Source and custom files should be served directly from the librarian rather than being proxied through an Archive context. Archive.
Binary files should be served from a BinaryPackageBuild context, not Archive. This matches how they're served from +build pages (e.g. https:/
This time, rather than just having the tests check the URLs which obviously wasn't good enough, I arranged for them to actually try to open the files.
== LOC Rationale ==
+27. So far, including this branch, this arc of work has come in at +805. The final branch of the arc will remove the queue tool, all its works, and all its empty promises, currently amounting to -1955. This is therefore very comfortably ahead, even if I find more things I need to fix after this.
== Tests ==
bin/test -vvct TestPackageUplo
== Demo and Q/A ==
The queue API client is now in lp:ubuntu-archive-tools: use it to fetch source, binary, and custom files, and make sure they come back as real files and not error pages.