Problem/Motivation

  • Views UI implements locking to prevent two people from concurrently editing the same View.
  • The node edit form does not implement locking. In other words, two people can be filling out the same node's edit form at the same time, the first person to save "wins", and the second person gets a validation error when they try to save (after they've already done a bunch of work filling out the form).
  • #3025231: Concurrent editing of layouts is very confusing is proposing to add locking (similar to Views UI) to Layout Builder.
  • The result of the above would mean that the Edit tab of a node would continue to not implement locking, while the Layout tab would. That seems potentially confusing.

Proposed resolution

  • Decide whether we should add content locking to core. There's prior art for this in https://www.drupal.org/project/content_lock.
  • If we decide not to, then discuss whether we're concerned about the difference in behavior between the Edit tab and the Layout tab, and what to do about it.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

effulgentsia created an issue. See original summary.

dixon_’s picture

Somewhat related: #2725523: Add a revision_parent field to revisionable entities

Once this issue has landed, concurrent editing can/should be looked at through a different lens (at least for revisionable entities). That issue effectively introduces branched revision trees and with a conflict management solution we can do things like automated 3-way merging.

dixon_’s picture

quietone’s picture

Project: Drupal core ideas » Drupal core
Version: » 11.x-dev
Component: Idea » entity system
Status: Active » Postponed (maintainer needs more info)

The Ideas project is being deprecated. This issue is moved to the Drupal project. Check that the selected component is correct. Also, add the relevant tags, especially any 'needs manager review' tags.

Part of me think this is a duplicate. Is it? Is this still applicable?

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Think this can be closed. There is https://www.drupal.org/project/content_lock which I've used before and works pretty well.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.