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

How do we leave a project? #241

Closed
achou11 opened this issue Aug 31, 2023 · 3 comments · Fixed by #410
Closed

How do we leave a project? #241

achou11 opened this issue Aug 31, 2023 · 3 comments · Fixed by #410
Assignees

Comments

@achou11
Copy link
Member

achou11 commented Aug 31, 2023

Description

As part of the project api, we want to add a project.$leave() method that removes yourself from the project. However, there are some question about what happens internally when doing this:

  • can/do we delete project data? maybe some stuff would have to remain in order to inform others that we've left
  • do we just write the "blocked" capability for ourself?
@gmaclennan
Copy link
Member

Initial thoughts are:

  • For initial implementation, leave = delete all data (because we won't have a way to delete after, so it will fill up disk space forever)
  • Once we track data sync, delete all synced data, but keep unsynced data, however do delete encryption keys (apart from auth key) so that user cannot read it, but they can sync with others (need to implement some kind of "unsynced-data-background-sync")
  • I don't think we should write 'blocked' capability for self. Not all users are able to do that. But perhaps we need a new "left" capability, that you can only write about yourself. Would need to keep the auth core around and background sync it with others so that the "left" gets gossiped to everyone. it's helpful it being different I think, because looking at the list of project devices I imagine that a user would want to see the difference between someone being blocked and leaving.

@achou11 achou11 self-assigned this Sep 21, 2023
@ximenabb
Copy link

if we dont do this ticket - workaround to uninstall app but then if the device rejoins the same project theyd be a new device

@achou11
Copy link
Member Author

achou11 commented Dec 11, 2023

@gmaclennan any preference of wording between "left" and "exited"? currently using "left" but "exited" seems clearer, although more aggressive sounding 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants