Closed bistline closed 4 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.82%. Comparing base (
6fd4ff1
) to head (4e14c43
). Report is 13 commits behind head on development.
Functional test: works as described.
One papercut (probably pre-existing): Deleted an uploaded AnnData file but explore tab still populates even though file was deleted. I'm assuming not in scope, for this PR but, just in case it fits... (while making the screencapture, realized that the metadata has not been deleted - maybe this should be a separate ticket...)
Screen.Recording.2024-09-24.at.10.18.31.AM.mov
If you didn't have DelayedJob running, this is expected. All the deletion logic happens in the background.
BACKGROUND & CHANGES
This addresses a corner case where a previous valid file is cached after a CSFV failure, leading to an inconsistent state where it appears that you can save an obviously bad file. This can happen if a user uploads a valid file then uses the
Replace
button and supplies a file that fails validation. Now, if an uploaded file fails validation, the filename/upload button is cleared out, which also disables the save button.MANUAL TESTING
Replace
link and add a file that fails validationChoose file
and theSave
button is disabled