-
Notifications
You must be signed in to change notification settings - Fork 1
Description
How should we handle comment deletion?
I think there are two basic approaches:
A. Delete the comment and relink everything else
B. Mark the comment "DELETED" but leave it in place to account for any missing references
The approach we take probably depends on where in the comment threads the deletion is happening.
1 root comment with thread
If the root comment is deleted, and the root comment has threaded replies, use approach B. mark it "DELETED". This way the thread remains visible.
1.1 reply to root
If a reply to a root is deleted, and the reply is part of a longer thread, use approach B. mark it "DELETED". This way the thread remains visible.
(Alternatively, we can remove the reply root, but if there are replies to that root, the conversation may be confusing because there may be references to a now-not-visible reply.
1.2 last reply to root
If a comment is the last reply to a thread, use approach A. go ahead and delete the comment. (2.3 can also be deleted in the same way).
3 third root comment with no thread
If a comment is a root comment with no child threads attached to it, use approach A. go ahead and delete the comment. It should be OK to delete the comment since any other comments are not explicitly replying anything, and we don't need to worry about child threads that need to be relinked. e.g. we can remove comment 3, and comment 4 would be moved "up" to follow the end of the comment 2 thread. (4 is also treated like this).
Any thoughts? Other approaches? We could always just use approach B, marking comments deleted instead of actually removing them.
