Page MenuHomePhabricator

UserInfoCard: Add link to view XTools
Closed, ResolvedPublic

Description

Summary

Users have requested that we add a link to XTools for a given user in the menu for the UserInfoCard feature

Technical notes

We should add a config flag for "wgCheckUserUserInfoCardShowXToolsLink", and set this to true for WMF wikis, but false by default.

Acceptance criteria

  • "View XTools" appears and links to https://xtools.wmcloud.org/ec/{project}/{username}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Thank you for tagging this task with good first task for Wikimedia newcomers!

Newcomers often may not be aware of things that may seem obvious to seasoned contributors, so please take a moment to reflect on how this task might look to somebody who has never contributed to Wikimedia projects.

A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor, for example it should clearly point to the codebase URL and provide clear steps to help a contributor get set up for success. We've included some guidelines at https://phabricator.wikimedia.org/tag/good_first_task/ !

Thank you for helping us drive new contributions to our projects <3

Cappybaraa subscribed.

I will be claiming this task and uploading the patches for review shortly.

@Cappybaraa if this task doesn't seem like a good one for you to work on, please unassign yourself from it so someone else can work on it. If you have questions about how to implement this, please feel free to ask here. Thank you!

@kostajh Hey I've pushed patch please review it.

@3MindedScholar Hi, please do not ping, and please follow https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines so the patch will automatically be connected and mention in this task anyway. Thanks.

Change #1195017 had a related patch set uploaded (by Kosta Harlan; author: 3MindedScholar):

[mediawiki/extensions/CheckUser@master] CheckUser: Add optional "View XTools" link in User Info Card menu

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

Patch has been merged, we don't have QA capacity in Product Safety and Integrity so will move to Done and resolve

Actually we will need to set $wgCheckUserUserInfoCardShowXToolsLink = true; on WMF wikis. I will make a patch for that now

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

[operations/mediawiki-config@master] CheckUser UserInfoCard: Enable XTools menu link on SUL wikis

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

Change #1196914 merged by jenkins-bot:

[operations/mediawiki-config@master] CheckUser UserInfoCard: Enable XTools menu link on SUL wikis

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

Mentioned in SAL (#wikimedia-operations) [2025-10-21T12:38:35Z] <dreamyjazz@deploy2002> Started scap sync-world: Backport for [[gerrit:1197278|Define CheckUser Suggested Investigations event stream (T404177)]], [[gerrit:1196914|CheckUser UserInfoCard: Enable XTools menu link on SUL wikis (T406012)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-21T12:42:57Z] <dreamyjazz@deploy2002> dreamyjazz: Backport for [[gerrit:1197278|Define CheckUser Suggested Investigations event stream (T404177)]], [[gerrit:1196914|CheckUser UserInfoCard: Enable XTools menu link on SUL wikis (T406012)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-10-21T12:50:17Z] <dreamyjazz@deploy2002> Finished scap sync-world: Backport for [[gerrit:1197278|Define CheckUser Suggested Investigations event stream (T404177)]], [[gerrit:1196914|CheckUser UserInfoCard: Enable XTools menu link on SUL wikis (T406012)]] (duration: 11m 42s)

Dreamy_Jazz updated the task description. (Show Details)

Verified this worked on testwiki where the wikiversion is deployed that has the code. Resolving this ticket

No problem, @kostajh. Open source is all about providing meaningful contributions, and I learned a lot of things.