yuvipanda / notebooksharing.space

BSD 3-Clause "New" or "Revised" License
84 stars 10 forks source link

Deleting an upload #16

Open psychemedia opened 3 years ago

psychemedia commented 3 years ago

"I uploaded a document but it was the wrong one..."

Also puts me in mind of pastebin's "lifetime period" settings, though that adds compute/monitoring overhead to delete/expire uploads at the end of desired life.

yuvipanda commented 3 years ago

Options here are:

  1. 'secret token' provided to person who made paste, allowing delete operation. Easiest to do
  2. Lifetime period settings - somewhat orthogonal to the previous one. We should probably implement this anyway, and default to 'forever'
  3. Logins, so users can delete their stuff when they want. I wanna avoid logins if possible, so let's stay out of that if possible
psychemedia commented 3 years ago

How about allowing a user to set their own secret or use a provided secret?

If the user loses the secret, tough, (assuming you don't want the hassle of storing email addresses against notebooks as well as not wanting to have to manage user accounts?).

If you can engineer metadata in at the start that sets a 'forever' or very future timestamp as the lifetime, even if that is not referenced anywhere else, it might help with future proofing if you do want to add lifetimes in at some point?

kafonek commented 3 years ago

@yuvipanda I came across your awesome notebook sharing app because I wanted a way to demonstrate different approaches to solving problems offered in a stackoverflow answer (and opened https://github.com/notebook-sharing-space/nbss/issues/27 / https://github.com/notebook-sharing-space/nbss/issues/28 on that topic). I could definitely see myself using this service more when asking or answering stackoverflow questions. To that end, it'd be great to login with stackoverflow oauth (or github oauth?) and be able to delete or update Notebooks from there.