Lock System for Word Edits#765
Open
nole2701 wants to merge 4 commits into
Open
Conversation
✅ Deploy Preview for dailp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented a lock for word editing.
When multiple people are editing the same word, they risk overwriting each others changes. The lock will prevent a second user from entering the edit panel for a word if someone is already editing it - throwing an alert instead.
The lock is released when the editing user cancels, saves, navigates to another page, or closes the tab/browser.
In the case of forceful closure (PC crash, browser crash, power outage, wifi cut etc.), there is a timeout set to 5 minutes where the lock will automatically be released at that time.
Idle users will also be subject to the timeout.
There is not yet implementation of real-time updates for notifying denied users when a word lock has been released, or a heartbeat system to refresh the lock if the user is actively editing and requires more than 5 minutes of access.
More information on the google doc: https://docs.google.com/document/d/1ypAKyL9mZb-B2yNpTJV6D8EwL7RBzx5ihTc_o3ftuyU/edit?tab=t.0#heading=h.3n1qmosfu6h7