Make IPerson an IHasBugs and make sure calling searchTasks on it works
Bug #282178 reported by
Markus Korn
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Markus Korn |
Bug Description
The web UI gives me different list of bugs related to a user like:
* https:/
* https:/
* https:/
* https:/
* https:/
Please expose these lists for the API too.
Markus
Related branches
lp:~thekorn/launchpad/make_iperson_ihasbugs
Merged
into
lp:launchpad
- Gavin Panella (community): Approve
- Markus Korn (community): Needs Resubmitting
- Eleanor Berger (community): Approve (code)
-
Diff: 975 lines (+372/-88)22 files modifiedlib/canonical/launchpad/interfaces/_schema_circular_imports.py (+55/-2)
lib/canonical/launchpad/interfaces/message.py (+4/-6)
lib/lp/bugs/doc/bugtask-search.txt (+12/-1)
lib/lp/bugs/interfaces/bug.py (+5/-6)
lib/lp/bugs/interfaces/bugtarget.py (+20/-18)
lib/lp/bugs/interfaces/bugtask.py (+9/-2)
lib/lp/bugs/interfaces/bugtracker.py (+1/-2)
lib/lp/bugs/interfaces/bugwatch.py (+1/-2)
lib/lp/bugs/model/bugtask.py (+46/-2)
lib/lp/bugs/stories/webservice/xx-bug.txt (+74/-4)
lib/lp/registry/configure.zcml (+2/-0)
lib/lp/registry/interfaces/distribution.py (+0/-7)
lib/lp/registry/interfaces/distributionsourcepackage.py (+4/-3)
lib/lp/registry/interfaces/distroseries.py (+5/-3)
lib/lp/registry/interfaces/milestone.py (+3/-2)
lib/lp/registry/interfaces/person.py (+2/-13)
lib/lp/registry/interfaces/product.py (+0/-7)
lib/lp/registry/interfaces/productseries.py (+3/-2)
lib/lp/registry/interfaces/project.py (+3/-2)
lib/lp/registry/interfaces/sourcepackage.py (+3/-2)
lib/lp/registry/model/person.py (+18/-2)
lib/lp/registry/tests/test_person.py (+102/-0)
Changed in malone: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in malone: | |
milestone: | none → 2.2.2 |
Changed in malone: | |
milestone: | 2.2.2 → none |
Changed in malone: | |
assignee: | nobody → Markus Korn (thekorn) |
Changed in malone: | |
milestone: | none → 10.02 |
Changed in malone: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This bug, in combination with bug 314432 and bug 320596 make it difficult for people involved with Stable Release Updates (SRUs) for Ubuntu to use the launchpad api for tools. Typically, SRUs are fixed in the development (master) task first and then get targeted tasks opened for past releases. An example bug would be bug 208695, where (currently) the master and intrepid tasks are status Won't Fix, but the hardy task is status Fix Committed.
There will usually be one or more teams subscribed to the SRU bug, but because of this bug's missing functionality, we can't just ask for all the open bugs the particular team is susbscribed to.
Because of bug 314432 and the fact that the master task has usually been closed, launchpad. distributions[ 'ubuntu' ].searchTasks( bug_subscriber= TEAM) doesn't give us all the open bugs; i.e. the example bug 208695 does not show up on the list.
Because of bug 320596, launchpad. distributions[ 'ubuntu' ].series cannot be iterated over with searchTasks( bug_subscriber= TEAM) calls, because they always return an empty result.
I have not yet tried doing iterated queries over distributions[ 'ubuntu' ].searchTasks( ) with each of the closed states as parameters and then getting all of the related_tasks out of each to find the ones I want, but even if it works, it will request lots of tasks from launchpad (including all of the historical SRUs that have already been processed) and seems an extraordinarily inefficient means of collecting this information.
Thanks.