Skip to content

Preserve user provided ILL request, only force sensitive fields#484

Merged
jakub-id merged 2 commits intomainfrom
preserve-ill-request
Mar 25, 2026
Merged

Preserve user provided ILL request, only force sensitive fields#484
jakub-id merged 2 commits intomainfrom
preserve-ill-request

Conversation

@jakub-id
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 25, 2026 15:22
Copy link
Contributor

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

Updates the borrowing “send request” flow so outgoing ISO18626 requests preserve user-supplied fields while still enforcing broker-controlled/sensitive header and patron identifiers.

Changes:

  • Build the outgoing ISO18626 Request by starting from the stored/user-provided request instead of reconstructing a minimal request.
  • Force RequestingAgencyId, RequestingAgencyRequestId, and PatronInfo.PatronId onto the outgoing request.
  • Add a unit test to validate preserved fields on the outgoing request.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
broker/patron_request/service/action.go Changes sendBorrowingRequest to reuse the provided iso18626.Request and overwrite sensitive fields.
broker/patron_request/service/action_test.go Adds a test asserting non-sensitive fields are preserved in the outgoing request.

Copy link
Contributor

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@jakub-id jakub-id merged commit 8f2d97b into main Mar 25, 2026
8 checks passed
@jakub-id jakub-id deleted the preserve-ill-request branch March 25, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants