912: Provide a better UI for User lists in the admin UI

ciao****@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
April 23, 2009
What's the URL of the page this enhancement relates to, if any?
Select a Review Group for edit. For example, if you have a review group
this is the URL:
https://reviewboard/admin/db/reviews/group/1/

Describe the enhancement and the motivation for it.
Please alphabetize "Users" list. We have hundreds of users and this makes
adding/deleting users to Review Groups very difficult since the Users list
seems to be in a random order. 

A better GUI that doesn't require you to hold down the Control-Key to edit
the Users list would also be very appreciated. I would recommend a GUI
control similar to what is in place on User privileges page. That is, two
lists... the haves and the haves not with arrows to add/remove.


What operating system are you using? What browser?
Both Internet Explorer 7 and Firefox 3 have non-alphabatized list.

Please provide any additional information below.
david
#1 david
  • +Please Alphabetize the list of users in the group admin pages
chipx86
#2 chipx86
This is all part of Django. There's not a whole lot we can do about this without
rewriting large chunks of their admin UI (which there are no plans to do). You'll
need to file a bug against them.
  • +ThirdParty
#3 eric****@gmai***** (Google Code) (Is this you? Claim this profile.)
Django has a filter_horizontal option that makes editing these much nicer.  I just
put up a review that shows a sample of how to do it:

http://reviews.review-board.org/r/840/

As for the sorting, I don't think there's an easy way to do that.  Django used to
have ordering set on the User class, but they removed it for performance reasons. 
You could probably set the form or formset attribute of the Admin class to a custom
form that defines a custom queryset that sets the order for users, but I think that
would be a lot of ugly code.  Plus, the search/filter field that the horizontal
widget has is probably a better way for finding users.
chipx86
#4 chipx86
Hijacking this bug for Eric's change. This is the best we'll probably be able to do.
  • -ThirdParty
    +Fixed
  • -Type-Defect
    +Type-Enhancement
    +Component-Admin
    +Milestone-Release1.0
  • -Please Alphabetize the list of users in the group admin pages
    +Provide a better UI for User lists in the admin UI
  • +chipx86