Page MenuHomePhabricator

Show internal group name on Special:ListGroupRights
Closed, DuplicatePublic

Description

Is it possible to show internal group names on Special:ListGroupRights? This could be done by adding a new column to the table. Alternatively, appending a parenthesized internal group name to the left column would work too.

The rationale of this request is that AbuseFilter's user_groups variable is an array of internal group names. But these internal group names are really hard to discover (I personally would need to either take a look at a site configuration or extract it from a query string like Special:ListUsers&group=accountcreator). Consequently, several AbuseFilter editors in various Wikimedia projects don't know what are the possible values of the internal group name and incorrectly guess that it could be Confirmed users, admin, etc. AbuseFilter's inadequate documentation definitely shares responsibility, but the first step to fix this problem is to provide a list of internal group names somewhere. Special:ListGroupRights seems to be the best place.

Event Timeline

uselang=qqx can be used to get the system names (i.e. it reveals that "Page movers" are actually group-extendedmover). Does this work?

The goal of this request is to help other Abusefilter editors in various wikis to discover the system names. So while your proposed solution "works", I don't think it's satisfactory.

The goal of this request is to help other Abusefilter editors in various wikis to discover the system names. So while your proposed solution "works", I don't think it's satisfactory.

The query string can be found with the "list of members" link. If it should be shown, how would you like it to be shown? I.e. what should it look like?

Perhaps something like this?

Screen Shot 2019-11-30 at 00.38.56.png (1×2 px, 381 KB)

If you have a better design, I'd be OK with it too.

Okay. Until I can figure out the best way to add this in core, the following js will do the trick for you:

ListGroupRights group names
if ( mw.config.get('wgCanonicalSpecialPageName') === 'Listgrouprights' ) {
	$('.mw-listgrouprights-table tr[id]').each( function () {
		var cell = $( this.childNodes )[1];
		cell.innerHTML = cell.innerHTML.replace('<br>', `<br>${this.id}<br>`);
	} );
}

Change 553791 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Show internal group names on Special:ListGroupRights

https://gerrit.wikimedia.org/r/553791

Removing task assignee due to inactivity, as this open task has been assigned for more than two years. See the email sent to the task assignee on February 06th 2022 (and T295729).

Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.

If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".

Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.

Change 553791 abandoned by Bartosz Dziewoński:

[mediawiki/core@master] Show internal group names on Special:ListGroupRights

Reason:

Done in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/834033

https://gerrit.wikimedia.org/r/553791