File retention/deletion methods #7

Closed
opened 2022-01-04 01:31:35 +00:00 by schrumpel · 2 comments
Owner

Overhaul file deletion

File deletion currently does not remove the deleted file from the disk, this should be addressed with the following ideas.

  • Implement Hard Delete ( Files will be removed permamently from the database and the filesystem )
  • Implement Soft Delete ( Files will be made inaccessible for the public, retention period until hard delete should be around 7 days, until then soft deleted posts can be reviewed by the admins and in doubt of rightful deletion can be restored without problems, the retention period should be a config setting that can be any number -1 = keep the files in retention forever etc. )

What do we need for this?

  • New table in the database for deletion status
  • setInterval-System

If a moderator/admin soft deletes a file, there should be either a js alert or something more fancy that asks whatever should be done with this post, if soft delete, the post in questions immediately is unavailable for the public and can only be reviewed in the restricted area accessible by authorized staff, then the clock is ticking and the days set for the retention will be taken into account, if no action is taken the post(s) in question will be permamently deleted.

# Overhaul file deletion File deletion currently does not remove the deleted file from the disk, this should be addressed with the following ideas. * Implement Hard Delete ( Files will be removed permamently from the database and the filesystem ) * Implement Soft Delete ( Files will be made inaccessible for the public, retention period until hard delete should be around 7 days, until then soft deleted posts can be reviewed by the admins and in doubt of rightful deletion can be restored without problems, the retention period should be a config setting that can be any number -1 = keep the files in retention forever etc. ) What do we need for this? * New table in the database for deletion status * setInterval-System If a moderator/admin soft deletes a file, there should be either a js alert or something more fancy that asks whatever should be done with this post, if soft delete, the post in questions immediately is unavailable for the public and can only be reviewed in the restricted area accessible by authorized staff, then the clock is ticking and the days set for the retention will be taken into account, if no action is taken the post(s) in question will be permamently deleted.
schrumpel added the
K9
Backend
labels 2022-01-04 01:31:56 +00:00
Author
Owner

maybe also a reminder by the irc bot to post the current number of posts in retention once in a while so it wont be forgotten, I still miss the real Number 1

maybe also a reminder by the irc bot to post the current number of posts in retention once in a while so it wont be forgotten, I still miss the real Number 1
Flummi added the
Low Prio
label 2022-01-04 01:38:30 +00:00
Owner
https://git.lat/f0ck/f0ckv2/commit/49fb4bfc567a94fdbe3d8bddb8637751414dc954
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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: f0ck/f0ckv2#7
No description provided.