tea.mathoverflow.net - Discussion Feed (Simultaneous editing) Sun, 04 Nov 2018 23:19:31 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & Feed Publisher Scott Morrison comments on "Simultaneous editing" (4120) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4120#Comment_4120 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4120#Comment_4120 Fri, 26 Mar 2010 21:30:12 -0700 Scott Morrison This has been brought up at meta.SO.

]]>
Harald Hanche-Olsen comments on "Simultaneous editing" (4003) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4003#Comment_4003 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4003#Comment_4003 Mon, 22 Mar 2010 15:33:18 -0700 Harald Hanche-Olsen @Steve: Done. I removed my comment as well.

]]>
Steve Huntsman comments on "Simultaneous editing" (4001) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4001#Comment_4001 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4001#Comment_4001 Mon, 22 Mar 2010 15:17:37 -0700 Steve Huntsman Dror Speiser comments on "Simultaneous editing" (4000) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4000#Comment_4000 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=4000#Comment_4000 Mon, 22 Mar 2010 15:06:18 -0700 Dror Speiser So really this isn't such a big thing.
I vote for Andrew and nLab's solution. Especially if it's a standard others will recognize. ]]>
Harald Hanche-Olsen comments on "Simultaneous editing" (3994) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3994#Comment_3994 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3994#Comment_3994 Mon, 22 Mar 2010 13:58:43 -0700 Harald Hanche-Olsen It's well and good to get feedback that others are entering comments, but my question was about editing questions (and answers). I don't think it should be possible to lock a file for editing (someone might keep such a lock forever), but it certainly ought to be possible to get a warning if someone else is currently editing a post when you hit the edit button. But more importantly, if a someone else has posted an edit between the time you hit edit and the time you submit, the submit should not succeed, at least not without flashing red lights and a siren going off and the new “submit” button making it clear that you are about to overwrite someone else's work. Ideally, you should get to see the changes the other person did, plus your own editing buffer unchanged, and whatever tools will help you merge your own edit with the other person's. That last bit may be quite hard to do, but I think the loud warning is important.

]]>
Andrew Stacey comments on "Simultaneous editing" (3993) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3993#Comment_3993 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3993#Comment_3993 Mon, 22 Mar 2010 13:55:57 -0700 Andrew Stacey The original question is slightly different to simultaneously adding comments or answers. When editing a post, then that post ought to be locked so that no-one else can edit it (within some timelimit). That is nothing to do with AJAX or any javascript since the request to edit goes directly to the server as a regular request.

The lock can, of course, be "soft" in that if you try to edit a locked question you get the response "X has been editing this question for N minutes, do you want to break the lock?". That's what the nLab software does.

]]>
Harry Gindi comments on "Simultaneous editing" (3989) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3989#Comment_3989 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3989#Comment_3989 Mon, 22 Mar 2010 12:38:07 -0700 Harry Gindi Dror Speiser comments on "Simultaneous editing" (3988) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3988#Comment_3988 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3988#Comment_3988 Mon, 22 Mar 2010 12:36:52 -0700 Dror Speiser When you press to add a comment ajax is invoked to show newest comments. At the same time the server can store that you started editing a comment, and on the ajax return it can also say if someone started.
Only technical consideration I can think of, that isn't too problematic, is after how many seconds of waiting on a user to post - but still hasn't - do you remove the cache variable saying he's editing. 60 seconds or so? ]]>
Anweshi comments on "Simultaneous editing" (3984) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3984#Comment_3984 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3984#Comment_3984 Mon, 22 Mar 2010 11:41:35 -0700 Anweshi @fpqc. The answering script uses AJAX. That is what I had in mind. When an answer is already posted while you are typing one, then it shows on the screen. This is done via AJAX.

I was thinking that when more than one person is editing, some solution handled by AJAX could be useful.

]]>
Harry Gindi comments on "Simultaneous editing" (3979) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3979#Comment_3979 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3979#Comment_3979 Mon, 22 Mar 2010 09:36:09 -0700 Harry Gindi Anweshi comments on "Simultaneous editing" (3973) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3973#Comment_3973 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3973#Comment_3973 Mon, 22 Mar 2010 08:12:46 -0700 Anweshi In electrical engineering you would use a clock and state changes are permitted only when the clock is changing. Thus race conditions are avoided.

But I have no idea whatsoever, for a possible solution in AJAX connections. I am however hopeful it shouldn't be too complicated.

]]>
Steve Huntsman comments on "Simultaneous editing" (3972) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3972#Comment_3972 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3972#Comment_3972 Mon, 22 Mar 2010 08:09:51 -0700 Steve Huntsman Harry Gindi comments on "Simultaneous editing" (3971) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3971#Comment_3971 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3971#Comment_3971 Mon, 22 Mar 2010 07:18:43 -0700 Harry Gindi Harald Hanche-Olsen comments on "Simultaneous editing" (3970) http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3970#Comment_3970 http://mathoverflow.tqft.net/discussion/299/simultaneous-editing/?Focus=3970#Comment_3970 Mon, 22 Mar 2010 07:16:56 -0700 Harald Hanche-Olsen This question was edited both by Steve Huntsman and me. To me, it looked like he had edited my edit and made it worse, almost an act of vandalism. So I left a seminasty comment about it. But later, it has occurred to me that we were probably editing the question at the same time, and my edit just happened to arrive first. (And so Steve is blameless after all.)

Is there no locking mechanism, or at least a way to warn a user that someone else edited the page? Or perhaps there is such a way, but subject to a race condition?

]]>