Closed Bug 670172 Opened 13 years ago Closed 13 years ago

Splinter should add "Review" links in request.cgi lists

Categories

(bugzilla.mozilla.org :: Splinter, defect)

Production
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ted, Assigned: dkl)

References

()

Details

Attachments

(1 file)

I generally use my "Request Queue" via request.cgi to work through my pending reviews. Since I do them all in Splinter nowadays, it would be nice if Splinter added a "Review this patch" link to each entry in the list.
This patch adds a new 'after_attachment' hook to request/queue.html.tmpl to allow Splinter to add a [review] link after a patch's description. I would also need to push the new hook upstream as well. Some changes were needed to request.cgi to add the ispatch attribute to the requests list. 

dkl
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #544903 - Flags: review?(glob)
Comment on attachment 544903 [details] [diff] [review]
Patch to add review link to requests list (v1)

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

r=glob, fix nits on check-in.

this hook really should exist upstream; care you able to file a bug for that?

::: request.cgi
@@ +111,4 @@
>                  flags.status,
>                  flags.bug_id, bugs.short_desc,
>                  products.name, components.name,
> +                flags.attach_id, attachments.description, 

nit: don't need to add a trailing space here

@@ +301,5 @@
>          };
>          push(@requests, $request);
>      }
>  
> +    use Data::Dumper; print STDERR Dumper \@requests;

oops
Attachment #544903 - Flags: review?(glob) → review+
Thanks glob. Nits fixed on checkin. Will file bug for hook.

Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.0
modified request.cgi
added extensions/Splinter/template/en/default/hook/request
added extensions/Splinter/template/en/default/hook/request/queue-after_attachment.html.tmpl
modified template/en/default/request/queue.html.tmpl
Committed revision 7791

dkl
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Depends on: 671803
Did this get reverted somehow? I'm not seeing these links anymore in my request queue.
(In reply to comment #4)
> Did this get reverted somehow? I'm not seeing these links anymore in my
> request queue.

Sigh. The upstream accepted the new template hook but the naming was different and I failed to change it in our customization. I have committed the change now and it should be in the next code push to production.

dkl
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: