denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

file.json needs explicit 'role' attribute #12

Closed GeoffFroh closed 10 years ago

GeoffFroh commented 10 years ago

The 'role' attribute (whether a file is master, mezzanine or some other yet-to-be determined value) should be explicitly recorded in an attribute in file.json rather than inferred from the name of the binary file itself.

This is a change that will require a mass update of all file jsons....

gjost commented 10 years ago

Why the change? Our app is built around things having rigidly structured names, and being named automatically. Also, we'd have to infer the role from the filenames to make the change...

gjost commented 10 years ago

Role field is now added when files are saved. Existing files are not changed.