SJRK-205: Update "Delete story" server call to remove associated files as well

Metadata

Source
SJRK-205
Type
Task
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Gregor Moss
Created
2019-01-24T12:00:30.828-0500
Updated
2019-02-05T10:45:23.841-0500
Versions
N/A
Fixed Versions
N/A
Component
  1. Storytelling Tool Server

Description

Add functionality to the server's "Delete story" endpoint to iterate over the blocks and automate the removal of all media files associated with a particular deleted story

Note:

  • We should be wary of situations with identical file names
  • Make sure it can’t delete a file for one story which is also used by another (verify whether this situation is possible)
  • Make sure to have review from several people