10up / 10up-experience

The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
GNU General Public License v2.0
129 stars 27 forks source link

Don't use EP for Support Monitor Queries #151

Closed darylldoyle closed 8 months ago

darylldoyle commented 9 months ago

Description of the Change

We've seen an issue where ElasticPress filters are throwing out the 10up user queries. When the data is fed back to Support Monitor, it can be incorrect, causing issues with the SM alerting.

To get around this, we should disable ElasticPress on any user queries made within the SupportMonitor module, allowing WordPress to handle these queries in the standard way.

How to test the Change

Run a SM report and ensure that the query isn't running through EP.

Changelog Entry

Changed - 10up User reporting to Support Monitor now bypasses ElasticPress.

Credits

Props @darylldoyle, @ivanlopez, @hugosolar

Checklist: