Replies: 8 comments 9 replies
-
Possibly a better solution here would be to allow collaborative editing. Kontent.ai do this by locking only the field being edited, not the whole document. Other editors can see the field "disabled" while one is editing it, and can click a "refresh" button to update their view with what the one editor has changed. |
Beta Was this translation helpful? Give feedback.
-
Alternative would be collaborative style of editing like GoogleDocs. Editors would be able to see their cursors and changes in real-time working on RC version and when ready they would publish it. A lot of effort, but I believe it would make it the first CMS impementing this ever, great USP. IMHO this topic should be of a great priority. In my project we already had few upsetting times when two people were working on a same page and overwrote their changes, some tears went out as well :,-( |
Beta Was this translation helpful? Give feedback.
-
Directus is working on such a feature using their new WebSocket API. Using WebSockets it should be easy to lock a certain document similar to the way WordPress does. |
Beta Was this translation helpful? Give feedback.
-
@isaackoz brings up great points in this thread: #3109 (comment) and again here: #3217 (comment) which is that we might want to think through how we might handle server events happening in the background, i.e. hooks from another collection that might have updated the document while the user is making edits. Not that this is technically similar to locked document editing, but the goals are the same, which is to prevent accidentally overriding valid changes. At least in the design phase it seems like we should be considering how to best handle this. |
Beta Was this translation helpful? Give feedback.
-
Hi Team, |
Beta Was this translation helpful? Give feedback.
-
https://payloadcms.com/ the video on the homepage at the top shows collaborative editing. Is this current functionality? |
Beta Was this translation helpful? Give feedback.
-
in #7970 it seems this was added. However, depending on the number of editors, optimistic locking would probably make more sense as it reduces the load on the database. Pessimistic locks (as it was implemented) is usually always a hassle and hard to get right, and if you get it right you will produce DB deadlocks. |
Beta Was this translation helpful? Give feedback.
-
I'd like to suggest another way to solve the underlying Problem. |
Beta Was this translation helpful? Give feedback.
-
If a user is editing a document, it should set a flag on the document as "being edited by". Then if another user visits the document, it should show a popup window that alerts them to the fact that the document is being edited by that user and prevent further editing. Maybe give an opportunity to "take over" the document.
EDIT: Document locking was released in 3.0
Beta Was this translation helpful? Give feedback.
All reactions