Comment 1 for bug 282178

Revision history for this message
Steve Beattie (sbeattie) wrote : Re: launchpad api: it is impossible to get a list of a users bugs

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.