Open MercatoDocsSearch docsAPI reference

Enterprise

Record locks

Imagine two operators editing the delivery address on the same order. Decide what the second editor should see, how the first person's changes are protected, and who can release a lock after its owner leaves.

Record locks help teams avoid accidental overwrites when multiple users edit the same record at the same time.

Overview

Record locking supports two strategies:

You can apply locking only to selected resources and tune timeout/heartbeat values.

Configure record locking

Open Settings → Record locking and configure the behavior for your workspace.

Record locking settings page

Key settings:

Live collaboration signals

When another user opens the same record, participants are shown on the record page and notifications are sent.

Active editors and notifications for a shared record

Record lock UI is mounted through the backend record context spot (backend:record:current) and participates in non-CrudForm mutation hooks via GLOBAL_MUTATION_INJECTION_SPOT_ID (which resolves to backend:record:current). This means lock presence, notifications, and conflict dialogs can work on both:

Conflict handling

When optimistic locking detects incoming changes, users get a field-level comparison and can choose how to proceed:

Conflict resolution modal with changed fields

Access control

If incoming-change overrides are enabled globally, users still need the corresponding ACL/role feature to keep local edits during conflicts.

Run a two-editor check

Open one test record in two separate browser sessions. Save a change in the first and try to save the older form in the second. Repeat for a resource outside the configured lock scope so you can identify which protection each operator is seeing.

Previous: Agent Orchestrator overview · Next: Change Password