Page MenuHomePhabricator

Replace ILBFactory and ILoadBalancer with injecting new Db-Service in Lib's WikiPageEntityMetaDataLookup and places that construct it
Closed, ResolvedPublic

Description

WikiPageEntityMetaDataLookup has a standard usage pattern:

$this->loadBalancer = $lbFactory->getMainLB( $this->databaseName );
$db = $this->loadBalancer->getConnectionRef( $connType, [], $this->databaseName );

Event Timeline

Change 698753 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/Wikibase@master] DbDomain: replace ILoadBalancer in WikiPageEntityMetaDataLookup

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

Change 698965 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseMediaInfo@master] Inject new DomainDb abstraction instead of LoadBalancerFactory

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

Change 698966 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/Wikibase@master] DomainDb: Remove cross extension migration code

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

Change 698753 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] DbDomain: replace ILoadBalancer in WikiPageEntityMetaDataLookup

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

Change 698965 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] Inject new DomainDb abstraction instead of LoadBalancerFactory

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

Change 698966 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] DomainDb: Remove cross extension migration code

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