Comment 3 for bug 320596

Revision history for this message
Graham Binns (gmb) wrote : Re: [Bug 320596] Re: Series.searchTasks() always returns an empty collection

2009/7/24 Markus Korn <email address hidden>:
> Now that I've access to the code, I understand what's going wrong here.
> The omit_targeted search parameter of the searchTasks() method defaults
> to `True`, which makes sense for searchTasks() in general but not for
> searchTasks() on distro series, because we explicitly query for a target
> here.
> [...]
> I would be more than happy to help to fix this, if somebody could show me the best way to change the default value distro series objects only. Or is it not a bug in launchpad, but in the client (launchpadlib) which has to take care of sensible default values?

This is definitely a bug in Launchpad, not launchpadlib.

I think the best way to fix this would be to define searchTasks() on
IDistroSeriesPublic and make sure that omit_targeted defaulted to True
instead of being copied from IBugTaskSearch.