Skip to content

Commit 518bb8e

Browse files
authored
Merge pull request #497 from wpengine/chore-wpgraphql-logging-release-from-beta
chore: Release branch for WPGraphQL Logging Plugin
2 parents b586994 + ac5f0ee commit 518bb8e

File tree

5 files changed

+21
-24
lines changed

5 files changed

+21
-24
lines changed

.changeset/quiet-walls-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wpengine/wpgraphql-logging-wordpress-plugin": major
3+
---
4+
5+
chore: Initial release of WPGraphQL Logging Plugin.

plugins/wpgraphql-logging/README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,8 @@ A logging plugin that provides visibility into request lifecycle to help quickly
1212
[![Code Coverage](https://img.shields.io/badge/coverage-%3E90%25-brightgreen?label=Code%20Coverage)](https://github.com/wpengine/hwptoolkit/actions)
1313
[![Code Quality](https://github.com/wpengine/hwptoolkit/actions/workflows/code-quality.yml/badge.svg)](https://github.com/wpengine/hwptoolkit/actions/workflows/code-quality.yml)
1414

15-
16-
-----
17-
18-
> [!CAUTION]
19-
> This plugin is currently in a beta state. It's still under active development, so you may encounter bugs or incomplete features. Updates will be rolled out regularly. Use with caution and provide feedback if possible. You can create an issue at [https://github.com/wpengine/hwptoolkit/issues](https://github.com/wpengine/hwptoolkit/issues)
20-
21-
-----
22-
2315
## Overview
2416

25-
2617
WPGraphQL Logging plugin provides observability and visibility into the GraphQL request and event lifecycle. This capability gives users the understandability needed to quickly identify and resolve performance issues and bottlenecks within their headless WordPress application.
2718

2819
### Key Features
@@ -46,7 +37,9 @@ WPGraphQL Logging plugin provides observability and visibility into the GraphQL
4637

4738
### Option 1: Plugin Zip
4839

49-
You can get the latest release from <https://github.com/wpengine/hwptoolkit/releases?q=wpgraphql-logging&expanded=true>.
40+
You can get the latest release here - <https://github.com/wpengine/hwptoolkit/releases/latest/download/wpgraphql-logging.zip>
41+
42+
You can also download it from our release page - <https://github.com/wpengine/hwptoolkit/releases>
5043

5144
### Option 2: Composer
5245

plugins/wpgraphql-logging/readme.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ WPGraphQL Logging plugin provides observability and visibility into the GraphQL
1515

1616
**WPGraphQL Logging** is a comprehensive logging solution for WPGraphQL that tracks and records GraphQL query execution, providing developers with detailed insights into query performance, errors, and request lifecycle events.
1717

18-
**Note:** This plugin is currently in BETA. While it is functional and ready for testing, some features may be subject to change based on community feedback.
19-
2018
= Key Features =
2119

2220
**GraphQL Request Lifecycle Logging**
@@ -74,14 +72,14 @@ For detailed documentation, guides, and examples, visit the [GitHub repository](
7472

7573
1. Upload the plugin files to `/wp-content/plugins/wpgraphql-logging/`, or install the plugin through the WordPress plugins screen directly
7674
2. Activate the plugin through the 'Plugins' screen in WordPress
77-
3. Navigate to Settings > WPGraphQL Logging in the WordPress admin to configure settings
78-
4. View logged queries can be found in GraphQL Logs
75+
3. Navigate to GraphQL Logs -> Settings in the WordPress admin to configure settings
76+
4. View logged queries can be found in GraphQL Logs -> All Logs.
7977

8078
== Frequently Asked Questions ==
8179

8280
= Is this plugin production-ready? =
8381

84-
This plugin is currently in BETA. It is functional and ready for testing in staging environments. We recommend thorough testing before deploying to production.
82+
Yes. We recommend thorough testing on a local or staging before deploying to production. By default the plugin will only log 10% of the initial requests.
8583

8684
= Does this plugin affect GraphQL query performance? =
8785

@@ -99,17 +97,14 @@ Yes, the plugin provides extensive hooks and filters to customize logging behavi
9997

10098
The plugin includes configurable data retention settings. You can set automatic cleanup rules to delete logs older than a specified number of days.
10199

102-
== Screenshots ==
100+
= Where can I find documentation? =
101+
For detailed usage instructions, developer references, and examples, please visit the [Documentation](https://github.com/wpengine/hwptoolkit/blob/main/docs/plugins/wpgraphql-logging/index.md) folder included with this plugin.
103102

104-
1. View all GraphQL query logs with filtering and search
105-
2. Detailed log entry view showing query, variables, and response
106-
3. Configuration settings for data retention and logging behavior
107-
4. Export logs to CSV for analysis
108103

109104
== Changelog ==
110105

111-
= 0.1.0 - 2025-01-22 =
112-
* Initial BETA release
106+
= 1.0.0 - 2025-11-14 =
107+
* Initial release
113108
* Core logging functionality for WPGraphQL request lifecycle
114109
* Admin interface for viewing and filtering logs
115110
* CSV export functionality
@@ -119,6 +114,9 @@ The plugin includes configurable data retention settings. You can set automatic
119114

120115
== Upgrade Notice ==
121116

117+
= 1.0.0 =
118+
Initial release.
119+
122120
= 0.1.0 =
123121
Initial BETA release.
124122

plugins/wpgraphql-logging/src/Logger/Database/WordPressDatabaseEntity.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ public static function get_schema(): string {
283283
*/
284284
public static function get_table_name(): string {
285285
global $wpdb;
286-
// @TODO - Check for multisite
287286
return $wpdb->prefix . 'wpgraphql_logging';
288287
}
289288

plugins/wpgraphql-logging/tests/wpunit/Admin/View/List/ListTableTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ public function test_column_cb_returns_checkbox_for_valid_item(): void {
9696

9797
$result = $this->list_table->column_cb($entity);
9898

99-
$this->assertStringContainsString('<input type="checkbox"', $result);
99+
$this->assertStringContainsString('<label class="screen-reader-text"', $result);
100+
$this->assertStringContainsString('Select log entry 123', $result);
101+
$this->assertStringContainsString('<input id="cb-select-123" type="checkbox"', $result);
100102
$this->assertStringContainsString('value="123"', $result);
101103
}
102104

0 commit comments

Comments
 (0)