knob template: scroll down list of users

Greg Hendricks ghendricks at novell.com
Fri Jun 10 16:48:06 UTC 2005


On Friday 10 June 2005 10:16, Colin Ogilvie wrote:
> Martin d'Anjou wrote:
> >Hi,
> >
> >Please tell me if I understand this right. I want the "Reassign bug to"
> >knob to be a pull down menu of all the login_names (or real names) instead
> >of a text box. The way I figured out to do this is the following:
> >
> >1) modify process_bug.cgi and add the list of names to $vars
> >   e.g. get a list of users from the database and
> >   $vars->{'users'} = \@users
> >
> >2) modify the knob.html.tmpl file and build the HTML menu with a
> >   [% FOREACH u = users %] loop.
> >
> >Am I on the right track here? Other suggestions are welcome as well.
>
> In the current CVS tip version, which will become 2.20, there is a
> "usemenuforusers" paramater which will change this for you. You can see
> details in https://bugzilla.mozilla.org/show_bug.cgi?id=251669 which is
> the bug for implementing it.
>
> Colin
>
Just as a note of interest, we tried implementing this a while back and 
quickly decided it was not a good idea for a couple reasons:
1) you have a huge list of email addresses in one place. Huge bait for 
spambots. 
2) if you have a large number of users then you have to download the entire 
user list for every bug you view. In our case it was a significant slow down 
on the page.

Just my US$0.02

We implemented a user lookup that is a popup search box that then queries the 
database and enters the one you choose. Same idea in about as many clicks 
without the overhead :)

-Greg-


> -
> To view or change your list settings, click here:
> <http://bugzilla.org/cgi-bin/mj_wwwusr?user=ghendricks@novell.com>

-- 
Greg Hendricks 
Novell IS&T Engineer 
GHendricks at novell.com 
Office: (801) 861-3481 
www.novell.com



More information about the developers mailing list