Lock the entity only if the user has performed changes on the page

Created on 25 September 2017, almost 8 years ago
Updated 22 March 2024, over 1 year ago

Problem/Motivation

Instead of locking the entity when its form is retrieved the entity should be locked when the user performs any change on the form in the browser.

Proposed resolution

  1. Through JS detect if a change has is made and then lock the entity.
  2. Inform other users that the content is locked if they are on the same edit form as well.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany hchonov πŸ‡ͺπŸ‡ΊπŸ‡©πŸ‡ͺπŸ‡§πŸ‡¬

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Is this a feature the maintainers want?

  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    The problem with this change is that you could simply disable javascript to not lock an entity when editing - therefore defeating the purpose of the module. Whilst I understand the idea I think if implement this the module would need to prevent all form submission of lockable entities if JS is disabled. Which is going to be fun. Also when do you lock - the moment a user enters a field, the moment something is changed or the moment they leave the field. And then what do you do if in the meantime someone has acquired a lock... this will be tricky.

Production build 0.71.5 2024