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

LIBAVALON-106. Set default thumbnail for videos #82

Open
wants to merge 2 commits into
base: avalon-develop
Choose a base branch
from

Conversation

dsteelma-umd
Copy link

@dsteelma-umd dsteelma-umd commented Dec 10, 2021

Note: This pull request needs to be demonstrated/approved by stakeholders before being merged.

Modified MasteFile generation to replace the "thumbnail" image derived
from the video file, with a stock default thumbnail image.

This prevents a multitude of videos with black/empty thumbnail images
from being displayed on the "Browse" page, and provides a visual
indication to curators that a thumbnail needs to be chosen.

Added a "set_default_thumbnail" method the "MasterFile" class, and
modified the MasterFileBuilder (called when a item is added manually)
and the "Avalon::Batch::Entry" class (called when an item is added
via a batch process) to call the method.

Updated rspec tests to reflect changes.

https://issues.umd.edu/browse/LIBAVALON-106

Modifed MasteFile generation to replace the "thumbnail" image derived
from the video file, with a stock default thumbnail image.

This prevents a multitude of videos with black/empty thumbnail images
from being displayed on the "Browse" page, and provides a visual
indication to curators that a thumbnail needs to be chosen.

Added a "set_default_thumbnail" method the "MasterFile" class, and
modified the MasterFileBuilder (called when a item is added manually)
and the "Avalon::Batch::Entry" class (called when an item is added
via a batch process) to call the method.

https://issues.umd.edu/browse/LIBAVALON-106
MasterFile for videos should now use the "video_icon.png" by default
for the thumbnail, so updated the relevant tests to reflect this change.

Modified the FactoryBot MasterFile factory to run the
"set_default_thumbnail" method with creating a MasterFile with a
thumbnail.

https://issues.umd.edu/browse/LIBAVALON-106
@dsteelma-umd dsteelma-umd force-pushed the avalon-develop branch 2 times, most recently from 29470fd to 7d73d9e Compare June 9, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant