Page MenuHomePhabricator

Button to select all/none/invert selection on CheckUser "get users" screen
Closed, ResolvedPublic

Description

When we "get users", we obtain a list of accounts that match a certain IP or CIDR preceded by a checkbox so we can submit it for blocking or global locking. However it'd be useful if all the checkboxes could be (de)selected at once so we don't have to go on checking, specially for prolific sockpuppetteers. Something tells me that this might be done via a JavaScript hack, but I don't know anything about JS. Thanks.

Event Timeline

Note that in the meantime, almost everywhere in MediaWiki, you can select a range of checkboxes by clicking the first one, then holding the Shift key and clicking the last one.

Note that in the meantime, almost everywhere in MediaWiki, you can select a range of checkboxes by clicking the first one, then holding the Shift key and clicking the last one.

That option doesn't work here either :-(

Note that in the meantime, almost everywhere in MediaWiki, you can select a range of checkboxes by clicking the first one, then holding the Shift key and clicking the last one.

That option doesn't work here either :-(

It works for me.

This implemented in core for users with the suppress right on Special:History. Perhaps this could be ported over.

Change 808372 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Add All/None/Invert checkbox options for 'Get users' in CheckUser

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

Dreamy_Jazz triaged this task as Low priority.

Used core's ListToggle class that is used for suppressors. Works well and does not interfere with the checkuserblock form (i.e. pressing the options does not effect the checkboxes in the checkuserblock form).

Change 808372 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Add All/None/Invert checkbox options for 'Get users' in CheckUser

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

Dreamy_Jazz moved this task from Patches for review to Done on the CheckUser board.

Will be in the next train.