Page MenuHomePhabricator

UserInfo card: Active wikis doesn't recognize sister projects
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Find a user who's active on a sister project (not Meta/Commons/Wikidata), eg. Marek Mazurkiewicz, who's active on plwikinews
  • Open UserInfo card for this user (on any wiki)

What happens?:
Sister projects (in this case plwikinews) don't show up in "Active wikis" section. Only projects with database name ending with wiki show up.

If you open the card on a sister projects, the links to Wikipedias will lead to the respective language versions of the sister project (eg. on Wikinews, plwiki will be a link to pl.wikinews.org).

What should have happened instead?:
The sister projects should also be displayed.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

image.png (783×824 px, 119 KB)

This problem is caused by CheckUserUserInfoCardService::getUserInfo, which should use WikiMap::getWiki to map database name into a wiki, instead of trying to map it onto an interwiki prefix.

Event Timeline

mszwarc renamed this task from UserInfo card: Sister projects are not shown in active wikis. to UserInfo card: Active wikis doesn't recognize sister projects.Aug 22 2025, 9:44 AM
mszwarc updated the task description. (Show Details)

Another symptom of this issue – projects in languages that end in i, k or w are incorrectly linked in the Active wikis section or absent from that section. For example:

  • mkwiki gets rtrimmed to m, which links to user contribs on Meta-Wiki, instead of Macedonian Wikipedia
  • newwiki gets rtrimmed to ne, which links to user contribs on Nepali Wikipedia, instead of Newari Wikipedia
  • tkwiki gets rtrimmed to t, which is an unrecognized interwiki target, so this entry will never show up
  • kiwiki gets rtrimmed to an empty string, which is an invalid interwiki target, so this entry will never show up

Change #1188768 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/CheckUser@master] UIC: Resolve dbname using WikiMap and not interwiki

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

Change #1188768 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UIC: Resolve dbname using WikiMap and not interwiki

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

Skip QA on this?

Skip, QA would only repeat what PHPUnit test already does