Skip to content

Conversation

@mrrobot47
Copy link
Member

This pull request introduces EasyEngine Dashboard integration to the site backup process. The main changes enable the backup command to accept a new --dash-auth flag, which triggers callbacks to the EasyEngine Dashboard API to report backup success or failure. The implementation includes new properties, shutdown handling, and HTTP request logic for communicating with EasyEngine Dashboard.

EasyEngine Dashboard Integration:

  • Added support for the --dash-auth flag to the backup command, allowing EasyEngine Dashboard to pass a backup ID and verification token for callback purposes. The flag is documented in the command help. [1] [2]
  • Introduced new class properties in Site_Backup_Restore to store EasyEngine Dashboard authentication and callback state, including backup ID, verification token, API URL, backup metadata, and completion status.

Callback Handling:

  • Implemented logic to send a success callback to the EasyEngine Dashboard API after a successful backup, including detailed backup metadata in the payload. [1] [2]
  • Added a shutdown handler that automatically sends a failure callback to EasyEngine Dashboard if the backup process terminates unexpectedly or with an error.

API Communication:

  • Created helper methods for sending HTTP requests to the EasyEngine Dashboard API endpoints, handling both success and failure cases, and logging responses or errors for debugging.

Copilot AI review requested due to automatic review settings December 5, 2025 06:10
@mrrobot47 mrrobot47 merged commit 3c29fd0 into EasyEngine:develop Dec 5, 2025
5 of 9 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds EasyEngine Dashboard integration to the site backup process, enabling asynchronous backup status reporting via API callbacks. When the --dash-auth flag is provided with a backup ID and verification token, the backup command sends success or failure callbacks to the EasyEngine Dashboard API, allowing the Dashboard to track backup progress and completion status.

Key Changes:

  • Added --dash-auth flag support for passing backup ID and verification token
  • Implemented shutdown handler to send failure callbacks on unexpected termination
  • Created HTTP callback methods to communicate backup status with EasyEngine Dashboard API

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 19 comments.

File Description
src/helper/class-ee-site.php Documents the new --dash-auth flag in the backup command help text
src/helper/Site_Backup_Restore.php Implements Dashboard integration with properties, authentication parsing, callback handlers, and HTTP request methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant