Closed qisforq closed 1 month ago
Do not execute deletion right away, just create a deletion request which should be manually reviewed first
purge_user_data_requests
table to the postgres database to keep record of ongoing deletion requests along with their statusPerfect, this is a great approach. Eventually we can build an admin portal to handle the admin functions.
Regarding the approved support email address, what exactly has been implemented now, and what needs to be done in the future?
I didn't have a support email address in mind so I imagine we'd make one and have a Standard Operating Practice drafted to spell out the steps for someone to follow in deleting the relevant data for a given user. I can add this as a follow-on task potentially in the subsequent sprint.
In terms of this sprint, I think we can wrap it up with the following for now:
Rethinking the need for a limited functionality. I've gone with a more simple approach for now that signals to the user that the account deletion is pending. Added screenshots below for clarity into the general flow. Once the deletion is completed, the user should receive an email confirmation of the data deletion.
@qisforq I've copied the send email logic from the referral invite lambda function but it doesn't seem to be working. I'll check in with you tomorrow to see if there is some SES configuration that I need to be adding to get the lambda function code to work properly.
@chef-louis What issue are you running into? Are you getting an error?
@qisforq I am getting a fairly non-descript POST error in the console. So something fails on the email send logic as that's the last step in the lambda function.
@chef-louis I fixed it! π¨βπ§π¦ΎπΎπ―
It was because deleteUserDataRequest
was connected to a VPC, which counter-intuitively removes default internet access, in which case you would need to manually configure that access. I just removed access to the VPC, and now it works. One of those many quirks with AWS π
However, you'll also need to verify louis@athleti.fi in order to use that email address https://us-east-2.console.aws.amazon.com/ses/home?region=us-east-2#/identities
However, you'll also need to verify louis@athleti.fi in order to use that email address https://us-east-2.console.aws.amazon.com/ses/home?region=us-east-2#/identities
Gotcha, I was using my email as a placeholder test email. I'll add it to SES for now with the thinking that we'll update that once the we have something more official. Thanks for helping me debug and finding the solution!
No problem! Yeah that reminds me of another production task we need to take care of - moving SES out of sandbox mode
Just tested on my end, works as expected. Making a PR for the rest of the code
Objective:
Implement a "Delete Account" feature that allows users to request the deletion of their account, including a manual verification process and a built-in delay.
Sub-tasks:
Design the Delete Account user flow
Implement the Delete Account UI
Handle the Delete Account request
Implement manual verification process
Apply the built-in delay
Implement account deletion
Test and monitor