Skip to content

Conversation

@mrrobot47
Copy link
Member

This pull request introduces a minor update to the server data initialization in the init method of Dash_Command.php. The change ensures that the EasyEngine version is included in the server metadata.

  • Added the ee_version field to the $server_data array by retrieving the value from the EE_VERSION constant, allowing the server data to track the EasyEngine version.

Copilot AI review requested due to automatic review settings December 11, 2025 04:41
@mrrobot47 mrrobot47 merged commit ad84e93 into EasyEngine:main Dec 11, 2025
5 checks passed
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 adds the EasyEngine version to the server metadata sent to the EasyDash dashboard during server initialization. This enhancement allows the dashboard to track which version of EasyEngine is running on each integrated server, providing valuable information for management and monitoring purposes.

Key Changes

  • Added ee_version field to the $server_data array, populated from the EE_VERSION constant
  • Server metadata now includes version information alongside hostname, IP address, and organization

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

Comment on lines +132 to +139
$ee_version = EE_VERSION;

$server_data = [
"hostname" => $hostname,
"public_ipv4" => $public_ipv4,
"organization" => $organization,
"ee_version" => $ee_version,
];
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

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

The indentation of these lines is inconsistent with the surrounding code. Since this code is inside the else block that starts at line 123, these lines should be indented with two tabs (like lines 127-130 and 141-162), not one tab. This affects code readability and violates the existing indentation pattern in the file.

Suggested change
$ee_version = EE_VERSION;
$server_data = [
"hostname" => $hostname,
"public_ipv4" => $public_ipv4,
"organization" => $organization,
"ee_version" => $ee_version,
];
$ee_version = EE_VERSION;
$server_data = [
"hostname" => $hostname,
"public_ipv4" => $public_ipv4,
"organization" => $organization,
"ee_version" => $ee_version,
];

Copilot uses AI. Check for mistakes.
Comment on lines +132 to +138
$ee_version = EE_VERSION;

$server_data = [
"hostname" => $hostname,
"public_ipv4" => $public_ipv4,
"organization" => $organization,
"ee_version" => $ee_version,
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

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

The intermediate variable $ee_version is unnecessary. The EE_VERSION constant can be directly assigned to the array key, which would simplify the code and follow the pattern used by the other fields in the array (hostname, public_ipv4, organization).

Suggested change
$ee_version = EE_VERSION;
$server_data = [
"hostname" => $hostname,
"public_ipv4" => $public_ipv4,
"organization" => $organization,
"ee_version" => $ee_version,
$server_data = [
"hostname" => $hostname,
"public_ipv4" => $public_ipv4,
"organization" => $organization,
"ee_version" => EE_VERSION,

Copilot uses AI. Check for mistakes.
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