inconsistent results for IBugTarget.searchTasks(has_patch=...)

Bug #276789 reported by Abel Deuring on 2008-10-01
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Unassigned

Bug Description

sample launchpadlib script:

ubuntu = launchpad.distributions['ubuntu']
milestone = ubuntu.active_milestones[6]
print milestone.name

with_patch = milestone.searchTasks(has_patch=True)[:100]
no_patch = milestone.searchTasks(has_patch=False)[:100]

no_patch_set = set(x.self_link for x in no_patch)
with_patch_set = set(x.self_link for x in with_patch)

print "len no patch / set no patch", len(no_patch), len(no_patch_set)
print "len with patch / set with patch", len(with_patch), len(with_patch_set)
print "intersection no/with patch", no_patch_set.intersection(with_patch_set)

The list with_patch contains some duplicate results; the intersection of with_patch_set and no_patch_set is not empty.

This inconsistency occurs too for calls of searchTasks(has_patch="true") on distributions and products.

Abel Deuring (adeuring) on 2008-10-01
Changed in malone:
assignee: nobody → intellectronica
Jonathan Lange (jml) on 2009-09-15
summary: - inconsistent results for IBugTarget.serachTasks(has_patch=...)
+ inconsistent results for IBugTarget.searchTasks(has_patch=...)
Curtis Hovey (sinzui) on 2010-01-18
Changed in malone:
status: New → Triaged
importance: Undecided → Low
description: updated
Curtis Hovey (sinzui) on 2010-06-01
Changed in malone:
assignee: Tom Berger (intellectronica) → nobody
William Grant (wgrant) on 2015-09-11
tags: added: api bug-search
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers