-
Notifications
You must be signed in to change notification settings - Fork 4
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
[MODSOURCE-854] Use deleteRecordBy id for soft delete of authority #668
base: master
Are you sure you want to change the base?
Conversation
LOG.info("handlePayload:: Handling 'delete' event for the record id = {}", payloadRecord.getId()); | ||
recordService.updateRecordsState(payloadRecord.getMatchedId(), RecordState.DELETED, RecordType.MARC_AUTHORITY, payload.getTenant()) | ||
recordService.deleteRecordById(payloadRecord.getMatchedId(), IdType.RECORD, okapiHeaders) | ||
.recover(throwable -> throwable instanceof NotFoundException ? Future.succeededFuture() : Future.failedFuture(throwable)) |
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.
@RomanChernetskyi Let's log here smth. At the debug level - that record was not found (with specific Id). And warn level - with an error message and cause.
|
Purpose
Update soft delete logic for Marc Authority
Approach
Use deleteRecordBy id for soft delete of authority
Jira
https://folio-org.atlassian.net/browse/MODSOURCE-854