no idea what to do with not found users + user deletion #7

Open
opened 2020-10-13 02:49:24 +00:00 by oat · 1 comment
Owner

when a user isnt found, that means the file should be gone too, right? cus then the user's deleted, meaning all their files should be deleted too, but then the problem is what if its just a db lookup error and then a random file just yeets itself

so i kinda have 2 options:

  1. implement user deletion, just hide files that the server fails to find a user for
  2. delete a file if the uploader isnt found, trusting the database lookup never fails

and im pretty sure im going with 1, so im gonna do that

when a user isnt found, that means the file should be gone too, right? cus then the user's deleted, meaning all their files should be deleted too, but then the problem is what if its just a db lookup error and then a random file just yeets itself so i kinda have 2 options: 1. implement user deletion, just hide files that the server fails to find a user for 2. delete a file if the uploader isnt found, trusting the database lookup never fails and im pretty sure im going with 1, so im gonna do that
Author
Owner

what if its just a db lookup error

im surprised i guessed this before looking if mongodb is terrible or not LMAO

> what if its just a db lookup error im surprised i guessed this before looking if mongodb is terrible or not LMAO
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: oat/in-the-database-2#7
No description provided.