Page MenuHomePhabricator

Implement a way to get a date when user was locked
Closed, ResolvedPublic

Description

For T401128: Indicate global (b)locks on User Info Card it would be preferable to display when a given global user was (b)locked. However, in CentralAuth it's not possible at the moment to get a date at which the user was locked.

The locks (as opposed to ordinary blocks) are not stored in their own table. Instead, they are expressed as a field in the globaluser table. Therefore, in order to get the date, when user was locked, it's needed to read the recent log entries of type globalauth/setstatus and find the relevant state transition there.

This task will cover implementing such service in CentralAuth, that will be used then for the parent task.

Event Timeline

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

[mediawiki/extensions/CentralAuth@master] Add service to look up for logs about user status changes

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

Change #1180863 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Add service to look up for logs about user status changes

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