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

Backup custom derivatives in Fedora #1506

Closed
conorom opened this issue Jan 19, 2018 · 1 comment
Closed

Backup custom derivatives in Fedora #1506

conorom opened this issue Jan 19, 2018 · 1 comment

Comments

@conorom
Copy link
Contributor

conorom commented Jan 19, 2018

To me it seems that if a user goes to the trouble of uploading a custom thumbnail (or poster) for a FileSet, this should be preserved in Fedora. A suitable association already exists (for a thumbnail):
https://github.com/samvera/hydra-works/blob/d78ed6b9f071834c0aa1baf1202d7c0ff0b55f38/lib/hydra/works/models/concerns/file_set/contained_files.rb#L11

The reason I'd like to do this is so that a backup of the repository would contain everything needed to get it back to a working state. You could argue that if we're confident in the storage redundancy of the file system, then we'll be able to grab tmp/derivatives from somewhere and all will be OK. It does seem neater to have it all together though, and if the video posters have some meaning (to a caption, say) then they really are part of the work itself.

@conorom
Copy link
Contributor Author

conorom commented Jan 19, 2018

Low priority and blocked, I think, by #1508. We should also parking lot so that we agree this is a good idea. For the record, you can add a thumbnail file to a FileSet like so:
Hydra::Works::AddFileToFileSet.call(FileSet.find('999999999'), File.open(File.join(Rails.root, 'spec', 'fixtures', 'csv', 'shipwreck.jpg')), :thumbnail, update_existing: true, versioning: false)

... and presumably this would also work for another association as soon as you add one :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants