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

[FEATURE REQUEST] Enable User deletion #582

Open
Mikearaya opened this issue Oct 31, 2023 · 1 comment · May be fixed by #581
Open

[FEATURE REQUEST] Enable User deletion #582

Mikearaya opened this issue Oct 31, 2023 · 1 comment · May be fixed by #581
Labels
feature request Suggest an idea for this project

Comments

@Mikearaya
Copy link
Contributor

Mikearaya commented Oct 31, 2023

General overview

Two ways this can be implemented

  • soft-delete
  • hard-delete
  1. soft-delete:- have some type of flag such as 'DEACTIVATED' or use the existing deleted field. in this case, the user data still exists in the system but should not be visible unless reactivated again.
  2. hard-deletion: permanently deletes the user and removes all the footprints a user might have such as bookmarks, orders, subscriptions,s, etc...
@Mikearaya Mikearaya added the feature request Suggest an idea for this project label Oct 31, 2023
@Mikearaya Mikearaya linked a pull request Oct 31, 2023 that will close this issue
@Mikearaya
Copy link
Contributor Author

When guaranteeing a user's right to be forgotten how should we also guarantee a shop will get accurate stats in regard to sales and revenue?
After looking for a solution I came to the conclusion that the only way we can ensure order and sales records are accurate is to use data anonymization or data masking instead of removing the record from DB completely.

so when on hard deletion case we remove all metadata of the user and obfuscate the remaining data which is irreversible and run some kind of middleware before each request to determine if the user is not either deactivated or deleted.

@pozylon you want to add anything to this?

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

Successfully merging a pull request may close this issue.

1 participant