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 all fail doesn't forward as expected #4006

Open
3 tasks
elrayle opened this issue Sep 17, 2019 · 0 comments
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 all works.

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

  • forward to collection's admin show page
  • shows flash error (red): 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). None of the works were added.

Testing

Actual behavior

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

FAILURE of all works added:

  • forwards to collection index page Managed Collections tab (if user has managed collections) or Your Collections (if user does not have managed collections)
  • shows flash warning (yellow): 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 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 and Work2 -> Add to Collection -> select SM1 -> Save changes

Test:

Verify FAILURE to add 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 (red) 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). None of the works were added."

Related work

@elrayle elrayle added the Collection impacts the Collection part of PCDM Model label Sep 17, 2019
@elrayle elrayle added this to the 3.x series milestone Sep 17, 2019
@elrayle elrayle changed the title Batch add works to collection from Dashboard->Works when all fail isn't as expected Batch add works to collection from Dashboard->Works when all fail dpesm Sep 17, 2019
@elrayle elrayle changed the title Batch add works to collection from Dashboard->Works when all fail dpesm Batch add works to collection from Dashboard->Works when all fail doesn't forward as expected Sep 17, 2019
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