Open edmund-dunn opened 1 year ago
@edmund-dunn Would you be able to flesh out details and an AC for this ticket? Then if you could tag @maortiz-27-80 and me, let's try to bring this into Sprint 101. THanks!
Per Edmund: we would need to address this bug if we ever want to give editors the ability to delete PDFs.
This is an existing bug in Drupal core. https://www.drupal.org/project/drupal/issues/3027324
At this point, we need to use a workaround that uses the https://www.drupal.org/project/media_file_delete module and the entity_usage module, which allows the deletion of file entities and the associated files. We can then use an
entityDelete()
event subscriber to grab and send it to the S3 bucket before it is deleted.Acceptance Criteria
entityDelete()
event subscriber to grab and send it to the S3 bucket before it is deleted.