Page MenuHomePhabricator

Update UserEditTracker to support users from remote wikis
Closed, ResolvedPublic

Description

Currently, UserEditTracker can only return information about users from the current wiki. However, for T407889: Update UserRequirementsConditionChecker to handle target users for UserGroupAssignmentService we will need it to be able to query the same data from remote wiki database.

Acceptance criteria

  • UserEditTracker::getUserEditCount can be invoked with a remote user and returns the number of edits performed by this user on the target wiki
  • UserEditTracker::getUserEditTimestamp can be invoked with a remote user and returns the timestamp based on contributions on the target wiki
  • The cache keys in UserEditTracker are updated to reflect the wiki id as well

Details

Event Timeline

(I'm not working on it yet, so unassigning in case someone else wants to start it earlier)

mszwarc changed the task status from Open to In Progress.Oct 24 2025, 10:20 AM
mszwarc claimed this task.

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

[mediawiki/core@master] UserEditTracker: Support users from remote wikis

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

Change #1198519 merged by jenkins-bot:

[mediawiki/core@master] UserEditTracker: Support users from remote wikis

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