Page MenuHomePhabricator

UserInfoCard: Indicate when one of a user's active blocks is on the current wiki
Open, Needs TriagePublic

Description

Summary

The UserInfoCard shows "Active blocks from all wikis: $1" but doesn't say whether one of those blocks applies to the wiki the viewer is on. Per the proposal at https://www.mediawiki.org/wiki/Talk:Product_Safety_and_Integrity/Anti-abuse_signals/User_Info#Suggestion:_when_a_user_is_blocked_locally,_make_it_obvious_that_they_are_blocked_on_the_wiki_you_are_on, it would be nice to add "including on this wiki" or something similar, if the user is blocked on the wiki where the UIC is open.

Acceptance criteria

  • When the user has at least one active block on the current wiki, the active-blocks row makes that clear.
  • When the user has active blocks but none locally, the existing wording is unchanged.

Event Timeline

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

@KieranMcCann-WMF does this work Active blocks from all wikis: 1 (including on this wiki), or is it too wordy?

@KieranMcCann-WMF does this work Active blocks from all wikis: 1 (including on this wiki), or is it too wordy?

"including" can be replaced by the number of local blocks: Active blocks from all wikis: 1 (0 on this wiki)

"including" can be replaced by the number of local blocks: Active blocks from all wikis: 1 (0 on this wiki)

This approach sounds good to me and feels more specific. cc @kostajh

"including" can be replaced by the number of local blocks: Active blocks from all wikis: 1 (0 on this wiki)

This approach sounds good to me and feels more specific. cc @kostajh

Thanks @KieranMcCann-WMF. Would you also want the number (e.g. the second "1" in Active blocks from all wikis: 1 (1 on this wiki)) to link to Special:BlockList filtered to the relevant block on the local wiki?

Thanks @KieranMcCann-WMF. Would you also want the number (e.g. the second "1" in Active blocks from all wikis: 1 (1 on this wiki)) to link to Special:BlockList filtered to the relevant block on the local wiki?

Yes that would make sense to me but let me know if there are any potential issues with that appraoch that I’m not aware of.

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

[mediawiki/extensions/CheckUser@master] UserInfoCard: Indicate when one of a user's active blocks is local

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

Change #1288514 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UserInfoCard: Indicate when one of a user's active blocks is local

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