Enhanced Validation and Renovation of Links in Bib/Instance Records

Description

Purpose/Overview:

Current renovation process ran into 2 issues:

  • Optimistic locking problem with inventory version conflict (with initial bib update and renovate bib update)

  • "Record not found" when UI request for GET record after updating it happens at the same time as bib record is being updated by renovation process

Requirements/Scope:

UI will use "links suggestions" endpoint to fill bib record with actual authority data and pass to quickMarc. No changes to quickMarc logic. Remove renovation process as we treat data to be actual because of "links suggestions" call from UI.

Approach:

  • Extend "links suggestions" with some flag so it can search authorities by authorityId or naturalId based on provided flag value (for our case we need to search by authorityId)

  • Move "renovation" logic to a separate method so PUT endoint behave like before and renovation logic preserved for later purposes

Acceptance criteria:

  • "links suggestions" endpoint can work with authorityId instead of naturalId

  • renovation process doesn't happen for links PUT endpoint

  • Unit tests are created/updated 

Environment

None

Potential Workaround

None

CSP Request Details

None

CSP Rejection Details

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Khalilah GambrellJuly 16, 2023 at 7:42 PM

Reviewed on snapshot.

Valery_PilkoJuly 12, 2023 at 6:21 AM

Verified on Snapshot-1 environment - issue described in was fixed.
No error appears when user link MARC bib field > Saves the record > Opens the same record
See attached screencast:

Viacheslav KolesnykJuly 5, 2023 at 1:44 PM

Hey , It was In Progress when it was a QuickMarc story. Now we reconsidered approach and moved it into MODELINKS project because it doesn't need any changes for QuickMarc.

Khalilah GambrellJuly 4, 2023 at 1:45 PM

Hey . Is this story In Progress?

 

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created June 29, 2023 at 10:46 AM
Updated December 21, 2023 at 4:45 PM
Resolved July 16, 2023 at 7:42 PM
TestRail: Cases
TestRail: Runs