Page MenuHomePhabricator

Stop using DBAccessBase in SqlSiteLinkConflictLookup
Closed, ResolvedPublic

Description

Instead, it’s probably better to directly inject an ILoadBalancer into the constructor. (The class should probably also directly implement IDBAccessObject, previously implemented via DBAccessBase, in case any other code relies on it.)

Event Timeline

The class should probably also directly implement IDBAccessObject, previously implemented via DBAccessBase, in case any other code relies on it.

Not sure about this part, on second thought. The class doesn’t seem to support the READ_* constants, so I don’t see why it should implement the interface providing those constants.

Change 682670 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] Inject ILoadBalancer into SqlSiteLinkConflictLookup

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

Change 682671 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] Remove isRepoEnabled() checks in repo tests

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

Change 682670 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Inject ILoadBalancer into SqlSiteLinkConflictLookup

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