Track updatedBy User on Document Updates
#15818
PatrikKozak
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Track
updatedByUser on Document UpdatesThis feature proposes adding an
updatedByfield to track which user last modified a document, enabling more intelligent conflict detection and collaborative editing features.The Problem
Currently, the stale data detection system cannot distinguish between:
This limitation requires us to disable stale data checking entirely for autosave-enabled collections and globals, which means users editing the same autosave-enabled document won't be warned when another user has made changes.
Proposed Solution
Add an
updatedByfield that tracks which user last updated the document. The stale data check would then compare:This allows autosave to work seamlessly while still protecting against concurrent editing conflicts when multiple users are involved.
Additional Use Cases
Tracking
updatedBycould also enable:Related Issues
This would address:
Status
This is a breaking change planned for v4.0, as it would add a new field to the database schema and require migration for existing documents.
Implementation details:
updatedByas a system field (similar toupdatedAt,createdBy)📢 Feedback Welcome
What other problems could
updatedBytracking solve in your workflows? Are there concerns about performance, privacy, or implementation details? Community input will help shape the final design for v4.Beta Was this translation helpful? Give feedback.
All reactions