Page MenuHomePhabricator

Replace LBFactory with injecting new Db-Service in Client's EntityUsageTableBuilder
Closed, ResolvedPublic

Description

Mostly a fairly standard usage with the exception of the \Wikimedia\Rdbms\ILBFactory::getLocalDomainID call below:

$this->lbFactory->waitForReplication( [
	'domain' => $this->lbFactory->getLocalDomainID(),
] );

$loadBalancer = $this->lbFactory->getMainLB();
$db = $loadBalancer->getConnection( DB_MASTER );

Event Timeline

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

[mediawiki/extensions/Wikibase@master] Typehint files to be modified

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

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

[mediawiki/extensions/Wikibase@master] Replace ILBFactory with ClientDomainDb

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

Change 699042 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Typehint files to be modified

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

Change 699043 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Replace ILBFactory with ClientDomainDb

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