Page MenuHomePhabricator

WikibaseRepo: Introduce TokenCheckInteractor service
Closed, ResolvedPublic

Description

In T280814 and T280817, we stopped injecting TokenChangeInteractor into SpecialMergeItems and SpecialItemRedirect to simplify construction and tests.

Creating a service wiring for this class will help us avoid direct instantiation in the SpecialPage class methods and provide an already cached instance of this Interactor.

In order to introduce this service, the checkRequestToken method might need to be updated to avoid passing the user into the class constructor.

Event Timeline

ItamarWMDE renamed this task from Introduce TokenCheckInteractor service to WikibaseRepo: Introduce TokenCheckInteractor service.Apr 23 2021, 7:56 AM
ItamarWMDE added a project: wdwb-tech.
ItamarWMDE updated the task description. (Show Details)

Change 682145 had a related patch set uploaded (by Itamar Givon; author: Itamar Givon):

[mediawiki/extensions/Wikibase@master] WikibaseRepo: Introduce TokenCheckInteractor service

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

Change 682145 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] WikibaseRepo: Introduce TokenCheckInteractor service

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