add getProcessedData() for uploaded blobs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
High
|
Unassigned |
Bug Description
Right now it is a real pain to write test suites for Apport's launchpad backend, since the bug filing process has lots of AJAXy stuff in between which make it very brittle to automatically file a bug on staging. (It broke a few weeks ago, and I still don't have a real idea how to fix it).
It would be a lot easier if bugs could be filed through launchpadlib. For that, the createBug() method would need to grow an optional argument for specifying a +storeblob handle. This would also solve the problem that you need a valid HTML cookie for the test suite.
Thank you for considering!
Martin
Note: This bug was originally meant to add a new "blob ticket" argument to createBug(), but during the course of this bug something unrelated and different was implemented. The new bug for the original request is bug 604934.
Related branches
- Graham Binns (community): Approve (code)
- Canonical Launchpad Engineering: Pending requested
-
Diff: 168 lines (+84/-5)4 files modifiedlib/canonical/launchpad/database/temporaryblobstorage.py (+19/-3)
lib/canonical/launchpad/interfaces/temporaryblobstorage.py (+4/-0)
lib/canonical/launchpad/pagetests/webservice/xx-temporary-blob-storage.txt (+36/-2)
lib/lp/bugs/tests/test_apportjob.py (+25/-0)
Changed in launchpad-foundations: | |
status: | New → Triaged |
Changed in launchpad-foundations: | |
assignee: | nobody → Bryce Harrington (bryceharrington) |
assignee: | Bryce Harrington (bryceharrington) → nobody |
Changed in malone: | |
assignee: | nobody → Bryce Harrington (bryceharrington) |
Changed in malone: | |
status: | Triaged → In Progress |
Changed in launchpad-foundations: | |
milestone: | none → 10.06 |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in malone: | |
status: | Fix Committed → Fix Released |
Changed in malone: | |
milestone: | 10.07 → 10.08 |
Apport is one of our most critical webservice users. Making it easier for apport to be more robust in this way seems like a high priority if it can be done reasonably quickly.
Since it would also help Martin make an apport test suite that LP could use for QA and maybe even automated tests, I'm even more interested.
Deryck, Leonard, is there a quick and reasonable way to expose adding a blob to a bug?
Thank you.