Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch add works to collection from Dashboard->Works when some fail doesn't forward as expected #4007

Open
1 of 3 tasks
elrayle opened this issue Sep 17, 2019 · 0 comments
Open
1 of 3 tasks
Labels
Collection impacts the Collection part of PCDM Model
Milestone

Comments

@elrayle
Copy link
Contributor

elrayle commented Sep 17, 2019

Descriptive summary

This issue lays out expected forwarding behavior when adding works to a collection through Dashboard->Works fails for some works.

NOTE: This likely uses the same forwarding behavior as adding works to a collection through Dashboard ->Works. This issue and issue #4009 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 multiple works to a collection from Dashboard -> Works...

FAILURE to add some of the works should:

  • forward to collection's admin show page
  • shows flash error (yellow): Collections Error: You have attempted to add works to more than one collection of the same single-membership collection type (collection type: name of collection type, collections: list of effected collections). Some of the works were not added.

Testing

Actual behavior

When adding multiple works to a collection from Dashboard -> Works...

FAILURE of all works added:

  • forwards to collection's admin show page, as expected
  • shows success message (green): Collection was successfully updated.
  • shows flash error message (red): 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.

Create 2 works and add one to collection SM1 using...

  • Dashboard -> Works -> Add new work -> fill in requirements -> Save. This issue will refer to them as Work1 and Work2
  • Dashboard -> Works -> check box beside Work1 -> Add to Collection -> select SM1 -> Save changes

Test:

Verify FAILURE to add some works to second collection of the same Single Membership type.

  1. Dashboard -> Works -> check box beside Work1 and Work2 -> Add to Collection -> select SM2 -> Save changes

Verify forwards to SM2 admin show page. (Admin show page is the show page for the collection with the admin menu on the left.)

Verify flash error (yellow) with message "Collections Error: You have attempted to add works to more than one collection of the same single-membership collection type (collection type: Single Membership, collections: SM1, SM2). Some of the works were not added.

Related work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Collection impacts the Collection part of PCDM Model
Projects
None yet
Development

No branches or pull requests

1 participant