Skip to content

Delete organization(s) & account #4476

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

Open
birkjernstrom opened this issue Mar 11, 2024 · 3 comments
Open

Delete organization(s) & account #4476

birkjernstrom opened this issue Mar 11, 2024 · 3 comments
Labels
feature Net new feature development
Milestone

Comments

@birkjernstrom
Copy link
Member

birkjernstrom commented Mar 11, 2024

Currently, this is done manually upon request to support@polar.sh

We require & will continue to require the end user to first uninstall the Polar GitHub App in case they have it installed. It will then automatically trigger soft deletion of repositories etc on our end.

For the account/organization itself the manual approach is the following to be reproduced as a feature in the future.

  • Set deleted_at for the user/organization
  • Update PII record with hashlib.md5().update(b'<text>').hexdigest()
  • Set empty GitHub profile JSON in users table, e.g empty strings for PII and 0 for stats (public repos etc)
  • In case of email it's the above with @deleted.com as suffix
  • Change avatar_url to https://avatars.githubusercontent.com/u/105373340?s=48&v=4 (Polar logo)
import hashlib

def h(value: str) -> str:
   is_email = '@' in value
   ret = hashlib.md5()
   ret.update(value.encode('utf-8'))
   return ret.hexdigest()
@codenoid
Copy link
Contributor

I will work on this

@birkjernstrom
Copy link
Member Author

Hey @codenoid. Have you had the chance to look into this any further? 🙂 Totally understand if it became bigger than anticipated or other things came up :)

@codenoid
Copy link
Contributor

codenoid commented Oct 3, 2024

@birkjernstrom really sorry for the delay, the project structure is easy to learn, but I had something comes up right now, please don't wait for me if someone want to work on this, Thanks!

@birkjernstrom birkjernstrom transferred this issue from polarsource/polar Nov 11, 2024
@birkjernstrom birkjernstrom transferred this issue from another repository Nov 13, 2024
@birkjernstrom birkjernstrom added the feature Net new feature development label Nov 13, 2024
@birkjernstrom birkjernstrom added this to the Self-Support milestone Nov 13, 2024
@birkjernstrom birkjernstrom removed this from Polar Nov 13, 2024
@birkjernstrom birkjernstrom changed the title Delete account from settings Delete organization(s) & account Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Net new feature development
Projects
Status: No status
Status: No status
Development

No branches or pull requests

2 participants