Page MenuHomePhabricator

Create service to return list of temporary accounts that have used an IP address
Closed, ResolvedPublic

Description

Following up from T354542: Create new Rest API endpoint that takes an IP address and returns temporary accounts that have used that address, we need to create a service in CheckUser that returns a list of temporary accounts that have used an IP address. That's because Extension:Nuke is not yet updated to use a client-side application that makes use of the REST API provided in T354542.

In this task, we should create a service that contains the logic from TemporaryAccountIPHandler::getData and places it in a service. The service should then be invoked by TemporaryAccountIPHandler::getData and Extension:Nuke. The service should have an optional parameter for logging access, because in TemporaryAccountIPHandler that is already handled by the parent class, while Extension:Nuke would need to specify that logs should be created.

Event Timeline

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

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

[mediawiki/extensions/CheckUser@master] Services: Introduce CheckUserTemporaryAccountsByIPLookup service

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

Change #1079938 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Services: Introduce CheckUserTemporaryAccountsByIPLookup service

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