-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a check for a stale edit lock on start up #272
Comments
Design explorationInitial thought is to do this in the editOnController as part of turning the edit lock on. Most of it is there at the moment. The challenge is the long chain of disconnected functions. In particular, the chain associated with Should it
Mabye have to set a private member to distinguish. DocumentingTurn edit on
Current planIF we simply set editon status to NO_ONE_EDITING the normal turn edit on process will |
Checking self for stale edit lockWhen I am the user with a stale edit lock. Need to detect and tell me about it and modify the interface ASAP. WHen should/could it be done?
What might it look like
What should it do
Exploring how
|
RequirementsHas the stale lock
Found the stale lock of another
|
Detecting stale lock for "has stale lock"
Only delete lock file if you own
turnEditOff
**Implemented this ** |
Mapping process again - editingOnControllerturnEditOn
createEditingOnPage -> async postData
finalCheckForeditOnOff
turnEditOff
checkDeletion
|
Mapping what happens with staleThe pure turn on and off is working fine. It is the way in which stale lock is detected (by the different actors) and what happens where the problem occurs updateEditingDetails is calling staleEditLockThis check for staleEditLock is causing some disruption. -- this check should be done outside??? Looking to move the stale lock check out of updateEditingDetailsQuestion is where does this check need to be done
EditingOnController seems to be working CanvasCollections is nextThe nuts and bolts of turnEditOn/Off is happening, but the higher level - esp. for holder of stale lock - is not happening.
|
Test cases
saving to the configuration fileWhere is the saving done
startSaveCollections - calls isStaleEditLock
It is working here - not being able to save and getting repeated errors - but that's because we're not correctly remove it Updating the user interfaceWorking - but the turningEditOff is removing the edit lock when it is owned by someone else...not what we want here |
For various reasons there may be a stale edit lock hanging around.
onMount
or as part of turn edit lock onCurrent design
The text was updated successfully, but these errors were encountered: