Open jkeifer opened 7 years ago
Actually, this is because an AOI I uploaded had been deleted. The correct solution here is to do two things:
Don't actually delete anything when something is "deleted". The removed_at timestamp should be set and there should be a method on every model checking whether an object is valid, i.e., not removed. We can then filter everything all the time based on that method.
We need a cleanup process to run periodically to remove all deleted filesystem objects. In other words, if an AOI was deleted 30 days ago, the process should see that has been in a removed state for a sufficient amount of time to be cleaned up, and then it will delete all files referenced by paths in the AOI and its data records. The paths will also be set to '', indicating they have been cleaned up.
Here is the traceback. I think it is because I didn't have any downloads.