Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files: handle deletion failure #383

Open
zzacharo opened this issue Sep 2, 2021 · 0 comments
Open

files: handle deletion failure #383

zzacharo opened this issue Sep 2, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@zzacharo
Copy link
Member

zzacharo commented Sep 2, 2021

Package version (if known): v6.0

Describe the bug

When a file is failing to be deleted the error is not reported in the UI.

Steps to Reproduce

  1. Go to the uploads page and create a draft by uploading a file e.g test.txt
  2. Open a new window and navigate to the same draft. You will see in both windows the same file i.e test.txt
  3. Delete the file e.g test.txt from one of the 2 windows
  4. Now try to delete the same from the other one
  5. The error that you can see in the network panel is that the file doesn't exist thus it's failing to get deleted.

Expected behavior

We should report the error in the screen by indicating to the user to refresh the page or we can proactively delete the file from the client side as it's already been erased.

@zzacharo zzacharo added the bug Something isn't working label Sep 2, 2021
@zzacharo zzacharo added this to Triage in InvenioRDM September via automation Sep 2, 2021
@zzacharo zzacharo moved this from Triage to Todo in InvenioRDM September Sep 2, 2021
@jrcastro2 jrcastro2 self-assigned this Sep 24, 2021
@jrcastro2 jrcastro2 moved this from Todo to In progress in InvenioRDM September Sep 24, 2021
@jrcastro2 jrcastro2 moved this from In progress to Todo in InvenioRDM September Sep 24, 2021
@jrcastro2 jrcastro2 removed their assignment Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

2 participants