Feature #113
openSupport #104: Auth refactor
newly created users will own the last deleted user's entities
0%
Description
When a user is deleted, entities owned by that user are not deleted.
this leaves a bunch of orphaned entities in the database with a user ID that doesn't link to a user.
however, when users are created, the ID associated with them appears to get auto-incremented.
So if you have users 1,2, and 3; and then you delete user 3; you'll have users 1 and 2
you will also have whatever tasks/projects/etc users 3 created still in the database.
if you then create a user, that user will be given user id 3. that user will then own all the entities for the previous user 3.
Updated by Sam Pearson 3 months ago
implement a cascading delete to resolve this but also maybe blacklist a user ID once it's been used?
Updated by Sam Pearson about 2 months ago
pretty sure I fixed this but need to double-check before closing the ticket;
I tried to simultaneously build tests and fixes into different branches and the merge was a mess.