submission: create original
format in converted
directory when record finalised
#653
Labels
original
format in converted
directory when record finalised
#653
The
do_finalise
function creates output files in theconverted
directory for each file format overwriting any previous files:hepdata/hepdata/modules/records/utils/submission.py
Lines 767 to 768 in 614d556
However, the
original
format is missing. This means that anoriginal
file could be created at an early stage before a record is finalised if a user clicks "Download All" then "YAML resource files". If the user does not subsequently click that button for the final version of a record (before finalisation), then after finalisation, the cachedoriginal
file will still correspond to the early upload. I found this scenario had occurred today for a recent record. The fix is to replace the iteration over file formats in the code above withCFG_SUPPORTED_FORMATS
(includingoriginal
), then delete alloriginal
files from theconverted
directory after deployment so that they will be recreated.The text was updated successfully, but these errors were encountered: