Skip to content

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Jul 24, 2025

Motivation for the change, related issues

WordPress/sqlite-database-integration#212 added support for the Query monitor in the SQLite integration plugin. However, it's not enough to make it work in Playground. The Query Monitor plugin short-circuits when the SAPI is set to cli – which it always is in Playground. This PR sets a constant that tells the Query Monitor plugin to ignore the SAPI and run anyway.

In addition, this PR also ships the latest SQLite integration plugin.

Ideally we'd set the correct SAPI, but that's a larger rabbit hole.

Testing Instructions (or ideally a Blueprint)

Go to http://127.0.0.1:5400/website-server/?plugin=query-monitor and confirm the query monitor is loading correctly.

@johnbillion
Copy link
Member

Anything I can do in QM to remove the need for this?

@adamziel
Copy link
Collaborator Author

adamziel commented Jul 24, 2025

Thank you for asking @johnbillion! This is a problem with Playground using cli as the SAPI name - we'll have to sort it out eventually and use playground or cgi or so. Query Monitor already does a helpful thing by checking that constant.

That being said, let me CC @JanJakes who had some ideas about upstream changes in Query Monitor that would ease the integration with the SQLite plugin.

@adamziel adamziel merged commit 2c8f89e into trunk Jul 24, 2025
22 of 25 checks passed
@adamziel adamziel deleted the qm-support branch July 24, 2025 20:10
@adamziel
Copy link
Collaborator Author

adamziel commented Jul 24, 2025

The query monitor plugin now works on https://playground.wordpress.net 🎉

https://playground.wordpress.net/?plugin=query-monitor&login=yes&url=%2Fwp-admin%2F%23qm

CleanShot 2025-07-25 at 00 18 47@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants