XML wholebook: when source file is in status other than "New Upload" and the "main-xml" tag is missing, users cannot submit a corrected file version after upload ("Submit" is inactive)
Expected behaviour
Per requirements here https://docs.google.com/spreadsheets/d/1M4ZdBbzr2s4-PUXqEblfsKoPBUuk4aG343u9ZAUn_Tk/edit#gid=625909583 - A user should be able to submit files in New Upload status
Users should be able to upload a new file version to replace the current file version when it has errors. Users should not have to apply the main_xml
tag to each file version -- once the user has identified the main_xml
file, this should apply to all versions. Only if the tag is removed, should we expect the user to active it agin for "submit" to be active.
Current behaviour
When a source file in is a status other than "New Upload" and the main-xml
tag is missing, users cannot submit a corrected file version after upload ("Submit" is inactive).
This can be only reproduced on the old books. Example in ncbidev here link
However, if the main_xml
tag is added to the existing source file before uploading the new verion, the submit button is enabled again. example here
Notice that in this case both version have the main_xml tag, and based on testing of this, I think that the issue is that the submit only gets enabled when all the versions of the source file have the tag main_xml.
Steps to reproduce
Example 1
- Go to the example book
- Upload a new source file, which will now be V2.
- Status of the book is also updated to 'new upload'
- Add the tag main_xml to that file
- Submit button is disabled.
Example 2
- Note component and status are New Upload
- Note source XML has the main xml tag correctly added
- But the submit button is grey out and cannot be used
Environment
Possible solution
QA Steps
[To be completed by Coko once dev is done]
Scheduling
-
This issue is blocking current user testing -
This issue is blocking current migration testing -
Fixing this issue is required for Priority 1: Deploy MVP -
This issue should be triaged into later epics in the PM weekly meeting