-
Notifications
You must be signed in to change notification settings - Fork 2
chore: Logging plugin admin view #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replaces the grid view with a paginated logs list table in the admin area using WP_List_Table. Introduces List_Table and LogsRepository classes for log retrieval and display, updates View_Logs_Page to use the new list view, and refactors DatabaseEntity for improved log querying and instantiation.
…olkit into logging-plugin-admin-view
🦋 Changeset detectedLatest commit: f477781 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
ℹ️ Download the latest wpgraphql-logging plugin zip from this PR |
Allows users to filter by date and level.
…s are passed when sorting and using pagination.
Introduces a Download_Log_Service using league/csv to export single log entries as CSV files. Adds a 'Download' action to the log list and view pages, updates admin page logic to handle download requests, and updates dependencies to include league/csv.
… all list templates.
ahuseyn
approved these changes
Sep 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #354
Fixes #390
This pull request introduces a new admin interface for viewing, filtering, and downloading WPGraphQL logs, alongside several configuration and dependency updates. The most significant changes are the addition of log viewing and download functionality, improvements to log filtering, and updates to plugin dependencies and configuration.
New Admin Log Viewing & Download Functionality:
View_Logs_Pageclass, which registers a new admin page for viewing logs, supports filtering, and enables log downloads in CSV format. (src/Admin/View_Logs_Page.php)Download_Log_Serviceto handle CSV generation and download for individual log entries, using the newleague/csvdependency. (src/Admin/View/Download/Download_Log_Service.php)Log Filtering & List Display:
wpgraphql-logger-list.php) and for filtering logs by date and level (wpgraphql-logger-filters.php). (src/Admin/View/Templates/wpgraphql-logger-list.php,src/Admin/View/Templates/wpgraphql-logger-filters.php) [1] [2]src/Admin/View/Templates/wpgraphql-logger-view.php)Configuration & Dependency Updates:
composer.jsonto require PHP>=8.1.2and addedleague/csvas a dependency. Adjusted platform PHP version and simplified Psalm script commands. (composer.json) [1] [2] [3]psalm.xml)Settings & UI Adjustments:
WPGRAPHQL_FILTERINGandPERFORMANCE_METRICS) from the basic configuration tab and reordered data sampling options for clarity. Updated event logging help text to reflect new defaults. (src/Admin/Settings/Fields/Tab/Basic_Configuration_Tab.php) [1] [2] [3]src/Admin/Settings/Templates/admin.php) [1] [2]Related Issue
Dependant PRs
Type of Change
How Has This Been Tested?
Screenshots
Checklist