Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: The ability to delete

by kiat (Vicar)
on Oct 22, 2005 at 16:37 UTC ( [id://502224]=note: print w/replies, xml ) Need Help??


in reply to Re: The ability to delete
in thread The ability to delete

It is problematic to delete nodes that have replies. Since it's impossible to know if someone is in the middle of typing a reply to a node that is about to be deleted, there exists the potential for race conditions that could leave replies floating without parents, and thus without context.
Yes, I understand it's problematic, which is why I thought the delete feature should only apply when certain conditions are met, such as when it has not yet been responded to.

I appreciate your responding, thanks.

Replies are listed 'Best First'.
Re^3: The ability to delete
by eric256 (Parson) on Oct 23, 2005 at 03:53 UTC

    The problem is, as was pointed out, you can't know if someone is in the process of replying while you are in the process of deleting. ;) Plus I think the implementation would be kind of worrisome since you would want to make absolutly sure there was no loop hole to allow deletion of nodes. In other words, if no one can delete nodes then you don't have to worry about securing the method of deletion. If any *one* group can delete nodes then it becomes a security concern. Maybe thats false reasoning on my part but at the moment it seems legit to me. ;)


    ___________
    Eric Hodges
      Let's say I just wrote a reply A but changed my mind and would like to delete A. Assuming I'm fast enough and my reply has not been responded to - whether getting a sub-reply or receiving votes, it should be possible for me to delete A. Say while in the process of deleting A, another user composes a reply to it. When he's done and clicks Submit, A has already disappeared so his submission should fail and he should get a message saying the parent reply no longer exists.

      It's a very small benefit to have, so I guess it doesn't justify the troubles to tweak it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://502224]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found