Text in the "My Requests" page is misleading about how the AND/OR radio button works

RESOLVED FIXED in Bugzilla 4.4

Status

()

Bugzilla
Attachments & Requests
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Frédéric Buclin, Assigned: Frédéric Buclin)

Tracking

Bugzilla 4.4
Bug Flags:
approval +
approval4.4 +

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

4 years ago
In the "My Requests" page, the description of the AND/OR radio button says:

"The logical conjunction/disjunction between the requester and the requestee"

But in fact, the radio button applies to all fields, not the requester vs requestee fields only. So if you set requester = foo, requestee = bar, product = baz with OR, you get:

requester = foo OR requestee = bar OR product = baz

instead of

(requester = foo OR requestee = bar) AND product = baz

The current behavior is the expected one, as it has been implemented this way in Bugzilla 2.18, see bug 179881. So what's wrong is the description of the radio button which should make clear that it affects all fields.
(Assignee)

Comment 1

4 years ago
Created attachment 772607 [details] [diff] [review]
patch, v1
Assignee: attach-and-request → LpSolit
Status: NEW → ASSIGNED
Attachment #772607 - Flags: review?(glob)
Comment on attachment 772607 [details] [diff] [review]
patch, v1

i've always thought that ui was clumsy; if we're going to change it, let's fix up the wording or make it self-descriptive.

i think it would be clearer to have a <select> instead of a <radio>, with the two options being something like "Show requests matching ALL set fields" and "Show requests matching ANY set fields" (i'm not particularly attached to this wording).

the behaviour of OR isn't a "logical conjunction between fields" as this implies all fields are OR'd.  if you have the requster and requestee set, with all other fields set to any, the results are limited to just "requester OR requestee".

perhaps instead of using Any/all as the default value for the selects, it should be "-" or similar to indicate that field isn't being used as part of the query.
Attachment #772607 - Flags: review?(glob) → review-
(Assignee)

Comment 3

4 years ago
To be honest, the way OR works is really counter-intuitive. I want to track all review requests related to me in the Bugzilla product, so I select product = Bugzilla, flag = review, requester = requestee = LpSolit, and the list I get is totally useless, because everything is OR'ed. IMO, OR only makes sense for the requester vs requestee field. Any objection to change the way it currently works? As there was no UI for AND/OR in the past, I doubt this change affects a lot of people.
(Assignee)

Comment 4

4 years ago
justdave, see my previous comment.
Flags: needinfo?(justdave)
hmmm...  the usecase for that is sort of fulfilled by the dashboard page these days (although that's a bmo extension and not part of core).

In any case, I kinda like the dropdown idea, because that makes it match the UI used for that concept in the custom search section of the search page.

It also seems like only applying it to the requestor and requestee and making everything else be AND anyway would fit the vast majority of the use-cases on there. If we really want to allow ORing those other fields then we need a more-involved UI I think
Flags: needinfo?(justdave)
(Assignee)

Comment 6

4 years ago
Created attachment 790257 [details] [diff] [review]
patch, v2
Attachment #772607 - Attachment is obsolete: true
Attachment #790257 - Flags: review?(dkl)
Comment on attachment 790257 [details] [diff] [review]
patch, v2

Review of attachment 790257 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good and works as expected. r=dkl
Attachment #790257 - Flags: review?(dkl) → review+
(Assignee)

Updated

4 years ago
Flags: approval?
Flags: approval4.4?
Flags: approval?
Flags: approval4.4?
Flags: approval4.4+
Flags: approval+
(Assignee)

Comment 8

4 years ago
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified request.cgi
modified template/en/default/request/queue.html.tmpl
Committed revision 8766.

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.4/
modified request.cgi
modified template/en/default/request/queue.html.tmpl
Committed revision 8616.
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.