Page MenuHomePhabricator

Replace ILBFactory and ILoadBalancer with injecting new Db-Service in Lib's TermInLangIdsResolverFactory
Closed, ResolvedPublic

Description

This includes refactoring things so that DatabaseTermInLangIdsResolver is only constructed in that factory and injected everywhere else, either by using the factory or by using the service.

IMPORTANT: This will load different databases based on the entity type on commons. That happens for example in entitytypes PREFETCHING_TERM_LOOKUP_CALLBACK. We might need something like a newForEntityType( string $type ) on the repo factory.

Event Timeline

Change 697581 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] Add RepoDomainDbFactory::newForEntityType

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

Change 697798 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] client: add RepoDomainDbFactory service

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

Change 697801 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] Add DomainDb::loadBalancer and DomainDb::domain

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

Change 697581 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add RepoDomainDbFactory::newForEntityType

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

Change 697798 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] client: add RepoDomainDbFactory service

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

Change 697801 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add DomainDb::loadBalancer and DomainDb::domain

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

Change 697939 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/core@master] ConnectionManager: add optional $flags param

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

Change 697949 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] ReplicationWaiter: add optional timeout param

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

Change 697949 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] ReplicationWaiter: add optional timeout param

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

Change 698001 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] Use DomainDb in terms services

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

Change 697939 merged by jenkins-bot:

[mediawiki/core@master] ConnectionManager: add optional $flags param

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

Change 698001 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Use DomainDb in terms services

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

Michael removed a project: Patch-For-Review.

There is no good reason for this idling unresolved in the "Done" column. It is done.