bug search form filters interact poorly with context filters on the same fields

Bug #127055 reported by Daniel Holbach
16
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

https://bugs.launchpad.net/~ubuntu-main-sponsors/+bugs?field.assignee=pitti should list all the bugs related to the team ubuntu-main-sponsors that have pitti as their assignee. Unfortunately the "~ubuntu-main-sponsors" bit seems to be disregarded completely.

Christian Reis (kiko)
Changed in malone:
importance: Undecided → Medium
status: New → Triaged
Changed in malone:
assignee: nobody → salgado
Revision history for this message
Guilherme Salgado (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>".

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".

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.

Changed in malone:
assignee: salgado → matsubara
status: Triaged → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Re: Filtering on bug assignee A does not work in bug list of bugs related to team B

Bjorn will re-assign to someone else.
The branch: bzr+ssh://devpad.canonical.com/code/matsubara/launchpad/bug-127055
contains a couple of tests and a partial fix.

Changed in malone:
assignee: matsubara → nobody
status: In Progress → Triaged
Jonathan Knowles (jsk)
Changed in malone:
assignee: nobody → jsk
Jonathan Knowles (jsk)
Changed in malone:
milestone: 1.1.10 → 1.1.11
Christian Reis (kiko)
Changed in malone:
milestone: 1.1.11 → 1.2.1
Christian Reis (kiko)
Changed in malone:
assignee: jsk → intellectronica
Changed in malone:
milestone: 1.2.1 → 1.2.3
Revision history for this message
Diogo Matsubara (matsubara) wrote :

As seen in bug #187897 the same issue happens when searching for subscriber

Changed in malone:
milestone: 1.2.3 → 1.2.4
Changed in malone:
milestone: 1.2.4 → 1.2.6
Revision history for this message
Björn Tillenius (bjornt) wrote :

Untargeting this for now to help with planning. Will retarget it later.

Changed in malone:
milestone: 1.2.6 → none
Curtis Hovey (sinzui)
Changed in malone:
assignee: Tom Berger (intellectronica) → nobody
Changed in launchpad:
importance: Medium → Wishlist
importance: Wishlist → Low
summary: - Filtering on bug assignee A does not work in bug list of bugs related to
- team B
+ bug search form filters interact poorly with context filters on the same
+ fields
William Grant (wgrant)
tags: added: bugs
William Grant (wgrant)
tags: added: bug-search
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.