inveniosoftware / invenio-app-rdm

Turn-key research data management platform.
https://inveniordm.docs.cern.ch
MIT License
108 stars 148 forks source link

Users can't clear pending uploads through UI #1948

Open tmorrell opened 2 years ago

tmorrell commented 2 years ago

Package version (if known): v9.1

Describe the bug

If upload of a file through the deposit form fails due to a network interruption or some other issue, there is no way for the user to recover. The pending upload cannot be cleared, and the record cannot be published. This can only be resolved by using the API to delete the pending uploads.

Steps to Reproduce

I do not have a good way to interrupt an upload in process. This issue happens for us infrequently with larger files.

Expected behavior

Users should be able to clear pending uploads from the uploader.

Screenshots (if applicable)

Screen Shot 2022-10-21 at 3 11 29 PM

Additional context

github-actions[bot] commented 1 year ago

This issue was automatically marked as stale.

github-actions[bot] commented 1 year ago

This issue was automatically marked as stale.

github-actions[bot] commented 1 year ago

This issue was automatically marked as stale.

tmorrell commented 1 year ago

FYI @slint this is likely to cause a lot of support requests when Zenodo migrates. We’ve had a decent number with both our v9 and v12 instances and the resulting drafts are very broken. It’s easy to run the script to clear the pending uploads, but without it being an option in the UI it becomes an annoyance for support.

slint commented 1 year ago

Thanks for bumping this up, indeed it would probably become a major issue for support if we had to deal with these. We'll take into the current pre-launch sprint as high priority, so you should expect a fix this or next week :)

tmorrell commented 1 year ago

Awesome! Our clearance script is https://github.com/caltechlibrary/caltechauthors/blob/main/scripts/clear_uploads.py, though the team will probably come up with something more elegant.

chriz-uniba commented 2 months ago

Since this was a high priority a year ago - what's the status of this?

chriz-uniba commented 2 months ago

By the way, the same can be provoked when uploading a (lager) file and while the file is uploading clicking the browser's back-button.