Closed
Bug 331925
Opened 20 years ago
Closed 14 years ago
Unable to use pronouns (%user%, %reporter%, ...) in boolean charts when searching for the flag requestee or the flag setter
Categories
(Bugzilla :: Query/Bug List, enhancement)
Bugzilla
Query/Bug List
Tracking
()
RESOLVED
FIXED
Bugzilla 4.4
People
(Reporter: altlist, Assigned: LpSolit)
References
()
Details
(Whiteboard: [wanted-bmo])
Attachments
(1 file, 1 obsolete file)
|
760 bytes,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
I'm unable to use the %user% pronoun when searching for a flag requestee or flag setter. I thought this would be an easy fix, something like below. However, I don't know how the "$1" gets set when calculating the pronoun id value.
--- Bugzilla/Search.pm 2005-12-01 17:54:39.000000000 -0800
+++ Bugzilla/Search.pm 2006-03-27 18:03:27.000000000 -0800
@@ -834,6 +834,13 @@
"ON $flags.requestee_id = requestees_$chartid.userid");
$f = "requestees_$chartid.login_name";
},
+ "^setters.login_name,(?:equals|anyexact),(%\\w+%)" => sub {
+ my $flags = "flags_$chartid";
+ push(@supptables, "LEFT JOIN flags AS $flags " .
+ "ON bugs.bug_id = $flags.bug_id " .
+ "AND $flags.is_active = 1");
+ $term = "$flags.setter_id = " . pronoun($1,$user);
+ },
"^setters.login_name," => sub {
my $flags = "flags_$chartid";
push(@supptables, "LEFT JOIN flags AS $flags " .
Reproducible: Always
Steps to Reproduce:
this hit me, and it's very annoying.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Updated•18 years ago
|
Severity: normal → enhancement
Comment 3•17 years ago
|
||
(In reply to comment #1)
> this hit me, and it's very annoying.
I'm attempting to setup a saved query for whining for the AMO team and flag_requestee goes unnoticed the most. So... +1.
Comment 4•17 years ago
|
||
(In reply to comment #0)
> However, I don't know how the "$1" gets set when calculating the pronoun id
> value.
The $1 is the result of the regex grouping "(%\\w+%)", which would be "%blah%".
Comment 5•17 years ago
|
||
Here's an untested port of the patch in comment #0 to current tip.
Assignee: query-and-buglist → reed
Status: NEW → ASSIGNED
Comment 6•17 years ago
|
||
I have this up on https://landfill.bugzilla.org/331925/ for testing. My test link is https://landfill.bugzilla.org/331925/buglist.cgi?query_format=advanced&field0-0-0=setters.login_name&type0-0-0=equals&value0-0-0=%25user%25, but it isn't working. Any assistance would be appreciated!
| Assignee | ||
Updated•15 years ago
|
Summary: Unable to use %user% when searching for flag_requestee or flag_setter → Unable to use pronouns (%user%, %reporter%, ...) in boolean charts when searching for the flag requestee or the flag setter
| Assignee | ||
Updated•15 years ago
|
| Assignee | ||
Comment 8•14 years ago
|
||
Must be applied on top of bug 574577.
Assignee: reed → LpSolit
Attachment #358987 -
Attachment is obsolete: true
Attachment #580449 -
Flags: review?(mkanat)
| Assignee | ||
Updated•14 years ago
|
Target Milestone: --- → Bugzilla 5.0
| Assignee | ||
Updated•14 years ago
|
Attachment #580449 -
Flags: review?(wicked)
| Assignee | ||
Comment 9•14 years ago
|
||
And before mkanat asks, yes, all xt tests pass. :) But I'm a bit disappointed that this doesn't fix some TODO tests. :( Does it mean xt tests didn't add such tests in the TODO list?
| Assignee | ||
Updated•14 years ago
|
Attachment #580449 -
Flags: review?(wicked)
Attachment #580449 -
Flags: review?(mkanat)
Attachment #580449 -
Flags: review?(dkl)
Comment 10•14 years ago
|
||
Comment on attachment 580449 [details] [diff] [review]
patch, v2
Review of attachment 580449 [details] [diff] [review]:
-----------------------------------------------------------------
Works as expected. r=dkl
Attachment #580449 -
Flags: review?(dkl) → review+
| Assignee | ||
Updated•14 years ago
|
Flags: approval+
| Assignee | ||
Comment 11•14 years ago
|
||
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Search.pm
Committed revision 8120.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 12•14 years ago
|
||
(In reply to Frédéric Buclin from comment #9)
> And before mkanat asks, yes, all xt tests pass. :) But I'm a bit
> disappointed that this doesn't fix some TODO tests. :( Does it mean xt tests
> didn't add such tests in the TODO list?
Yeah, xt isn't testing the pronouns. It really ought to be; that would be a worthwhile xt enhancement.
| Assignee | ||
Comment 13•13 years ago
|
||
Added to relnotes for 4.4.
You need to log in
before you can comment on or make changes to this bug.
Description
•