-
Notifications
You must be signed in to change notification settings - Fork 126
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
use a Dry::Struct/Types default for FileMetadata type attribute #4226
Comments
@elrayle are there any cases where we want to use EDIT: |
Short answer: I am fine with dropping Longer answer: FileMetadata was originally created to follow the same conventions set out in figgy's FileMetadata. The The only place I see I believe the original thought was that it might be useful in a later part of the valkyrization process, e.g. when the derivative creation process was converted to use valkyrie. But any such use is hypothetical at this point in time. |
@elrayle i think you've misinterpreted me. i like as far as i can tell, the documented supported parameter never has |
after a conversation in slack, we've agreed to go ahead and drop |
Descriptive summary
In file
app/models/hyrax/file_metadata.rb
, method#for
sets the default of type toHyrax::FileSet::ORIGINAL_FILE
. It is preferred to use a Dry::Struct/Types default in the type definition instead of in the#for
method.This would look something like...
Need to determine the impact this will have on setting the
type
in the#for
method.Related work
PR #4225 Requested change
The text was updated successfully, but these errors were encountered: