[warning: long boring not very important post to follow] You deleted your comment and mine (which was a reply to yours) was deleted with it. That's funny. I think that's the first time this has come up. I never thought about this situation. I wonder if it's a problem? What happens is: all the comments are in a tree structure with the post itself as the top node. Under the top node their can be any number of second tier, or child, nodes (all the comments,) and then each of these second tier nodes can themselves have as many child nodes (comments on the first level of comments,) and so on and so on... But, if you delete any one node in the tree, all of the child nodes of that node (and children of those children, ect., all the way down the tree structure) are deleted as well. Hmmm.... Oh yes, now I'm remembering. The system didn't used to do this (it didn't actually go through and delete the children of a deleted comment,) but then we had a problem where if you deleted a parent node, the child nodes would still be there, but they wouldn't be visible. They'd be cast adrift in the database, as it were, and this was a big problem because if you hadn't read one of the cast away nodes, then it would keep showing up on the front page that you had an unread comment, but there would be no way to find the comment (you couldn't navigate down to it, becasue it would be no longer connected to the tree.) So I made it so the child comments are actually deleted (and not just cast adrift) when a node above is deleted. Maybe there should be some sort of warning when you go to delete a comment that has children. If you didn't want to delete the children you could just edit the comment (or post) and delete all the text (leaving a blank box) and then repost the now blank comment. Blah, blah, blah....
|
- jim 12-15-2000 7:19 pm