You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue lays out expected forwarding behavior when adding a new work to multiple collections through the new work form fails.
NOTE: This likely uses the same behaviors when performing the same actions on the edit work form. This issue and issue #4011 are tightly related and the fix for one may fix both.
Rationale
Provide intuitive forwarding behavior that focuses on the actions a user will most likely want to take next. Provide error message that is easy to understand.
Expected behavior
When adding a work to multiple collections from the work new form...
FAILURE to add the work to the collections should:
stay on new form (Relationships tab)
no changes are saved
should maintain filled in metadata (Descriptions tab)
should maintain any files added for upload (Files tab)
show flash error (red): Collections Error: You have specified more than one collection of the same single-membership collection type (collection type: name of collection type, collections: list of effected collections). The work was not added to those collections.
When adding a work to multiple collections from the work new form...
FAILURE to add the work to the collections should:
forwards to Descriptions tab on new form
no changes are saved
all metadata fields are cleared (Descriptions tab)
files for upload are no longer listed (Files tab)
shows flash error: Collections Error: You have specified more than one of the same single-membership collection type (type: name of collection type, collections: list of effected collections)
Steps to reproduce the behavior
Prerequisites:
Need a collection type that is set to allow single membership. If testing on Nurax, this collection type may already exist. Look for Collection Type Single Membership. If it doesn't exist, then create a single membership collection type using...
Dashboard -> Settings -> Collection Types -> Create new collection type
Assign type name Single Membership and Save
On Settings tab, uncheck MULTIPLE MEMBERSHIP and Save changes
Need two collections of type Single Membership. You can create using...
Dashboard -> Collections -> New Collection -> select Single Membership type -> Create Collection
Assign suitable titles for the two collections and save. This issue will refer to them as SM1 and SM2.
Test:
Verify FAILURE behaves as expected.
Dashboard -> Works -> Add new work
select type (if needed) -> Create work
fill in required metadata on Descriptions tab
add file from Files tab
check box for Depositor Agreement (if required)
on Relationships tab -> Collections -> Add to collection -> type SM1 -> Add
on Relationships tab -> Collections -> Add to collection -> type SM2 -> Add
click Save button
Verify stays in new form on Relationships tab.
Verify flash error (red) with message "Collections Error: You have specified more than one collection of the same single-membership collection type (collection type: Single Membership, collections: SM1, SM2). The work was not added to those collections."
Verify that metadata filled in on Descriptions tab is still filed in as expected.
Verify that any files added on the Files tab are still ready for upload.
The first parameter being passed is curation_concern which will contain the work model (for example, GenericWork ) to use when building the form. When there is an error, the model contains no data. This happens because when an error is encountered while traversing the actor stack, the model is not built.
So the form is built without any of the user's previously input data. I tried to build the model containing the values in param, but was not successful. I could get the metadata in the model, but the rest of the user input, I could not.
Descriptive summary
This issue lays out expected forwarding behavior when adding a new work to multiple collections through the new work form fails.
NOTE: This likely uses the same behaviors when performing the same actions on the edit work form. This issue and issue #4011 are tightly related and the fix for one may fix both.
Rationale
Provide intuitive forwarding behavior that focuses on the actions a user will most likely want to take next. Provide error message that is easy to understand.
Expected behavior
When adding a work to multiple collections from the work new form...
FAILURE to add the work to the collections should:
Testing
Actual behavior
When adding a work to multiple collections from the work new form...
FAILURE to add the work to the collections should:
Steps to reproduce the behavior
Prerequisites:
Need a collection type that is set to allow single membership. If testing on Nurax, this collection type may already exist. Look for Collection Type Single Membership. If it doesn't exist, then create a single membership collection type using...
Need two collections of type Single Membership. You can create using...
Test:
Verify FAILURE behaves as expected.
Related work
The text was updated successfully, but these errors were encountered: