-
Notifications
You must be signed in to change notification settings - Fork 42
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
Update "Entire source account" deletion to complete when server reports success #1344
Comments
(Proposing this as a post-0.5.0 enhancement assuming we discover no novel issues with this approach.) |
#1420 is not specific to account deletion, rather it has to do with how we switch between online and offline modes in the client. So those issues should be resolved separately, I believe. |
Also, #1420 is higher priority than speeding up source deletion right now. |
I do think the two issues should ideally be resolved together. Deletion is already a major pain point for our users, and we don't want to push out a release that makes things slower. And slowness is also a security issue: if you are in an emergency situation, having to wait for an entire sync duration to delete sources could prevent you from deleting things you need to delete, and you may be just as likely to close the laptop while the on-disk deletion is not complete. |
Yes, that makes sense - #1429 could be resolved by ensuring that files and database updates are performed the moment the server notifies us the deletion is successful (instead of waiting for a sync). |
Yes, that is a potential solution that we need to explore more, and going back to slow deletion is not ideal. Since syncs can take a long time, because of the way we have to retrieve all data from the server to find out what we need to delete or add (this won't be true once we implement API v2 as suggested here freedomofpress/securedrop#5104), forcing an immediate sync is not ideal. It's just the old, simple way of doing things. Since the sync happens on a separate thread, we can hit a situation where the deletion will have to wait until an ongoing sync is finished, but this would be faster than forcing an end sync after deletion. I'll write up some notes in a doc and share here later. |
#1311 updates "Files and messages" deletion to complete when the server reports success, instead of waiting for the next sync. This dramatically improves deletion performance, especially on a server with many sources where a sync takes a long time. We should apply the same performance improvement to "Entire source account" deletion.
The text was updated successfully, but these errors were encountered: