Page MenuHomePhabricator

Remove convinence link to "checks by this user" on Special:Contribution pages of temporary accounts
Closed, ResolvedPublic

Description

The CheckUser extension adds a convenience link from Special:Contributions of a user to the list of all checks performed by that user. Temporary accounts cannot have user groups and therefore unless the wiki has set the * user group to have the checkuser right, temporary accounts would not be able to run a check.

Hiding this link will save on space on Special:Contributions and also brings temporary accounts inline with IP addresses.

Acceptance criteria
  • The checks by this user link is not shown on Special:Contributions when viewing the contributions of a temporary account

Event Timeline

Cyndymediawiksim renamed this task from Update CheckUser for IP Masking to Exclude temporary users from being valid initiators for the CheckUser log query.May 11 2023, 3:09 PM
Cyndymediawiksim created this task.

Duplicated by / duplicates T332821? T332821 includes this and another fix that would be needed if temporary accounts are marked as invalid performers (specifically the "checks done by this user" link in Special:Contributions).

Merged T332821 into this task. If this is done, as I've mentioned above, the link highlighted below should be removed from the contributions page of temporary accounts which is needs a different fix.

special-contributions-for-temporary-account-as-checkuser.png (103×1 px, 28 KB)

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

[mediawiki/extensions/CheckUser@master] Treat temporary users as invalid initiators for a check

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

Dreamy_Jazz renamed this task from Exclude temporary users from being valid initiators for the CheckUser log query to Remove convinence link to "checks by this user" on Special:Contribution pages of temporary accounts.Sep 25 2023, 11:10 PM
Dreamy_Jazz updated the task description. (Show Details)
Dreamy_Jazz updated the task description. (Show Details)

Change 956437 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Hide "checks by this user" for temporary accounts

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

Suggested QA steps:

  1. Install the CheckUser extension
  2. Enable temporary account creation (this can be done by adding $wgAutoCreateTempUser['enabled'] = true; to your LocalSettings.php file)
  3. Login to an account with the checkuserlog right (this can be done by giving the account the checkuser group).
  4. Load the contributions page for an account (e.g. http://localhost:8080/wiki/Special:Contributions/Admin)

Verification step 1: Verify that a tool link with the text checks done by this user is shown in the toollinks near the top of the page.

  1. Load the contributions page for a temporary account (e.g. http://localhost:8080/wiki/Special:Contributions/*Unregistered_1)

Verification step 2: Verify that the tool link with the text checks done by this user is not shown.

dom_walden subscribed.

The Checks done by this user link does not appear for temporary users and IPs. It does for regular users.

Test environment: local docker CheckUser 2.5 (45cf5bf) 00:35, 3 October 2023.