Skip to content

CIRC-2685 Accept and persist inHouseUse in check-in-by-barcode - #1703

Merged
roman-barannyk merged 3 commits into
masterfrom
CIRC-2685
Oct 16, 2026
Merged

roman-barannyk merged 3 commits into
masterfrom
CIRC-2685

Conversation

@roman-barannyk

@roman-barannyk roman-barannyk commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

The POST /circulation/check-in-by-barcode endpoint currently detects in-house use automatically based on item state (item is available, no pending requests, service point serves the item's home location — LoanCheckInService.isInHouseUse()). The result is returned in the response but never persisted to the check-in record in storage.

This story makes two related changes: it accepts an explicit inHouseUse boolean from the caller, allowing staff intent to override the inference logic; and it persists the final in-house-use decision — whether derived from the new parameter or from the existing fallback — to the inHouseUse field of the check-in record in mod-circulation-storage.

Approach

The resolution precedence is: explicit true from the request → skip inference and use true; otherwise → run existing LoanCheckInService.isInHouseUse() as the fallback. The resolved value flows through CheckInContext.inHouseUse (already present) into CheckInRecord.toJson(), which is the serialization point that CheckInStorageRepository sends to storage.

Resolves: CIRC-2685

@sonarqubecloud

Copy link
Copy Markdown

@roman-barannyk
roman-barannyk merged commit b1da888 into master Oct 16, 2026
19 checks passed
@roman-barannyk
roman-barannyk deleted the CIRC-2685 branch October 16, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants