diff --git a/CHANGELOG.md b/CHANGELOG.md index fa7a4e6..41e733a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,19 @@ All notable changes to this project will be documented in this file, per [the Ke ### Security --> +## [3.1.0] - 2023-09-20 + +### Added +- New button to explain ES queries. Props [@burhandodhy](https://github.com/burhandodhy), [@felipeelia](https://github.com/felipeelia), [@MARQAS](https://github.com/MARQAS), and [@brandwaffle](https://github.com/brandwaffle) via [#79](https://github.com/10up/ElasticPress/pull/79) and [#88](https://github.com/10up/ElasticPress/pull/88). +- New button to Reload and retrieve raw ES document. Props [@burhandodhy](https://github.com/burhandodhy), [@felipeelia](https://github.com/felipeelia), and [@brandwaffle](https://github.com/brandwaffle) via [#79](https://github.com/10up/ElasticPress/pull/79). +- Query types (and context when listing queries in the Query Log admin screen.) Props [@felipeelia](https://github.com/felipeelia) and [@burhandodhy](https://github.com/burhandodhy) via [#82](https://github.com/10up/ElasticPress/pull/82). +- Log query by context, status, and fixed time. Props [@felipeelia](https://github.com/felipeelia) via [#83](https://github.com/10up/ElasticPress/pull/83) and [#86](https://github.com/10up/ElasticPress/pull/86). +- Official support to Query Monitor. Props [@felipeelia](https://github.com/felipeelia) via [#84](https://github.com/10up/ElasticPress/pull/84). + +### Security +- Bumped `tough-cookie` from 4.1.2 to 4.1.3. Props [@dependabot](https://github.com/dependabot) via [#75](https://github.com/10up/debug-bar-elasticpress/pull/75). +- Bumped `word-wrap` from 1.2.3 to 1.2.4. Props [@dependabot](https://github.com/dependabot) via [#76](https://github.com/10up/debug-bar-elasticpress/pull/76). + ## [3.0.0] - 2023-03-23 This release drops the support for older versions of ElasticPress and PHP. @@ -83,6 +96,7 @@ This release drops the support for older versions of WordPress Core, ElasticPres * Initial release [Unreleased]: https://github.com/10up/debug-bar-elasticpress/compare/trunk...develop +[3.1.0]: https://github.com/10up/debug-bar-elasticpress/compare/3.0.0...3.1.0 [3.0.0]: https://github.com/10up/debug-bar-elasticpress/compare/2.1.1...3.0.0 [2.1.1]: https://github.com/10up/debug-bar-elasticpress/compare/2.1.0...2.1.1 [2.1.0]: https://github.com/10up/debug-bar-elasticpress/compare/2.0.0...2.1.0 diff --git a/CREDITS.md b/CREDITS.md index bb9cace..23e839c 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -6,7 +6,7 @@ The following acknowledges the Maintainers for this repository, those who have C The following individuals are responsible for curating the list of issues, responding to pull requests, and ensuring regular releases happen. -[Taylor Lovett (@tlovett1)](https://github.com/tlovett1) and [Vasken Hauri (@brandwaffle)](https://github.com/brandwaffle). +[Vasken Hauri (@brandwaffle)](https://github.com/brandwaffle). ## Contributors diff --git a/debug-bar-elasticpress.php b/debug-bar-elasticpress.php index 06a09d8..a7297ef 100755 --- a/debug-bar-elasticpress.php +++ b/debug-bar-elasticpress.php @@ -1,10 +1,10 @@ \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-03-23T12:56:23+00:00\n" +"POT-Creation-Date: 2023-09-20T11:47:36+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.7.1\n" +"X-Generator: WP-CLI 2.8.1\n" "X-Domain: debug-bar-elasticpress\n" #. Plugin Name of the plugin -msgid "Debug Bar ElasticPress" +msgid "ElasticPress Debugging Add-On" msgstr "" #. Plugin URI of the plugin @@ -23,7 +23,7 @@ msgid "https://wordpress.org/plugins/debug-bar-elasticpress" msgstr "" #. Description of the plugin -msgid "Extends the debug bar plugin for ElasticPress queries." +msgid "Extends the Query Monitor and Debug Bar plugins for ElasticPress queries." msgstr "" #. Author of the plugin @@ -34,24 +34,25 @@ msgstr "" msgid "https://10up.com" msgstr "" -#: classes/EP_Debug_Bar_ElasticPress.php:31 +#: classes/CommonPanel.php:28 +#: classes/EP_Debug_Bar_ElasticPress.php:38 msgid "ElasticPress" msgstr "" +#: classes/CommonPanel.php:60 +msgid "ElasticPress is currently indexing." +msgstr "" + #. translators: queries count. -#: classes/EP_Debug_Bar_ElasticPress.php:75 +#: classes/EP_Debug_Bar_ElasticPress.php:77 msgid "Total ElasticPress Queries: %d" msgstr "" #. translators: blocking query time. -#: classes/EP_Debug_Bar_ElasticPress.php:83 +#: classes/EP_Debug_Bar_ElasticPress.php:85 msgid "Total Blocking ElasticPress Query Time: %d ms" msgstr "" -#: classes/EP_Debug_Bar_ElasticPress.php:90 -msgid "ElasticPress is currently indexing." -msgstr "" - #: classes/QueryFormatter.php:31 msgid "Page URL" msgstr "" @@ -88,46 +89,130 @@ msgstr "" msgid "Query Result" msgstr "" -#: classes/QueryFormatter.php:50 +#: classes/QueryFormatter.php:51 msgid "Error" msgstr "" -#: classes/QueryFormatter.php:54 +#: classes/QueryFormatter.php:55 msgid "Recommended Solution" msgstr "" -#: classes/QueryLog.php:90 +#: classes/QueryLog.php:119 +#: classes/QueryLog.php:120 msgid "Query Log" msgstr "" -#: classes/QueryLog.php:236 +#: classes/QueryLog.php:233 msgid "ElasticPress Query Log" msgstr "" -#: classes/QueryLog.php:245 +#: classes/QueryLog.php:244 msgid "Enable or disable query logging:" msgstr "" -#: classes/QueryLog.php:248 +#: classes/QueryLog.php:249 msgid "Disable" msgstr "" -#: classes/QueryLog.php:249 -msgid "Enable" +#: classes/QueryLog.php:250 +msgid "Enable for 5 minutes" +msgstr "" + +#: classes/QueryLog.php:251 +msgid "Keep enabled" +msgstr "" + +#: classes/QueryLog.php:256 +msgid "Note that query logging can have severe performance implications on your website." +msgstr "" + +#. translators: date +#: classes/QueryLog.php:261 +msgid "Logging queries until %s." +msgstr "" + +#: classes/QueryLog.php:271 +msgid "Log by status:" +msgstr "" + +#: classes/QueryLog.php:274 +msgid "Only failed queries" +msgstr "" + +#: classes/QueryLog.php:275 +msgid "All queries" +msgstr "" + +#: classes/QueryLog.php:280 +msgid "Log by context:" +msgstr "" + +#: classes/QueryLog.php:284 +msgid "Public" +msgstr "" + +#: classes/QueryLog.php:288 +msgid "Admin" +msgstr "" + +#: classes/QueryLog.php:292 +msgid "AJAX" +msgstr "" + +#: classes/QueryLog.php:296 +msgid "REST API" msgstr "" -#: classes/QueryLog.php:252 -msgid "Note that query logging can have severe performance implications on your website. We generally recommend only enabling logging during dashboard indexing and disabling after." +#. translators: Current limit +#: classes/QueryLog.php:308 +msgid "Please note that logs are stored until the storage limit is reached. The current limit is: %s" msgstr "" -#: classes/QueryLog.php:259 +#: classes/QueryLog.php:316 msgid "Save Changes" msgstr "" -#: classes/QueryLog.php:262 +#: classes/QueryLog.php:319 msgid "Empty Log" msgstr "" +#: classes/QueryLog.php:398 +msgid "Raw ES document" +msgstr "" + +#: classes/QueryLog.php:403 +msgid "Elasticsearch check" +msgstr "" + +#: classes/QueryLog.php:493 +msgid "Main query" +msgstr "" + +#: classes/QueryLog.php:497 +msgid "Possible values for EP filter" +msgstr "" + +#: classes/QueryLog.php:504 +msgid "Autosuggest template" +msgstr "" + +#: classes/QueryLog.php:507 +msgid "Search" +msgstr "" + +#: classes/QueryMonitorOutput.php:78 +msgid "Total ElasticPress Queries:" +msgstr "" + +#: classes/QueryMonitorOutput.php:84 +msgid "Total Blocking ElasticPress Query Time:" +msgstr "" + +#. translators: time spent +#: classes/QueryMonitorOutput.php:91 +msgid "%d ms" +msgstr "" + #: classes/QueryOutput.php:53 msgid "Download Requests Info" msgstr "" @@ -137,103 +222,115 @@ msgid "Copy Requests Info to Clipboard" msgstr "" #: classes/QueryOutput.php:59 -#: classes/QueryOutput.php:247 +#: classes/QueryOutput.php:260 msgid "Copied!" msgstr "" -#: classes/QueryOutput.php:78 +#: classes/QueryOutput.php:79 msgid "No queries to show" msgstr "" #. translators: Debug bar elasticpress error message -#: classes/QueryOutput.php:138 +#: classes/QueryOutput.php:144 msgid "Error: %s" msgstr "" #. translators: Debug bar elasticpress recommended solution for the error -#: classes/QueryOutput.php:146 +#: classes/QueryOutput.php:152 msgid "Recommended Solution: %s" msgstr "" -#: classes/QueryOutput.php:153 +#: classes/QueryOutput.php:159 msgid "Errors:" msgstr "" -#: classes/QueryOutput.php:160 +#: classes/QueryOutput.php:166 msgid "Type:" msgstr "" -#: classes/QueryOutput.php:166 +#: classes/QueryOutput.php:173 +msgid "Context:" +msgstr "" + +#: classes/QueryOutput.php:179 msgid "Host:" msgstr "" #. translators: time spent running the query. -#: classes/QueryOutput.php:175 +#: classes/QueryOutput.php:188 msgid "Time Taken: %d ms" msgstr "" -#: classes/QueryOutput.php:179 +#: classes/QueryOutput.php:192 msgid "Time Taken: -" msgstr "" -#: classes/QueryOutput.php:186 +#: classes/QueryOutput.php:199 msgid "URL:" msgstr "" -#: classes/QueryOutput.php:191 +#: classes/QueryOutput.php:204 msgid "Method:" msgstr "" -#: classes/QueryOutput.php:197 +#: classes/QueryOutput.php:210 msgid "Headers:" msgstr "" -#: classes/QueryOutput.php:204 +#: classes/QueryOutput.php:217 msgid "Query Args:" msgstr "" -#: classes/QueryOutput.php:211 +#: classes/QueryOutput.php:224 msgid "Query Body:" msgstr "" #. translators: Query HTTP Code response -#: classes/QueryOutput.php:230 +#: classes/QueryOutput.php:243 msgid "Query Response Code: HTTP %d" msgstr "" -#: classes/QueryOutput.php:235 +#: classes/QueryOutput.php:248 msgid "Query Result:" msgstr "" -#: classes/QueryOutput.php:240 +#: classes/QueryOutput.php:253 msgid "Query Response Code:" msgstr "" -#: classes/QueryOutput.php:240 +#: classes/QueryOutput.php:253 msgid "Request Error" msgstr "" -#: classes/QueryOutput.php:244 +#: classes/QueryOutput.php:257 msgid "Copy cURL Request" msgstr "" -#: classes/QueryOutput.php:262 +#: classes/QueryOutput.php:275 msgid "Queries info" msgstr "" -#: debug-bar-elasticpress.php:98 +#: classes/QueryOutput.php:377 +msgid "Explain queries" +msgstr "" + +#: classes/QueryOutput.php:405 +msgid "Reload and retrieve raw ES document" +msgstr "" + +#: debug-bar-elasticpress.php:108 msgid "ElasticPress Version" msgstr "" -#: debug-bar-elasticpress.php:110 +#: debug-bar-elasticpress.php:120 msgid "ElasticPress.io Managed Platform" msgstr "" -#: debug-bar-elasticpress.php:114 +#: debug-bar-elasticpress.php:124 msgid "Elasticsearch Version" msgstr "" #. translators: Min. EP version -#: debug-bar-elasticpress.php:147 +#: debug-bar-elasticpress.php:157 msgid "Debug Bar ElasticPress needs at least ElasticPress %s to work properly." msgstr "" diff --git a/package-lock.json b/package-lock.json index ca61a74..9dc592b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "debug-bar-elasticpress", - "version": "3.0.0", + "version": "3.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "debug-bar-elasticpress", - "version": "3.0.0", + "version": "3.1.0", "license": "GPL-2.0-or-later", "devDependencies": { "@10up/stylelint-config": "2.0.2", diff --git a/package.json b/package.json index ea258ee..8336491 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "debug-bar-elasticpress", - "version": "3.0.0", + "version": "3.1.0", "description": "Extends the Debug Bar plugin for ElasticPress queries.", "main": "index.js", "scripts": { diff --git a/readme.txt b/readme.txt index 3e65026..932907a 100755 --- a/readme.txt +++ b/readme.txt @@ -1,18 +1,18 @@ -=== Debug Bar ElasticPress === +=== ElasticPress Debugging Add-On === Contributors: tlovett1, 10up Tags: debug, debug bar, elasticpress, elasticsearch Requires at least: 4.6 Tested up to: 6.1 Requires PHP: 7.0 -Stable tag: 3.0.0 +Stable tag: 3.1.0 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html -Extends the Debug Bar plugin for ElasticPress queries. +Extends the Query Monitor and Debug Bar plugins for ElasticPress queries. == Description == -Adds an [ElasticPress](https://wordpress.org/plugins/elasticpress) panel to the [Debug Bar](https://wordpress.org/plugins/debug-bar/) plugin. Allows you to examine every ElasticPress query running on any given request. +Adds an [ElasticPress](https://wordpress.org/plugins/elasticpress) panel to [Debug Bar](https://wordpress.org/plugins/debug-bar/) and/or [Query Monitor](https://wordpress.org/plugins/query-monitor/) plugins. Allows you to examine every ElasticPress query running on any given request. = Requirements: = @@ -27,7 +27,22 @@ Adds an [ElasticPress](https://wordpress.org/plugins/elasticpress) panel to the == Changelog == -= [3.0.0] - 2023-03-23 = += 3.1.0 - 2023-09-20 = + +__Added:__ + +* New button to explain ES queries. Props [@burhandodhy](https://github.com/burhandodhy), [@felipeelia](https://github.com/felipeelia), [@MARQAS](https://github.com/MARQAS), and [@brandwaffle](https://github.com/brandwaffle). +* New button to Reload and retrieve raw ES document. Props [@burhandodhy](https://github.com/burhandodhy), [@felipeelia](https://github.com/felipeelia), and [@brandwaffle](https://github.com/brandwaffle). +* Query types (and context when listing queries in the Query Log admin screen.) Props [@felipeelia](https://github.com/felipeelia) and [@burhandodhy](https://github.com/burhandodhy). +* Log query by context, status, and fixed time. Props [@felipeelia](https://github.com/felipeelia). +* Official support to Query Monitor. Props [@felipeelia](https://github.com/felipeelia). + +__Security:__ + +* Bumped `tough-cookie` from 4.1.2 to 4.1.3. Props [@dependabot](https://github.com/dependabot). +* Bumped `word-wrap` from 1.2.3 to 1.2.4. Props [@dependabot](https://github.com/dependabot). + += 3.0.0 - 2023-03-23 = This release drops the support for older versions of ElasticPress and PHP. @@ -55,7 +70,7 @@ __Security:__ * Bumped `webpack` from 5.75.0 to 5.76.2. Props [@dependabot](https://github.com/dependabot). -= [2.1.1] - 2022-08-04 = += 2.1.1 - 2022-08-04 = __Security:__