Comment 2 for bug 127055

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 127055] Re: Filtering on bug assignee A does not work in bug list of bugs related to team B

On Tue, Jul 24, 2007 at 02:14:14PM -0000, Guilherme Salgado wrote:
> This happens because the code ends up doing a search for "Bugs assigned
> to pitti" OR "Bugs owned-by/subscribed-to ubuntu-main-sponsors". We'll
> have a similar problem if you try to filter by bug reporter (as that'll
> generate a search for "Bugs reported by <foo>" OR "Bugs
> subscribed/assigned to <bar>".
>

Strike that -- it's not what happens.

We're in fact doing a search for "Bugs assigned to pitti" UNION "Bugs assigned
to pitti AND subscribed by ubuntu-main-sponsors" UNION "Bugs assigned to pitti
AND reported by ubuntu-main-sponsors". And since there are no bugs which
match the two final clauses we end up with all the bugs assigned to pitti.

> To fix this we need to do a search for "Bugs assigned to pitti AND
> reported by ubuntu-main-sponsors" OR "Bugs assigned to pitti AND to
> which ubuntu-main-sponsors is subscribed to".

This would be the correct fix, still.