-
Notifications
You must be signed in to change notification settings - Fork 124
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
Allow RevokeEditToMembersJob to receive either an AF object or a Valkyrie resource as the Work #4103
Labels
Comments
This was referenced Oct 21, 2019
Closed
Closed
Closed
Fixed by PR #4123 |
This was referenced Jan 22, 2020
Closed
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Descriptive summary
Convert RevokeEditToMembersJob to allow it to receive either an ActiveFedora based FileSet or a Valkyrie::Resource equivalent Work.
Rationale
Allow jobs to execute correctly with existing AF implementation or the wings Valkyrie implementation.
Expected behavior
RevokeEditToMembersJob receives a Valkyrie::Resource and performs RevokeEditJob for each member FileSet.
To get the list of FileSet ids from a work resource, use...
Coordinate with Issue #4106 to pass
use_valkyrie: true
when a Valkyrie::Resource was received and false if not.Actual behavior
RevokeEditToMembersJob raises an exception (perhaps: NoMethodFound for #search_with_conditions) when passed a Valkyrie::Resource.
Approach for Conversion
See Pattern for Jobs Receiving Parameter that may be an AF Object or a Valkyrie Resource
Steps to reproduce the behavior
See example of processing both objects in... file_set_actor_spec.rb
For testing this job, you can use something like...
Related work
The text was updated successfully, but these errors were encountered: