Create Deleted At Column in the database and back fill user data #530
Labels
complexity: moderate
Time needed to do this ticket will be moderate e.g. 1-2 days
javascript
Pull requests that update Javascript code
maintenance
Maintenance / chore work
priority: soon
Should be prioritized soon.
stale
This issue or PR is inactive.
state: approved
Ready to go. Not blocked or pending.
Milestone
Overview
When a user requests to be deleted, we soft delete them and hash their personal details. If we want to find a list of dates users were deleted, we can guess when the user was deleted by seeing if the user is set as
user.active
=false and take the date in theupdatedAt
column. However, we would prefer for this data to have its own column. We want to also add a nullable column to the user called "deletedAt" so we can have the date of when the user was deleted for monitoring purposes. We also want to backfill the dataAction Items
uesr.deletedAt
column to the date ofuser.updatedAt
where theuser.active
is set to falseThe text was updated successfully, but these errors were encountered: