Skip to content

Conversation

@rosalieper
Copy link
Contributor

@rosalieper rosalieper commented Jan 8, 2026

Bug: T410856

@rosalieper rosalieper marked this pull request as draft January 8, 2026 13:50
Copy link
Contributor

@tarrow tarrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good direction to start in. Definitely a bit different from the raw string matching in the ticket but seems a fine idea to me. I like the test. I guess you're also working on one for Wiki data too?

One comment I added for myself to worry about because I have some vague memory about these connections being a bit odd when we set them like this but I need to do some research


$manager = app()->db;
$manager->purge('mw');
$mwConn = $manager->connection('mw');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Tom to look up:

  • do we also need to undo this?

$mwConn = $manager->connection('mw');
$pdo = $mwConn->getPdo();

$dbStmt = $pdo->query("SHOW DATABASES LIKE 'mwdb_%'");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapping this in a try-catch to log any errors that may happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure a try catch is necessary here. I think it is fine as we get the thrown exception on the console anyway.

@rosalieper rosalieper marked this pull request as ready for review January 9, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants