Skip to content

Conversation

@mrrobot47
Copy link
Member

This pull request updates the way the phpRedisAdmin tool is fetched and installed to always use the latest release from GitHub, with a fallback mechanism in case the API is unavailable. The changes improve reliability and ensure users get the most recent version automatically.

phpRedisAdmin version management and installation:

  • Updated the ee-tools.json configuration to fetch the latest phpRedisAdmin release info from the GitHub API, set the default version to latest, and added a fallback_version for reliability.
  • Enhanced the install_pra function in src/Admin_Tools_Command.php to dynamically retrieve the latest release zipball URL from the GitHub API, and to fall back to a stable version if the API call fails, providing error and warning messages as needed.

- Use GitHub API to dynamically fetch latest phpRedisAdmin release
- Show warning and use fallback when API is unreachable
Copilot AI review requested due to automatic review settings December 24, 2025 04:02
Copy link

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 pull request enhances the phpRedisAdmin installation process to automatically fetch and install the latest release from GitHub's API, with a fallback mechanism to ensure reliability when the API is unavailable.

  • Switches from a hardcoded version (1.11.0) to dynamically fetching the latest release via GitHub API
  • Implements a fallback to version 1.26.0 when the GitHub API is unreachable
  • Adds conditional logic to handle both "latest" and specific version installations

Reviewed changes

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

File Description
ee-tools.json Updates phpRedisAdmin configuration to use GitHub API endpoint, sets version to "latest", and adds fallback_version
src/Admin_Tools_Command.php Implements GitHub API integration to fetch latest release zipball URL with fallback logic and error handling

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

- Add https stream context for HTTPS requests
- Replace error suppression with proper error handling and debug logging
- Add JSON parsing error check with debug logging
- Fix specific version URL construction to use direct archive URL
@mrrobot47 mrrobot47 merged commit 5005d1c into EasyEngine:develop Dec 24, 2025
1 check passed
@mrrobot47 mrrobot47 deleted the feat/latest-pra branch December 24, 2025 04:31
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