Skip to content

fix(lots): skip no-op patches in adjust() and transfer()#447

Open
prasad-albert wants to merge 1 commit intomainfrom
worktree-fix+lot-adjustment
Open

fix(lots): skip no-op patches in adjust() and transfer()#447
prasad-albert wants to merge 1 commit intomainfrom
worktree-fix+lot-adjustment

Conversation

@prasad-albert
Copy link
Copy Markdown
Collaborator

Summary

  • adjust() now skips the PATCH request when the computed delta is zero (e.g. SET to current value, ZERO on an already-zeroed lot), matching the behaviour of update()
  • transfer(quantity="ALL") now skips the PATCH request when the destination storage location already matches the current one
  • Adds three integration tests covering each no-op scenario

Closes #444

@prasad-albert prasad-albert marked this pull request as draft April 7, 2026 06:42
@prasad-albert prasad-albert marked this pull request as ready for review April 7, 2026 06:42
@claude
Copy link
Copy Markdown

claude bot commented Apr 7, 2026

Looks good - no bugs or correctness issues found.

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.

Lots transfer and adjust methods should handle "no change" payloads similar to the update method

2 participants