draw icon indicating copy to clipboard operation
draw copied to clipboard

Implement token mechanism for item ownership to move/edit

Open tranek opened this issue 12 years ago • 2 comments

I'm pretty sure that the Earth will blow up if two people try to move the same item/path at the same time.

One way to mitigate this is to implement an ownership token that's controlled serverside. Whose ever's click/drag message arrives at the server first should get the token and releases the token on mouseup (with a timeout failsafe). This would introduce a slight pause in moving an item as you wait for the server to say that it's okay to move.

Thoughts on the problem? Thoughts on server arbitrated ownership? Any better ideas?

tranek avatar May 07 '13 11:05 tranek

Again, see operational transforms! I'm sure they solve this problem. We handle this in a ghetto way on primarywall by locking objects during drag.. You also have to think about object ownership after move and a bunch of other stuff, this isn't a 5 minute job..

If you want to fix this properly, IE so it's robust then implement OT's, anything else imho is gonna introduce loads of new bugs.

JohnMcLear avatar May 07 '13 12:05 JohnMcLear

Not much that I've done here has been a 5 minute job lol! It'll be stewing in the back of my mind for the short-term.

tranek avatar May 07 '13 21:05 tranek