Skip to content

Conversation

@vLuckyyy
Copy link
Member

Fixes: GH-959

@vLuckyyy vLuckyyy requested a review from a team as a code owner September 19, 2025 21:21
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully refactors the warp inventory configuration from language files into a dedicated warp-inventory.yml, which is a significant improvement for maintainability. The adoption of a repository pattern with asynchronous, transactional operations is a solid architectural choice. However, I've identified a few critical issues, including a race condition and a bug where changes are not persisted, which could lead to data inconsistency. My review provides detailed feedback and suggestions to address these problems by better utilizing the new repository pattern.

Copy link
Member

@CitralFlo CitralFlo left a comment

Choose a reason for hiding this comment

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

I agree with Rollczi that the repository class it's complicated and could cause problems when maintaining the code in the future

Copy link
Member

@Jakubk15 Jakubk15 left a comment

Choose a reason for hiding this comment

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

Please test the changes and ensure the behavior of the inventories is proper

Copy link
Member

@Rollczi Rollczi left a comment

Choose a reason for hiding this comment

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

dobra jednak nie, te repo z completable feature trochę mnie trigeruje słabo ten kod wygląda dużo nam to komplikuje, nie możemy tego ładniej zrobić? np. removeWarp to już tam się dzieją dziwne rzeczy

@imDMK imDMK removed their request for review October 30, 2025 11:29
…ync handling and configuration managementRemove `WarpInventoryRepository` and migrate its responsibilities to `WarpInventoryConfigService`.
# Conflicts:
#	eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/messages/ENWarpMessages.java
#	eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/messages/PLWarpMessages.java
@vLuckyyy
Copy link
Member Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request is a significant refactoring that moves the warp inventory configuration out of language files into its own dedicated configuration file, warp-inventory.yml. This is a great improvement for separating configuration from translation. The changes include adding a new migration script, creating new configuration and service classes for the warp inventory, converting WarpImpl to a Java Record, and refactoring WarpTeleportService which also includes an important bug fix. Overall, the changes are well-structured and improve the maintainability of the warp feature. I've identified a high-severity issue where changes to warp item slots are not persisted, and a medium-severity issue regarding error handling in the new migration script.

…improved async handling, and better configuration management; introduce Warp interface and enhance migration logging.
@vLuckyyy vLuckyyy merged commit 219ffbb into master Dec 24, 2025
2 checks passed
@vLuckyyy vLuckyyy deleted the move-warp-inventory-from-language branch December 24, 2025 03:25
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.

Move the warp GUI 100% to warps.yml (without messages)

8 participants