Done
Details
Assignee
Viacheslav KolesnykViacheslav KolesnykReporter
Pavlo SmahinPavlo SmahinLabels
Priority
P3Story Points
8Sprint
NoneDevelopment Team
SpitfireFix versions
Release
Quesnelia (R1 2024)TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Viacheslav Kolesnyk
Viacheslav KolesnykReporter
Pavlo Smahin
Pavlo SmahinLabels
Priority
Story Points
8
Sprint
None
Development Team
Spitfire
Fix versions
Release
Quesnelia (R1 2024)
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created December 12, 2023 at 10:47 AM
Updated July 5, 2024 at 12:56 PM
Resolved February 8, 2024 at 12:09 PM
Overview:
Following the successful registration of MARC migration operations through the POST endpoint, this story focuses on implementing an asynchronous mechanism for mapping records. The objective is to prepare chunks of records with the first and last record IDs, facilitating efficient and incremental mapping processes.
Requirements/Scope:
Develop an asynchronous mechanism for mapping records corresponding to the registered MARC migration operation.
Prepare record chunks by identifying the first and last record IDs for mapping purposes.
Approach:
Trigger Async Processing Post Operation Registration
Initiate the asynchronous processing immediately after a new MARC migration operation is successfully registered.
Implement configurable thread pool for execution (based on env var).
Define Chunks and Determine Start/End Record IDs
Design a mechanism to segment records into manageable chunks based on their identifiers.
Determine the start and end record IDs for each chunk to facilitate incremental mapping.
Create Database Table for Chunk Representation
Establish a dedicated table within the database to represent and store the segmented chunks.
Define the table structure to accommodate chunk-related information such as chunk ID, operation ID, start record ID, end record ID, etc.
Persist Chunks to the Database Table:
Develop the logic to save the identified chunks into the newly created table in the database.
Ensure that each chunk's relevant information, including start and end record IDs, is accurately stored.
Update Operation Status to DATA_MAPPING:
Modify the status of the registered MARC migration operation to indicate that the data mapping process has commenced.
Change the operation status to "DATA_MAPPING" to signify the transition to the mapping phase.
Additional info:
POC for defining chunks and mapping: https://github.com/folio-org/mod-entities-links/commits/MODELINKS-84-long-term-poc/
Acceptance Criteria:
covered by unit tests