Skip to content

Conversation

alxndr-w
Copy link
Member

@alxndr-w alxndr-w requested review from Copilot and skerbis August 14, 2025 05:40
@alxndr-w alxndr-w self-assigned this Aug 14, 2025
@alxndr-w alxndr-w added this to the 5.0.0 milestone Aug 14, 2025
Copy link
Contributor

@Copilot 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 implements an update script that cleans up legacy components during the bloecks addon update process. The script removes deprecated plugins, old assets, and configuration data when upgrading from versions prior to 5.0.0.

  • Removes three legacy plugins (status, cutncopy, dragndrop) from the bloecks addon
  • Deletes old addon assets to prevent conflicts
  • Cleans up configuration namespace for pre-5.0.0 versions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


rex_dir::delete(rex_path::addonAssets('bloecks'));

if (version_compare(rex_addon::get('bloecks')->getVersion(), '5.0.0', '<')) {
Copy link
Preview

Copilot AI Aug 14, 2025

Choose a reason for hiding this comment

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

The version comparison logic is inverted. This condition will be true for versions >= 5.0.0, not < 5.0.0 as intended. The comparison operator should be '<' and the logic should check if the current version is less than 5.0.0.

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

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

@skerbis das Feedback von Copilot ist doch falsch, oder? Habe ich einen Knick in der Optik?

@skerbis skerbis merged commit 2ba4c6a into main Aug 14, 2025
@skerbis skerbis deleted the alxndr-w-patch-1 branch August 14, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants