When a record gets created, it take the URI from its preview field and generates thumbnails from it. However, if that fails, #generate_thumbnail isn't triggered on a save/update and therefore even if a Bulkrax roundtripping import is initiated, all it is doing is an update of the existing record so the thumbnail doesn't get generated even though the preview property changes to the correct one.
Acceptance Criteria
[ ] As a user, I want thumbnails to generate after I update the record through roundtripping
Testing Instructions and Sample Files
[ ] Have existing data in your application. Do a Bulkrax export of the data (a limit of one record is sufficient)
[ ] Open the resulting CSV and change the edm:preview field to a different URI (make sure it directly resolves to either a JPG or PDF resource)
[ ] Initiate a Bulkrax import with the CSV
[ ] Go to the /sidekiq route and ensure all jobs are completed
Story
When a record gets created, it take the URI from its
preview
field and generates thumbnails from it. However, if that fails,#generate_thumbnail
isn't triggered on a save/update and therefore even if a Bulkrax roundtripping import is initiated, all it is doing is an update of the existing record so the thumbnail doesn't get generated even though thepreview
property changes to the correct one.Acceptance Criteria
Testing Instructions and Sample Files
edm:preview
field to a different URI (make sure it directly resolves to either a JPG or PDF resource)/sidekiq
route and ensure all jobs are completed