Page MenuHomePhabricator

Remove TermSearchInteractorFactory from WikibaseServices/SingleEntitySourceServices
Closed, ResolvedPublic

Description

We need to remove TermSearchInteractorFactory from SingleEntitySourceServices. This should then allow us to first remove PrefetchingTermLookup from WikibaseServices (T277856), and finally stop passing and instance of SingleEntitySourceServices into the PrefetchingTermLookup callbacks (T277858).

TermSearchInteractorFactory can probably be moved directly to the service container.

Event Timeline

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

[mediawiki/extensions/Wikibase@master] WikibaseRepo: Create a MatchingTermsLookupFactory service

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

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

[mediawiki/extensions/Wikibase@master] WikibaseRepo: Move TermSearchInteractorFactory to service container

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

After further investigation, it seems that migrating TermInLangIdsResolver is not enough in order to be able to remove SingleEntitySourceServiceFactory but also SingleEntitySourceServices::getEntityRevisionLookup needs to be migrated too somehow. As this task seems to be too big to achieve at this moment, I will be breaking it down to two more tasks:

  1. Migrate TermsInLangIdsResolver
  2. Migrate EntityRevisionLookp fropm Multiple/SingleEntitySourceServices (DataAccess Services)

I will set these tasks as children of T277731: WikibaseRepo + WikibaseClient: Remove SingleEntitySourceServicesFactory Service and rephrase that task to include the client version of that service as well.

ItamarWMDE renamed this task from Remove TermSearchInteractorFactory and TermInLangIdsResolver from WikibaseServices/SingleEntitySourceServices to Remove TermSearchInteractorFactory from WikibaseServices/SingleEntitySourceServices.Apr 28 2021, 10:13 AM
ItamarWMDE updated the task description. (Show Details)

Change 683006 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] WikibaseRepo: Create a MatchingTermsLookupFactory service

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

Change 683007 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] WikibaseRepo: Move TermSearchInteractorFactory to service container

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