You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read a previous comment that once this operation starts a user needs to leave the windows open I think it would be more productive that once a users starts this operation they can leave the page and do other tasks and not wait for this job to complete. The job should be completed in the backend. Currently, that's how Google Drive, Onedrive, etc. You don't need to keep the windows open or two stay on the delete page. Once the delete operation starts, you can leave that page and do other stuff.
@AndyXheli at some point I hope so, that would allow to only send one request for a batch of actions.
Then we would not even need to throttle them. But we're using webdav, so we would have to create our own plugin or implementation for this. I think there is an opened issue about this already :)
The warning is a nice first contribution: in apps/files/src/actions/deleteAction.ts, register a beforeunload handler when the queue becomes active and remove it when it is idle again, with a test.
Activity
[-][Bug]: Improve queueing for deletion[/-][+]Improve queueing for deletion[/+]skjnldsv commentedon May 14, 2024
Preventing closing with
onbeforeunloadis the cleanest way imhoAndyXheli commentedon May 17, 2024
I read a previous comment that once this operation starts a user needs to leave the windows open I think it would be more productive that once a users starts this operation they can leave the page and do other tasks and not wait for this job to complete. The job should be completed in the backend. Currently, that's how Google Drive, Onedrive, etc. You don't need to keep the windows open or two stay on the delete page. Once the delete operation starts, you can leave that page and do other stuff.
skjnldsv commentedon May 22, 2024
Yep, there is currently no asynchronous operations.
That is kind of a different topic
AndyXheli commentedon May 22, 2024
Do you think that would be something that will get implemented?
skjnldsv commentedon May 22, 2024
@AndyXheli at some point I hope so, that would allow to only send one request for a batch of actions.
Then we would not even need to throttle them. But we're using webdav, so we would have to create our own plugin or implementation for this. I think there is an opened issue about this already :)
susnux commentedon Dec 1, 2026
Status update on current master:
Done:
Still missing:
beforeunloadwarning while queued deletions are still pendingThe warning is a nice first contribution: in
apps/files/src/actions/deleteAction.ts, register abeforeunloadhandler when the queue becomes active and remove it when it is idle again, with a test.