Skip to content

MODINVSTOR-1513 feat: Implement Kafka events publishing for Loan type#1320

Merged
humonest-one merged 2 commits intomasterfrom
MODINVSTOR-1513
Mar 12, 2026
Merged

MODINVSTOR-1513 feat: Implement Kafka events publishing for Loan type#1320
humonest-one merged 2 commits intomasterfrom
MODINVSTOR-1513

Conversation

@humonest-one
Copy link
Copy Markdown
Contributor

Purpose

Implement Kafka events publishing for Loan type https://folio-org.atlassian.net/browse/MODINVSTOR-1513

Approach

Implemented loan-type domain event support by aligning loan-type CRUD with the existing service + publisher pattern used for other inventory reference entities.

  • Added LoanTypeService to handle CRUD and trigger publish-on-success callbacks.
  • Added LoanTypeRepository to fetch current/previous state for update/delete event payloads.
  • Added LoanTypeDomainEventPublisher to publish CREATE, UPDATE, and DELETE events.
  • Added LOAN_TYPE to InventoryKafkaTopic so tenant topic creation includes inventory.loan-type.
  • Refactored LoanTypeApi to delegate to the new service.
  • Added integration coverage for success and failure paths to verify when events are and are not published.

Screenshots

image

@humonest-one humonest-one self-assigned this Mar 6, 2026
@humonest-one humonest-one requested a review from a team as a code owner March 6, 2026 16:57
Copy link
Copy Markdown
Collaborator

@psmagin psmagin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update NEWS

@sonarqubecloud
Copy link
Copy Markdown

@humonest-one humonest-one merged commit f3d4385 into master Mar 12, 2026
18 checks passed
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.

3 participants