wuvt / wuvt-site

Website including a CMS, playlist information, and donation management tools
https://www.wuvt.vt.edu
GNU Affero General Public License v3.0
11 stars 12 forks source link

/admin/users search #296

Open echarlie opened 7 years ago

echarlie commented 7 years ago

/admin/users list gets very long with many users and multiple auth providers. It should have some search functionality.

mutantmonkey commented 7 years ago

This could be a good introductory task for someone who is already familiar with Python and SQLAlchemy; it should not be particularly difficult and should be a low-risk change.

Tanyaregan commented 6 years ago

Do you still need help with this? if so: What are you searching through, and what do you need located?

echarlie commented 6 years ago

Hi: sorry for taking so long to respond. We're always open to outside contributions.

In /admin/users, we have a list of users; we currently display the fields 'Name' (typically a realname), 'username' (a random string provided by our auth provider, coreos/dex, or a static 'login name' provided for internally-configured users), an email address, and a few other data fields (as per https://github.com/wuvt/wuvt-site/blob/7ba9a84a11a7dfd3577331f583bb6d9ef4d7ee4f/wuvt/templates/admin/users.html#L24-L34).

For example, when I log in through our dex instance with my github account, I show up as:

Name: echarlie
Username: CggxODA0MzQxMxIGZ2l0aHVi 
Email: echarlie@vtluug.org

Ideally, I should be able to search any of these data values, and thus limit the displayed users, but just searching for matches in user.name would be a good start.

Does that answer your questions?