Comment 3 for bug 137278

Revision history for this message
Markus Korn (thekorn) wrote :

I think Daniel's suggestion has been implemented by adding bug.has_target() (Bug 137434)

But I think the real problem is that Cesare wants to have a list of all Tasks and BugList currently returns a list of all Bugs, having a list of all tasks is useful in many cases.

I propose to add an additional (optional) argument 'all_tasks' to BugList:
 * BugList("https://bugs.launchpad.net/~ubuntu-universe-sponsors", all_tasks=True) would return list as expected by Cesare
 * BugList("https://bugs.launchpad.net/~ubuntu-universe-sponsors") would return the current state

We could also wrap around this 'all_tasks'-thing by adding a 'TaskList'-function:
TaskList("https://bugs.launchpad.net/~ubuntu-universe-sponsors") == BugList("https://bugs.launchpad.net/~ubuntu-universe-sponsors", all_tasks=True)

Markus