Repository navigation
1052 bug get itemsteal works inconsistently - #1053
Merged
Merged
Conversation
tickBit
requested review from
CapoMK25,
Iir0R,
hoan301298 and
psykkis
as code owners
October 27, 2026 10:49
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
CapoMK25
approved these changes
Oct 27, 2026
CapoMK25
left a comment
Collaborator
There was a problem hiding this comment.
Solid as well, approved!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief description
Fixes inconsistent item location data returned after moving or stealing items.
The steal operation previously returned items with their old
room_id, even though the database had already been updated. During testing, an additional issue was found:POST /item/stealallowed the destination room to belong to another clan. This caused subsequentGET /item/{id}requests to return403 NOT_AUTHORIZED.Because stealing uses the shared
ItemMoverService, its general move functionality and related tests also needed to be updated.Change list
ItemMoverService.moveItems()to return items read after the database update.room_idandstock_id.POST /item/steal.403 NOT_AUTHORIZEDwhen attempting to steal an item into another clan's room.stealItems,moveItems, andmoveItemtests to expect the persisted item location.ItemMoverServicetest suite: 26 tests passing.Testing
Also tested with Postman to see, that this works.