Page MenuHomePhabricator

UserInfoCard: Add data point for active and past blocks to store
Closed, ResolvedPublic

Description

Summary

Add the count of active local blocks from across all wikis and past local blocks to the data store.

Technical notes

  • This task is focused on the backend implementation of making the data available via the service (T386435), not the frontend display
  • TBD

Acceptance criteria

Event Timeline

kostajh renamed this task from UserInfoCard: Data point for active and past blocks to UserInfoCard: Add data point for active and past blocks.Mar 14 2025, 11:47 AM
kostajh renamed this task from UserInfoCard: Add data point for active and past blocks to UserInfoCard: Add data point for active and past blocks to store.
kostajh updated the task description. (Show Details)

We may need something similar to cuci_user cuci_temp_edit but for tracking wikis where a user has been blocked, so we know which wikis to query.

Adding CentralAuth, as the likely place for a central index of active/past local blocks for a given user.

With regards the front-end display, past blocks now appear as a separate line underneath active blocks. This is to avoid confusion as unlike active blocks, the past blocks count is from the local wiki and not from across all wikis.

  • Active blocks count can link to Special:CentralAuth/{username}
  • Past blocks count can link to Special:Log/block filtered to display past blocks

Note: the icon and icon colour changes depending on whether there is a block (alert icon) or no block (notice icon).

image.png (1×2 px, 311 KB)

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

[mediawiki/extensions/CheckUser@master] UserInfoCard: Add data point for count of active blocks

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

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

[mediawiki/extensions/CheckUser@master] UserInfoCard: Add data point for past local blocks

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

Change #1156239 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UserInfoCard: Add data point for count of active blocks

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

Change #1156244 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UserInfoCard: Add data point for past local blocks

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

With regards the front-end display, past blocks now appear as a separate line underneath active blocks. This is to avoid confusion as unlike active blocks, the past blocks count is from the local wiki and not from across all wikis.

  • Active blocks count can link to Special:CentralAuth/{username}
  • Past blocks count can link to Special:Log/block filtered to display past blocks

Note: the icon and icon colour changes depending on whether there is a block (alert icon) or no block (notice icon).

image.png (1×2 px, 311 KB)

Re-opening to address this issue.

Change #1163824 had a related patch set uploaded (by Mimurawil; author: Mimurawil):

[mediawiki/extensions/CheckUser@master] UserInfoCard: Split active and past blocks into separate rows

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

Change #1163824 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UserInfoCard: Split active and past blocks into separate rows

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