sul-dlss / happy-heron

Self-Deposit for the Stanford Digital Repository (SDR): H2 is a Rails web application enabling users to deposit scholarly content into SDR
Apache License 2.0
10 stars 2 forks source link

Versioning issues with review workflow #3614

Closed amyehodge closed 2 months ago

amyehodge commented 2 months ago

I have found three issues with versioning of items in collections with the review workflow on and am able to replicate them all. They are all documented in this one ticket, since it's not clear to me whether they are part of the same problem or different problems.

The three issues are described below, along with the easiest way to replicate the problem.

For an item in a collection with the review workflow on and where that item is being versioned:

  1. Once that item is submitted for approval, if the reviewer opens it to make changes, the reviewer does not see the versioning question. The entire box is missing from the form.

Desired behavior: Reviewer should also see the versioning question box on the form so they can make sure the correct option was selected.

To replicate:

Screenshot 2024-09-12 at 1 51 48 PM
  1. If the depositor made changes to the file section of the form for the new version, AND the reviewer opens the item and then saves it as a draft or submits it for approval -- whether they make any changes to the form or not -- all the depositor's changes to the file section of the form are lost.

Desired behavior: When the reviewer edits an item submitted for approval, changes made by the depositor to the file section should persist, unless changed by the reviewer, when the reviewer clicks either "save as draft" or "submit for approval" instead of reverting back to the last version state.

To replicate:

  1. Regardless of what the depositor chooses as the response to the versioning question, if the item is returned to them for changes, the versioning section displays "no" as the chosen response and the "what's changing" comments that were entered show up in the box associated with the "no" response. This means "yes" selections are being converted to "no" inappropriately.

Desired behavior: Versioning box should always reflect what the user previously selected.

To replicate:

I'll note that the second issue is preventing Stella from being able to update the file on this thesis as she needs to do. She does not have a hard deadline on getting the change made, but this is a significant problem that I think should be addressed soon.