Page MenuHomePhabricator

Suggested investigations: Provide a link to the contributions page of users in a case
Closed, ResolvedPublic

Description

Summary

Initial feedback from users of CheckUser-SuggestedInvestigations suggests that they would like a link to the contributions page of the user. This could potentially replace the link to the user page if we do not want to add another link.

Background

  • A user investigating a case on CheckUser-SuggestedInvestigations will likely want to review the contributions of a given user before running a check on that user
    • This currently involves a two step process of opening the user page and then clicking on the "User contributions" link in the "Tools" menu
  • It has been proposed that we should add a link to the contributions page for the users that are listed or alternatively replace the user page link with a link to their contributions page
    • If we were to link to the contributions page, we can make it have a red colour to indicate that the account has made no local edits

User story

As a checkuser:

  • Look at an open CheckUser-SuggestedInvestigations case and want to see if the users there are good-faith before running a check on them
  • I click on the link on the username for that user
  • I then click "User contributions" on the user's user page
  • This being two clicks to access what I want to see, especially over many users, adds additional time to my check of this CheckUser-SuggestedInvestigations case

Acceptance criteria

  • A contributions link exists for each user as a tool link next to the username

Event Timeline

Maybe we can enable CheckUser-UserInfoCard for this page, for users who haven't explicitly disabled the feature? That tool provides a number of useful shortcuts and data points that are relevant for viewers of the page.

It is already enabled. As I noted out-of-band,

Izno, somewhere else

Yeah, I have to say this UI is leaning very heavily on the user card. There's a lot of info in those cards that would be good to capture in these tables. I also jumped to age/staleness personally [ed: and contribs, which is why I filed T405674], but I suspect that's because we're all using a staleness script. :D

Think of it this way: there are listings north of 10 users (multiple in the realm of 10^2). Expecting us to click small link 1 and then click a second smaller link 2 for north of 10 users to even start deciding whether there's a worthwhile investigation (because evidence of even one account abusing the service is basically one of the requirements for a check) is a sizeable paper cut.

I suggest we add the contribs link after check user link? Or add it before, whichever is higher priority as a link.

image.png (266×648 px, 22 KB)

Were we to add the link rather than replace the user link (which I am fine with either approach, both have some utility if accounts are tagged which is definitely more English WP-specific than not AFAIK), I'd personally prefer the contributions link first. I currently have not been finding myself using this check user link and instead have been navigating straight from Special:Contributions to Special:CU. (I imagine I probably would with T405653 done but I doubt its placement would be preferably first rather than second given how most of the other interfaces are oriented which is usually contribs near to talk/user links.)

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

[mediawiki/extensions/CheckUser@master] Create SuggestedInvestigationsPagerFactory::createCasePager

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

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

[mediawiki/extensions/CheckUser@master] [WIP] SI: Add contribs links next to usernames in case table rows

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

Proposed format that has been implemented in the patch:

image.png (1×1 px, 171 KB)

Having the "contribs" link for temporary accounts is redundant to the user page link, because temporary accounts have their user contributions page as their user page link. Will ask for input on this.

Change #1214174 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Create SuggestedInvestigationsPagerFactory::createCasesPager

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

Change #1214175 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] SI: Add contribs links next to usernames in case table rows

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

Test status: QA PASS

  • The contribs link is available for all user
  • for no contributions this link is shown in red
  • the color should turn blue when user has made a contribution ( this will be later tested when a user with edits can be simulated )

Dreamy_Jazz updated the task description. (Show Details)