-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: don't delete own data when leaving a project #458
Conversation
When you leave a project, we no longer delete your own data (but still close your writer Hypercore). Because this was the last occurrence of `deleteOwn: false`, I removed the option entirely. Fixes #449.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have a non-blocking question but lgtm!
this.#coreManager.deleteData(namespace, { deleteOwn: true }) | ||
) | ||
namespacesWithoutAuth.flatMap((namespace) => [ | ||
this.#coreManager.getWriterCore(namespace).core.close(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the context for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah wait is it related to this note in your PR description?
(but still close your writer Hypercore).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's exactly it. (Let me know if that's wrong!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think that makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure it's the right call. My goal is:
- When you leave, we want to close all Hypercores.
- When you leave, we want to delete all Hypercore data except yours.
Does this express that correctly? (And is my goal correct?)
I'll plan to merge this tomorrow morning unless there are any objections. |
When you leave a project, we no longer delete your own data (but still
close your writer Hypercore).
Because this was the last occurrence of
deleteOwn: false
, I removedthe option entirely.
Fixes #449.