Page MenuHomePhabricator

Don't show over limit checks in the CheckUserLog or remove all over limit entries from enwiki
Closed, ResolvedPublicFeature

Description

On several wikis, such as enwiki, the CheckUserLog has a few entries where the range checked is over the allowed limit of /16 for IPv4. Most are historical, but there are a few recent ones caused by a software bug with how requests for ranges over the limit allowed was handled. When viewing the CheckUserLog these entries do not add any useful info, and for tools that I use on enwiki add a indication that this range has been previously checked.

Ideally these entries should either be hidden when searching by an IP or range, or these entries should be manually removed from the DB as not useful. The second option has been proposed by a checkuser on the checkuser IRC channel.

Event Timeline

++ from me, these historical oversize checks make the CU log less useful since there's a lot of random old /1 and /2 checks in there. I would support either of Dreamy_Jazz's proposed solutions.

I am strongly opposed to removing these entries from the db. The checks were requested, performed, and data returned to the requesting CU. The fact that the CU made a typo and asked for something other than what they intended doesn't change that.

If you wanted to add an option to detect these bogus queries and either flag or hide them in log listings, that might make sense. The default should be to show them. Personally, I don't find them a problem, but if there are CUs for whom the inclusion of these in log listings is annoying, that will give them the functionality they desire. But outright deleting these entries from the logs would be a mistake because it corrupts the audit trail. The log should show what was done, not "that subset of what was done which we think makes sense"

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

[mediawiki/extensions/CheckUser@master] [WIP] Hide large CIDR checks from CheckUserLog

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

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

[mediawiki/extensions/CheckUser@master] Expand tests for populateCulComment.php

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

Change #1219585 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Expand tests for populateCulComment.php

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

Change #1219557 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Hide large CIDR checks from CheckUserLog

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

Tchanders subscribed.

Moving this task to Done, but will leave it open until CheckUserLogMaxRangeToShowInLog is configured for WMF

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

[operations/mediawiki-config@master] CheckUser: Set $wgCheckUserLogMaxRangeToShowInLog

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

Change #1219606 merged by jenkins-bot:

[operations/mediawiki-config@master] CheckUser: Set $wgCheckUserLogMaxRangeToShowInLog

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

Mentioned in SAL (#wikimedia-operations) [2025-12-18T17:19:58Z] <dreamyjazz@deploy2002> Started scap sync-world: Backport for [[gerrit:1219606|CheckUser: Set $wgCheckUserLogMaxRangeToShowInLog (T320769)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-18T17:22:18Z] <dreamyjazz@deploy2002> dreamyjazz: Backport for [[gerrit:1219606|CheckUser: Set $wgCheckUserLogMaxRangeToShowInLog (T320769)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-18T17:26:44Z] <dreamyjazz@deploy2002> Finished scap sync-world: Backport for [[gerrit:1219606|CheckUser: Set $wgCheckUserLogMaxRangeToShowInLog (T320769)]] (duration: 06m 46s)