Closed gjost closed 5 years ago
I believe this is a side-effect of the changes in 1dd04ba2cd where DDR.models.common.DDRObject.write_json
only writes files if they're actually changed. The file ingest function needs to force a write. Better yet, the write_json
function for Entity
objects could be a little smarter and detect added/modified/deleted child File
objects.
Added a force
arg to write_json
and used it in file ingest function. Fixed in commit 5312b1c.
File ingest fails when
entity.json
is not present in the list of staged files.Background tasks page
Could not upload ddr-densho-349-46_inside_mezz.tif to ddr-testing-40097-1. Exception('Add file aborted, see log file for details: /var/log/ddr/addfile/ddr-testing-40097/ddr-testing-40097-1.log',)"
Addfile log
git status
Binary files are left staged but uncommitted, while the![110-testing40k97gitstatus](https://user-images.githubusercontent.com/38606/46030683-a8478480-c0ab-11e8-8685-db195968a485.png)
entity.json
file deletion is unstaged. [NOTE: This is the state after several upload failures.] [NOTE: Cutting-and-pasting text from terminal is better than a screenshot]