Page MenuHomePhabricator

Link to Special:GlobalContributions page from IP Info
Closed, ResolvedPublic1 Estimated Story Points

Description

User story

As an editor investigating an IP for cross-wiki abuse, I'd like to easily find and view global contributions for an IP address, in order to assess and mitigate cross-wiki vandalism.

Motivation

Once our team's work on CheckUser-GlobalContributions is complete, it would be useful to link to that special page from IP Info to allow users to view global contributions for a given temp account.

Design

gc-link.png (1×1 px, 106 KB)

Specifications

Event Timeline

kostajh set the point value for this task to 1.Oct 28 2024, 10:46 AM
mszabo changed the task status from Open to In Progress.Oct 30 2024, 5:28 PM
mszabo claimed this task.
mszabo triaged this task as Medium priority.

Change #1085580 had a related patch set uploaded (by Máté Szabó; author: Máté Szabó):

[mediawiki/extensions/CheckUser@master] Unify temporary account-related permission checks

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

Change #1085580 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Unify temporary account-related permission checks

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

mszabo changed the task status from In Progress to Open.Nov 18 2024, 10:43 AM
mszabo removed mszabo as the assignee of this task.
mszabo subscribed.

@KColeman-WMF @Niharika Do we need to check the local IP reveal rights at each wiki before showing the global contribution count? If so then we think it might be difficult to add the count line, since the permissions calls are expensive and error-prone (see also T384717).

Assumption: only those who meet T356294: Restrict which groups have access to Special:GlobalContributions will see Global Contributions section on IP Infobox

This would also have a similar problem in that we'd need to check the permissions of the user on each wiki where the IP has edited, to check whether they have IP reveal rights on at least one of them. Instead, could we just add the link for everyone? (The error messages on Special:GlobalContributions explain the situation if a user doesn't have the rights.)

I spoke to @KColeman-WMF who is happy to spin out the number of global contributions to a new task, which I will file separately.

Change #1119079 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/IPInfo@master] Add link to Special:GlobalContributions on the infobox

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

@KColeman-WMF Now that we're not showing the edit count, I'm wondering if we could just add this link in the same place where we already add the links to the the other global contributions tools - in the Contributions section:

image.png (654×1 px, 105 KB)

In fact, since Special:GlobalContributions isn't useful for legacy IP addresses, I wonder if we could do the following:

  • When on Special:Contributions or Special:DeletedContributions legacy mode, only add the GUC and XTools links
  • When on Special:Contributions or Special:DeletedContributions temp IP edits mode, add the Special:GlobalContributions link
  • When on Special:IPContributions, add the Special:GlobalContributions link

@KColeman-WMF Now that we're not showing the edit count, I'm wondering if we could just add this link in the same place where we already add the links to the the other global contributions tools - in the Contributions section:

image.png (654×1 px, 105 KB)

In fact, since Special:GlobalContributions isn't useful for legacy IP addresses, I wonder if we could do the following:

  • When on Special:Contributions or Special:DeletedContributions legacy mode, only add the GUC and XTools links
  • When on Special:Contributions or Special:DeletedContributions temp IP edits mode, add the Special:GlobalContributions link
  • When on Special:IPContributions, add the Special:GlobalContributions link

@Tchanders Yes, this makes perfect sense to me.

Change #1120125 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/CheckUser@master] Add link to Special:GlobalContributions to IPInfo's infobox

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

Change #1119079 abandoned by STran:

[mediawiki/extensions/IPInfo@master] Add link to Special:GlobalContributions on the infobox

Reason:

prefer I92a7d97e3269b93f8aa455c4e8d971cc47115e24

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

Change #1120125 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Add link to Special:GlobalContributions to IPInfo's infobox

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

dom_walden subscribed.

I see a link to Special:GlobalContributions on Special:Contributions for temporary accounts and on Special:IPContributions for IPs.

Test environment: local docker IP Info 0.0.0 (e04be97) 17:32, 5 March 2025.

Change #1145188 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/CheckUser@master] Update message keys to be consistent

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

Change #1145188 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Update message keys to be consistent

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