Success message appears too soon when importing single record with complex profile

Description

mod-copycat queries mod-source-record-storage to get the information about successful import. After was implemented single records can be imported with various (more complex) job profiles creating not only Instance, but also creating/updating Holdings and Items. Therefore, the fact that record is stored in srs is not reliable signal that processing of the job is finished. 

Add request to check the status of Job Execution in mod-source-record-manager for displaying information about successful single record import.

Things to consider: import job can take a while to complete, in case mod-copycat returns response only by the fact of job completion it can result in request timeout errors. Query to mod-srs is still needed to display the just imported Instance on the inventory view. In case SRS record is not updated with instance id in time - a message appears that single record is put in queue for processing.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Kateryna Senchenko March 2, 2023 at 8:52 PM

Hi , we could query the jobExecution status to determine whether the job is actually finished, however some jobs might take too long to complete for complex profiles (or for the first import after the restart of the modules) and it can result in timeout errors. What if we returned the response similar to what is now displayed for quickMarc edits saying that the changes will appear soon? This change we could make as an Orchid bugfix. To workout more elaborate solution we'll need more time to assess all the pitfalls and ways to overcome them, and we'll definitely need to push it out of Orchid scope. Please let me know what you think. Thank you!

Details

Assignee

Reporter

Priority

Development Team

Folijet

Release

Trillium (R2 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created January 27, 2023 at 11:01 AM
Updated March 4, 2025 at 8:48 PM
TestRail: Cases
TestRail: Runs