Skip to content

Commit

Permalink
MODSOURMAN-1246: Remove extra changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliaksandr-Fedasiuk committed Nov 15, 2024
1 parent 148d7bd commit badec97
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
import static org.folio.rest.jaxrs.model.DataImportEventTypes.DI_SRS_MARC_HOLDINGS_RECORD_NOT_MATCHED;
import static org.folio.rest.jaxrs.model.DataImportEventTypes.DI_SRS_MARC_HOLDINGS_RECORD_UPDATED;
import static org.folio.rest.jaxrs.model.DataImportEventTypes.DI_SRS_MARC_HOLDING_RECORD_CREATED;
import static org.folio.rest.jaxrs.model.DataImportEventTypes.DI_MARC_FOR_UPDATE_RECEIVED;
import static org.folio.services.RecordsPublishingServiceImpl.RECORD_ID_HEADER;
import static org.folio.services.util.EventHandlingUtil.constructModuleName;
import static org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE;
Expand Down Expand Up @@ -159,7 +158,6 @@ public List<String> getEvents() {
DI_SRS_MARC_AUTHORITY_RECORD_NOT_MATCHED.value(),
DI_SRS_MARC_HOLDINGS_RECORD_NOT_MATCHED.value(),
DI_SRS_MARC_HOLDINGS_RECORD_MATCHED.value(),
DI_MARC_FOR_UPDATE_RECEIVED.value(),
DI_INVENTORY_INSTANCE_CREATED.value(),
DI_INVENTORY_INSTANCE_UPDATED.value(),
DI_INVENTORY_INSTANCE_NOT_MATCHED.value(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public Future<String> handle(KafkaConsumerRecord<String, byte[]> record) {
}

private void saveCreatedRecordsInfoToDataImportLog(List<Record> storedRecords, String tenantId) {
LOGGER.debug("saveCreatedRecordsInfoToDataImportLog :: count: {}", storedRecords.size());
MappingRuleCacheKey cacheKey = new MappingRuleCacheKey(tenantId, storedRecords.get(0).getRecordType());

mappingRuleCache.get(cacheKey).onComplete(rulesAr -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static org.folio.rest.jaxrs.model.EntityType.EDIFACT_INVOICE;
import static org.folio.rest.jaxrs.model.JournalRecord.ActionStatus.ERROR;
import static org.folio.rest.jaxrs.model.JournalRecord.ActionType.CREATE;
import static org.folio.rest.jaxrs.model.JournalRecord.ActionType.UPDATE;

import java.util.Arrays;
import java.util.Map;
Expand Down Expand Up @@ -118,14 +117,6 @@ public Optional<JournalParams> getJournalParams(DataImportEventPayload eventPayl
JournalRecord.ActionStatus.COMPLETED));
}
},
DI_MARC_FOR_UPDATE_RECEIVED {
@Override
public Optional<JournalParams> getJournalParams(DataImportEventPayload eventPayload) {
return Optional.of(new JournalParams(UPDATE,
JournalRecord.EntityType.MARC_BIBLIOGRAPHIC,
JournalRecord.ActionStatus.COMPLETED));
}
},
DI_INVENTORY_INSTANCE_CREATED {
@Override
public Optional<JournalParams> getJournalParams(DataImportEventPayload eventPayload) {
Expand Down

0 comments on commit badec97

Please sign in to comment.