scientist-softserv / iiif_print

A gem for Hyrax/Samvera for displaying PDF pages in a IIIF Compliant viewer
Apache License 2.0
4 stars 1 forks source link

🎁 Add listener for handling file set attachment #317

Closed jeremyf closed 8 months ago

jeremyf commented 8 months ago

Why a listener and not a transaction? In part because the moment I want to perform the conditional enqueuing is at the point where the Hyrax::WorkUploadsHandler does it's job. That is when we have:

The Hyrax::WorkUploadsHandler is most analogous to the behavior in Hyrax::Actors::FileSetActor#attach_to_work and Hyrax::Actors::FileSetActor#create_content. Fortunately, Hyrax's transaction and upload handler remove the conditional handling we needed between uploading a remote file and directly uploading a file.

Related to: