Update Create Item handler to support list of mapped items in context

RCA Group

None

Description

Update CreateItemEventHandler to support a list of Items in event payload context after the mapping (MappingManager.map() will map multiple Items from single MARC Bib) - send separate requests to mod-inventory-storage to create each (or batch?)

CreateItemEventHandler.processMappingResult() calls fillHoldingsRecordIdIfNecessary() - make changes to associate each Item with a corresponding Holdings. DataImportEventPayload should contain a list of Holdings values (added in scope of ) to be used for associating Items with Holdings.

Event that Items are created should be published once and contain a list of successfully created entities and a list of errors if some failed to be created. 

Add tests

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Kateryna SenchenkoMay 5, 2023 at 6:50 AM

This PR will be tested and merged in scope of  MODDATAIMP-801. Closing this ticket
 

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Folijet

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 27, 2023 at 1:23 PM
Updated October 14, 2023 at 11:12 AM
Resolved May 5, 2023 at 6:51 AM
TestRail: Cases
TestRail: Runs