-
Notifications
You must be signed in to change notification settings - Fork 0
CROSSLINK-183 sync NCIP client #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CROSSLINK-183 sync NCIP client #342
Conversation
just a call for each of the 8 initial NCIP types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a synchronous NCIP (NISO Circulation Interchange Protocol) client implementation that supports 8 NCIP message types: LookupUser, AcceptItem, DeleteItem, RequestItem, CancelRequestItem, CheckInItem, CheckOutItem, and CreateUserFiscalTransaction.
- Implements the NcipClient interface with methods for all 8 NCIP operations
- Adds comprehensive test coverage for all operations including success, failure, and edge cases
- Extends Directory schema to support NCIP configuration with operation modes (auto/manual/disabled)
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| broker/ncipclient/ncipclient.go | Defines the NcipClient interface with 8 NCIP operations and custom error type |
| broker/ncipclient/ncipclient_impl.go | Implements the NcipClient interface with HTTP communication and response handling |
| broker/ncipclient/ncipclient_test.go | Comprehensive test suite covering all operations with various scenarios |
| illmock/directory/directory_api.yaml | Adds NCIP schema definition with configuration fields and operation modes |
| illmock/dirmock/directories.json | Adds sample NCIP configuration for mock testing |
| go.work.sum | Updates Go workspace checksums for dependencies |
jakub-id
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
just a call for each of the 8 initial NCIP types.