DI Log: Adjust the logic for the statuses that show in the UI log
RCA Group
None
Description
Environment
None
Potential Workaround
None
Attachments
3
blocks
defines
relates to
Checklist
hideTestRail: Results
Activity
Show:

Kateryna Senchenko July 5, 2023 at 12:23 PM
Tested - works as expected

Kateryna Senchenko June 29, 2023 at 7:44 PM
Tested :
For Profile Modify Marc Bib + Create Instance - statuses and summary are correct, but the Created lacks the link to the entity
For Profile Create Instance + Modify Marc Bib - status for the Instance is still shows as Updated, but the link is in place. Summary is correct

Kyrylo Shulzhenko June 29, 2023 at 2:21 PM
In scope of this ticket was resolved 2 issues
In scope of other tickets no problem in get_record_processing_log function (no needed records in table journal_records was not created)
Done
Details
Details
Assignee

Reporter

Priority
Story Points
5
Sprint
None
Development Team
Folijet
Fix versions
Release
Poppy (R2 2023)
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created April 19, 2023 at 6:12 AM
Updated October 14, 2023 at 10:57 AM
Resolved July 31, 2023 at 2:05 PM
TestRail: Cases
TestRail: Runs
Purpose: To ensure that the log UI display shows the "highest" that happened to a record, rather than multiple actions or the "Multi" status
As a staff person working with Data Import logs
I want to know the highest action that happened to a particular record
So that the log screen is less confusing
Scenario
Given the Data Import log
When displaying the actions in the summary and details
And if multiple actions have happened to a record (e.g. an Instance being created and updated, or an SRS MARC being created and modified, or a profile with branches where a record takes an action in one branch but not in the other)
Then ensure that only the highest action is displayed
See attached diagram
Action hierarchy
Created (record did not exist in FOLIO prior to job and exists now)
Updated (record existed in FOLIO before the job, and has been updated by the job)
No action (record may or may not have existed, but no action was taken - due to error, or multiple matches, or profile not specifying an action)
Notes
Errors can happen at any level, and are designated separately in the log
Data errors and multiple matches should be designated as errors
No match is not an error
Modified is not an action that ever appears in the log. It applies to the incoming SRS MARC, whereas all the other statuses apply to FOLIO records
Multiple is not an action that ever appears in the log, since every FOLIO record is represented on a separate line in the log
Additional notes transferred from a deleted duplicate issue
Problem definition: The Data Import UI log statuses are confusing to DI users in some cases, and will need review in light of the Poppy work for creating/updating multiple holdings/items from single incoming MARC Bibs. In light of that, do the following in this spike.
To do
Review the current log bugs attached to this feature, and confirm status logic addresses them properly
Create documentation that outlines the technical logic for UI status assignment
QA notes
New TestRail is not needed
Existing TestRails for logs need to be updated to match this story