Page MenuHomePhabricator

Special:ListUsers/XY should be used instead of Special:ListUsers?username=XY
Closed, ResolvedPublic

Description

In analogy to "Special:Contributions/XY" and "Special:Emailuser/XY" it'd be good to use the form "Special:ListUsers/XY" instead of the more complex (and uglier) "Special:ListUsers?username=XY".


Version: unspecified
Severity: enhancement

Details

Reference
bz15146

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:19 PM
bzimport set Reference to bz15146.
bzimport added a subscriber: Unknown Object (MLST).

This won't work for usernames who match named groups, and it will be a little difficult to differentiate between user and group this way. Another method may be feasible, but not possible this way due to named groups.

herd wrote:

This should be easily possible, as is done for Special:Contributions/newbies

If the parameter is lowercase and matches a rights group, assume it is the group. If it doesn't match or starts in upperacse, assume it is a username.

ayg wrote:

This is theoretically doable given that users can't currently have lowercase usernames, but as a long-term solution it's a bad idea (since lower-case usernames are likely to become possible at some point in the future).

However, we could easily distinguish group name URLs by using a character for those that's never going to be acceptable in a user name. For instance, Special:Contributions/[sysop] would be unambiguous. There are probably less ugly-looking options too. Reopening for further consideration.

fran wrote:

Added a new syntax in 39269. Special:Listusers can now be called in three ways:

  • Special:ListUsers/GROUP - if GROUP is a valid group name; the old syntax.
  • Special:ListUsers/USER
  • Special:ListUsers/GROUP/USER

'*' and 'user' can be used as a GROUP for all users.

Thus, a user named 'sysop' can be unambigously specified by e.g. 'Special:ListUsers/*/sysop'.

fran wrote:

Oops, there should've been an 'r' in front of that - r39269 - so you can click to see the revision in question. :)