Modify MARC holdings processing for update and create

Description

Overview
Several changes were made for holdings update and create actions in quickMarc:

Response for POST /records-editor/records and PUT /records-editor/records was changed.

Both of them now respond with a status of the action.

Changes in schema: 

  • qmRecordId -> actionId

  • status.CREATED -> status.COMPLETED

Example of new response:

{ "actionId": "c9db5d7a-e1d4-11e8-9f32-f2801f1b9fd1", "externalId": "c56b70ce-4ef6-47ef-8bc3-c470bafa0b8c", "marcId": "55a76b7b-841d-45b9-9e64-d0827b9e2480", "jobExecutionId": "c56b70ce-4ef6-47ef-8bc3-c470bafa0b8c", "marcFormat": "HOLDINGS", "actionType": "UPDATE", "status": "COMPLETED", "errorMessage": "Failed to create instance", "metadata": { "createdAt": "2020-07-14T12:20:10.000", "updatedAt": "2020-07-14T12:20:10.000" } }

Requirements

  1. Apply schema changes to create MARC holdings 

  2. Apply response changes to update MARC holdings and use GET /record-editor/records/status?actionId=<id> to be aware when record update is succeed or failed.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Natalia ZaitsevaMay 13, 2022 at 2:28 PM

At a meeting on 13 May decided to close the story as it is related to the back-end  story MODQM-223 and will be tested in the scope of MODQM-233

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Release

Morning Glory (R2 2022)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 5, 2022 at 12:18 PM
Updated June 24, 2022 at 10:34 AM
Resolved May 13, 2022 at 2:28 PM
TestRail: Cases
TestRail: Runs

Flag notifications