Page MenuHomePhabricator

Display user rights on SocialProfile
Open, LowPublic

Description

A useful features for users when viewing a user's profile is to know their user rights. The user rights display much like a user's level title and display inline with their level.

This is a feature that had been hacked into Brickimedia's code at https://github.com/Brickimedia/SocialProfile but it would be nice to have it implemented upstream.

Event Timeline

georgebarnick assigned this task to ashley.
georgebarnick raised the priority of this task from to Low.
georgebarnick updated the task description. (Show Details)
georgebarnick added a project: SocialProfile.
georgebarnick changed Security from none to None.
georgebarnick subscribed.
lcawte subscribed.

I have two suggestions, both vary slightly.

The first, perhaps we could introduce a hook to allow features like this to be added upstream without hacking the extension.

Secondly, I'd imagine we don't want every user right available in this area, so perhaps make an array of those we want to be displayed, this allows for custom groups to be added? I'm not entirely sure how the Brickimedia code does this but I'd hope something like that exists.

Secondly, I'd imagine we don't want every user right available in this area, so perhaps make an array of those we want to be displayed, this allows for custom groups to be added? I'm not entirely sure how the Brickimedia code does this but I'd hope something like that exists.

From what I recall, Brickimedia's displayed every right (it also displayed global rights as we use GlobalUserrights). Elaborate on what you mean by custom groups to be added. Do you mean like an array similar to array(sysop,bureaucrat,patroller) that would only display those 3 rights?

From what I recall, Brickimedia's displayed every right (it also displayed global rights as we use GlobalUserrights). Elaborate on what you mean by custom groups to be added. Do you mean like an array similar to array(sysop,bureaucrat,patroller) that would only display those 3 rights?

Either to only allow a set list of groups to be shown on profile, as groups such as emailconfirmed are present, or to manually exclude groups such as emailconfirmed. Some wikis may have their own admin/automaticly added groups that would clutter this lists.

Either to only allow a set list of groups to be shown on profile, as groups such as emailconfirmed are present, or to manually exclude groups such as emailconfirmed. Some wikis may have their own admin/automaticly added groups that would clutter this lists.

On Brickimedia where we have emailconfirmed it never showed up there (never considered that). Maybe since it's in $wgImplicitGroups... But yeah, I understand what you're saying. Best way to do it would probably be to define groups that should be shown using an array of some sort.

This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!

For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)