Unable to submit source files so processing is stuck for domain
cc @douglassue
Expected behaviour
User should be able to process all of their submissions and Bookshelf can maintain data integrity and avoid duplicate records in its archival database.
Current behaviour
User gets stuck with sending new files to conversion if they upload a new source file that is not named exactly the same as the previous source file name.
Steps to reproduce
- upload one source xml file
- upload converted xml and send converted xml to load preview
- upload second source xml file and make it the main xml
- see that you can't submi the latest source xml file for conversion
Possible solution
There are two possible solutions:
- send user error if use tries to upload or send by FTP a source file that does not match existing source file names
- figure out source file versioning for every upload / xml post, but this will require understanding a package of multiple source files as one complete version and a next set of files as a second complete version, and each complete set version being able to be processed / submitted to conversion
NCBI's priority feedback
Y, this is a real production use case we are modelling so we need to support it at MVP to avoid integrity issues in our archival database
QA Steps
- Create an XML wholebook and fill out the required metadata
- Upload one source xml file
- Upload converted xml and send converted xml to load preview
- Upload second source xml file and tag it as main xml
- Click Submit and wait for conversion
- Check that the converted filename of V2, which came from the conversion is updated to match to the new source filename that is tagged as main_xml