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

Bug #276789 reported by Abel Deuring
Affects Status Importance Assigned to Milestone
Launchpad itself

Bug Description

sample launchpadlib script:

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

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)
Changed in malone:
assignee: nobody → intellectronica
Jonathan Lange (jml)
summary: - inconsistent results for IBugTarget.serachTasks(has_patch=...)
+ inconsistent results for IBugTarget.searchTasks(has_patch=...)
Curtis Hovey (sinzui)
Changed in malone:
status: New → Triaged
importance: Undecided → Low
description: updated
Curtis Hovey (sinzui)
Changed in malone:
assignee: Tom Berger (intellectronica) → nobody
William Grant (wgrant)
tags: added: api bug-search
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers