Page MenuHomePhabricator

Migrate PageTriage to use a virtual database domain (remove LBFactory class)
Closed, ResolvedPublic

Details

Event Timeline

Novem_Linguae renamed this task from See if we need to refactor LBFactory to Migrate PageTriage to use a virtual database domain (remove LBFactory class).Oct 12 2023, 12:04 PM
Novem_Linguae updated the task description. (Show Details)

We did some work to move away from LBFactory already, worth checking what changed and what's left: T330690, T335749.

It calls getExternalLB which shouldn't be called outside of rdbms anymore but it's only in tests (https://codesearch.wmcloud.org/things/?q=getExternalLB&files=&excludeFiles=&repos=Extension%3APageTriage) are you sure it's needed? Can you just remove that?

Change 993243 had a related patch set uploaded (by MPGuy2824; author: MPGuy2824):

[mediawiki/extensions/PageTriage@master] Remove usage of LBFactory class

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

MPGuy2824 moved this task from Priority technical debt to Code Review on the PageTriage board.
MPGuy2824 subscribed.

It calls getExternalLB which shouldn't be called outside of rdbms anymore but it's only in tests (https://codesearch.wmcloud.org/things/?q=getExternalLB&files=&excludeFiles=&repos=Extension%3APageTriage) are you sure it's needed? Can you just remove that?

The tests are passing with the patch above.

Change 993243 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Remove usage of LBFactory class

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