Launchpad lib gives wrong results when searching tasks with a given status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Triaged
|
Low
|
Unassigned |
Bug Description
I was trying to use launchpadlib to search for all bugs (with a certain status) with tags "blocks-hwcert" and "precise" in Ubuntu.
This is what I did:
First, without status:
ubuntu = launchpad.
tasks = ubuntu.
for task in tasks:
....: print task.bug
https:/
https:/
https:/
https:/
print tasks[3].status
Incomplete
Then with status:
search_status = ["New",
tasks = ubuntu.
for task in tasks:
....: print task.bug
https:/
https:/
https:/
========== Expected results ==================
The Incomplete tasks also show in the second query, as Incomplete was explicitly marked for the search
Changed in launchpadlib: | |
status: | Confirmed → Triaged |
Can't reproduce this. Note that tasks[3] is currently 'Confirmed'. Perhaps its status changed while testing.
>>> ubuntu = lp.distribution s['ubuntu' ] searchTasks( tags=[' precise' , 'blocks-hwcert'], tags_combinator ="All") /api.launchpad. net/devel/ bugs/830949 /api.launchpad. net/devel/ bugs/888219 /api.launchpad. net/devel/ bugs/834731 /api.launchpad. net/devel/ bugs/926136 "Incomplete" ,"Confirmed" ,"Triaged" ,"In Progress","Fix Committed"] searchTasks( tags=[' precise' , 'blocks-hwcert'], tags_combinator ="All") /api.launchpad. net/devel/ bugs/830949 /api.launchpad. net/devel/ bugs/888219 /api.launchpad. net/devel/ bugs/834731 /api.launchpad. net/devel/ bugs/926136
>>> tasks = ubuntu.
>>> for task in tasks:
... print task.bug
...
https:/
https:/
https:/
https:/
>>> print tasks[3].status
Confirmed
>>> search_status = ["New",
>>>
>>> tasks2 = ubuntu.
>>> for task in tasks2:
... print task.bug
...
https:/
https:/
https:/
https:/