-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
RFC: Deleting users with associated orders #3138
Comments
@epicery, we keep the user object and scramble it's data. |
I agree with deleting as much PII as possible and renaming the user to "Deleted user <some_id>. I'm not sure on how far we can go with scrambling data before we run into other problems. |
I agree that we should explore the approach proposed by @stem if that's compliant with GDPR. Are there some rules to respect for not being able to reverse scrambled data with real users data? |
We could use SecureRandom to generate a new email - eg. |
Hi all, have we reached consensus here? We are getting requests from users to delete their accounts but I can’t tell if there is a Solidus best practice for that. Where has this conversation arrived now that we’re 2 years out? I’m happy to submit PRs if needed. |
Hey @brchristian, I think we should go with extracting the current logic that deletes users in a configurable class that contains the logic for that action. In the beginning, it should just be identical to what we have now. After that, we can provide another opt-in class that does something more advanced like scrambling data. I suspect this is not enough because each store can have users' references in other tools (like marketing or OMS integrations) and they will need to add custom logic to remove users from those platforms as well. What do you think? |
Hi @kennyadsl that is a very good suggestion. I would also suggest that we include the logic for whether users are eligible for deletion on the backend, as currently we don’t allow the backend to delete users unless |
Makes sense, we can even call this action differently than |
We are running into this a lot lately and I think we should provide a solution to be GDPR compliant. Some thoughts:
That said, I think we should be able to keep addresses that are attached to orders (for legal and accounting reasons), but should remove the address from the users address book (same with payment sources in users wallet). The user record can be deleted, since Solidus does not need an All of this should be good enough to be GDPR compliant. Obvious disclaimer: I am not a lawyer |
Currently we restrict to delete a user with an exception if the user has any orders. Some businesses might want to allow to delete users with incomplete orders. This allows to override the can_be_deleted? method in the user class. Refs solidusio#3138
I added a PR that allows to at least change the deletion validation logic. Stores can override the |
Currently we restrict to delete a user with an exception if the user has any orders. Some businesses might want to allow to delete users with incomplete orders. This allows to override the can_be_deleted? method in the user class. Refs solidusio#3138
Currently we restrict to delete a user with an exception if the user has any orders. Some businesses might want to allow to delete users with incomplete orders. This allows to override the can_be_deleted? method in the user class. Refs solidusio#3138
Currently we restrict to delete a user with an exception if the user has any orders. Some businesses might want to allow to delete users with incomplete orders. This allows to override the can_be_deleted? method in the user class. Refs solidusio#3138
I remember we did a fair bit of research back in the day and it was distilled into solidus_gdpr, which allows you to define different "data segments" and how to handle them with respect to the different rights afforded by GDPR. Have you already taken a look at that? |
The deletion logic can now be configured. See #4471. We can still provide more robust support. Moving it to discussions. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
After talking with @elia and @jacobherrington about how we should tackle #3126, I think it's better for everybody to have a say on this particular issue. (I think #2221 is also related to this?)
Initially, I plan to submit a PR to hide the
delete
button for those users that have at least one order associated and then work from there on whatever the community consensus is.The proposed ideas to completely completely fix the aforementioned issue are the following:
Deleted user <some_id>
Take into consideration that this is something that stores administrators must be aware of, it should be GDPR compliant and last but not least, orders can't be deleted whatsoever.
Let me know what you think! 🙌
The text was updated successfully, but these errors were encountered: