Closed
Bug 179881
Opened 22 years ago
Closed 22 years ago
requests link in footer should be 'my requests'
Categories
(Bugzilla :: Attachments & Requests, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: bbaetz, Assigned: myk)
References
Details
Attachments
(2 files, 2 obsolete files)
6.77 KB,
patch
|
bbaetz
:
review+
|
Details | Diff | Splinter Review |
895 bytes,
patch
|
bbaetz
:
review+
|
Details | Diff | Splinter Review |
Theres currently a request link in the footer. It should default to requests where the current user is the requestee. The full current queue is too large to be of use to most people. If we had the ability, makng it list requests made by the user would be good too, but we don't (although a query.cgi option for 'show request queue' would probably be nice, which would then allow 'preset request queries') I'd prefer this to be a general thing, rather than a bmo footer.html.tmpl customisation
Assignee | ||
Comment 1•22 years ago
|
||
Notes: 1. Added "do_union" parameter that changes request query from intersection of filter criteria (requestee=myk AND flag=review) to union (requestee=myk OR flag=review) so we can do "requestee=myk OR requester=myk" and get flags I requested as well as flags that have been requested of me. 2. Turned off column exclusion if we're doing a union since we can no longer guarantee the same value will appear in that column. 3. Added debug output to the template.
Assignee | ||
Updated•22 years ago
|
Attachment #106718 -
Flags: review?(bbaetz)
Reporter | ||
Comment 2•22 years ago
|
||
Comment on attachment 106718 [details] [diff] [review] patch v1: implements feature Err, theres no patch here...
Attachment #106718 -
Flags: review?(bbaetz) → review-
Assignee | ||
Comment 3•22 years ago
|
||
Attachment #106718 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #106732 -
Flags: review?(bbaetz)
Reporter | ||
Comment 4•22 years ago
|
||
Comment on attachment 106732 [details] [diff] [review] err, the real patch v1 >Index: request.cgi >+ #$::FORM{'status'} ||= "?"; >+ #if ($::FORM{'status'} eq "+-") { >+ # push(@criteria, "flags.status IN ('+', '-')"); >+ # push(@excluded_columns, 'status') unless $::FORM{'do_union'}; >+ #} >+ #elsif ($::FORM{'status'} ne "all") { >+ # push(@criteria, "flags.status = '$::FORM{'status'}'"); >+ # push(@excluded_columns, 'status') unless $::FORM{'do_union'}; >+ #} Why is this now disabled? > # Filter results by exact product or component. > if (defined($::FORM{'product'}) && $::FORM{'product'} ne "") { > my $product_id = get_product_id($::FORM{'product'}); > if ($product_id) { >- $query .= " AND bugs.product_id = $product_id"; >- push(@excluded_columns, 'product'); >+ push(@criteria, "bugs.product_id = $product_id"); >+ push(@excluded_columns, 'product') unless $::FORM{'do_union'}; Hmm. This is hacky, but then so is all of this patch :) theres that separate bug on using Bugzilla::Search, I guess. > if (defined($::FORM{'component'}) && $::FORM{'component'} ne "") { > my $component_id = get_component_id($product_id, $::FORM{'component'}); > if ($component_id) { >- $query .= " AND bugs.component_id = $component_id"; >- push(@excluded_columns, 'component'); >+ push(@criteria, "bugs.component_id = $component_id"); >+ push(@excluded_columns, 'component') unless $::FORM{'do_union'}; This is even more hacky, though. As long as there isn't any UI for do_union, I think we can let this live for now. >Index: template/en/default/request/queue.html.tmpl >+ >+[% PROCESS global/header.html.tmpl >+ title="Request Queue" >+ h2=filter_form >+ style = " >+ table.requests th { text-align: left; } >+ table#filter th { text-align: right; } >+ " >+%] >+ Why does this need to be moved? >+[% IF debug %] >+ <p>[% query %]</p> FILTER html
Assignee | ||
Comment 5•22 years ago
|
||
>Why is this now disabled? Because my patch broke it (since it explicitly searches for status='?'), and because there's no UI for it. This version fixes and enables it again. >Why does this need to be moved? It doesn't, it just looked better that way. >FILTER html Fixed.
Attachment #106732 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #106757 -
Flags: review?(bbaetz)
Reporter | ||
Updated•22 years ago
|
Attachment #106732 -
Flags: review?(bbaetz)
Reporter | ||
Comment 6•22 years ago
|
||
Comment on attachment 106757 [details] [diff] [review] patch v2: review fixes Hacky, hacky, hacky :) IF you can find it, add a comment pointing to the bug to make this code use Bugzilla::Search. I can't find it, although I'm reasonably certain that I did file it. Its sort of implied in bug 179489, though, so maybe thats what I'm thinking of.
Attachment #106757 -
Flags: review?(bbaetz) → review+
Assignee | ||
Comment 7•22 years ago
|
||
Checking in template/en/default/global/useful-links.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/useful-links.html.tmpl,v <-- useful-links.html.tmpl new revision: 1.14; previous revision: 1.13 done Checking in request.cgi; /cvsroot/mozilla/webtools/bugzilla/request.cgi,v <-- request.cgi new revision: 1.4; previous revision: 1.3 done Checking in template/en/default/request/queue.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/request/queue.html.tmpl,v <-- queue.html.tmpl new revision: 1.6; previous revision: 1.5 done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 8•22 years ago
|
||
I don't want to be picky but shouldn't this be '&' rather than '&'
> + | <a href="request.cgi?requester=[% email %]&requestee=[% email
%]&do_union=1&group=type">My Requests</a>
Updated•22 years ago
|
Attachment #106782 -
Flags: review?(bbaetz)
Reporter | ||
Comment 9•22 years ago
|
||
Comment on attachment 106782 [details] [diff] [review] Change '&' to to '&' in order to be HTML 4 conform Doh, can't believe I missed that. r=bbaetz
Attachment #106782 -
Flags: review?(bbaetz) → review+
Reporter | ||
Comment 10•22 years ago
|
||
Checked in
Updated•22 years ago
|
Target Milestone: --- → Bugzilla 2.18
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•