Page MenuHomePhabricator

Move information about user edits to a new service
Closed, ResolvedPublic

Description

User::getEditCount
User::getFirstEditTimestamp
User::getLatestEditTimestamp
User::getEditTimestamp
User::initEditCountInternal

should be moved to a new service, perhaps UserEditTracker:

  • Inject a LoadBalancer
  • Inject an ActorMigration

This avoids needing to retrieve the services via MediaWikiServices and is another step towards splitting the User "god object"

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.

Change 598566 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Add a new UserEditTracker service for user edit counts and timing

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

Change 598566 merged by jenkins-bot:
[mediawiki/core@master] Add a new UserEditTracker service for user edit counts and timing

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

Change 601559 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Make use of new UserEditTracker service, deprecate User methods

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

Actual service was merged and is live