-
Notifications
You must be signed in to change notification settings - Fork 8
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
with files client automated locking we need a sane default value #164
Conversation
would prevent having locks with 0 tiemout because the config value is never changed on server there will be more locks since desktop files client will automatically lock office files making this more visible Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
discussed with @allexzander |
related change on desktop files client nextcloud/desktop#6027 |
I tend to agree that having a somewhat reasonable lock timeout is better, especially if automatic locking on clients happens more often now. We used to have this in the past but switched to the infinite one per discussion in #49. One issue with the default timeout is that if users intentionally lock because they go on a longer flight for example, then the lock would just timeout and no longer prevent other users from editing. However this seems more like and edge case compared to day to day usage and is still safeguarded by versions that one could restore to get changes back. Also admins might still be able to unlock anyways. There should also be a conflict dialog anyways so all predictable behaviour. Fine with me but involving @AndyScherzinger and @tobiasKaminsky as involved in the initial decision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change seems good to me, waiting for more comments before approving regarding changing the default
The fact that 0 means infinite was definitely a misunderstanding from us desktop files client team |
another related fix for desktop client |
Can you give me some additional context on why you would change this away from infinite? That just works around the problem of improper unlocking or at least that is how it sounds to me but I might be completely wrong here. Also checking the referenced decision, I expect:
|
assuming that the main reason for this PR was a misunderstanding over the use of 0 as an infinite timeout, I would like to close this one in favor of #175 (just improving the API doc around the lock-timeout) |
desktop client will schedule a server sync font expired locks to ensure we do not miss files being unlock after the timeout expired but as I said, I am all for closing this one in favor of doc improvements |
would prevent having locks with 0 tiemout because the config value is never changed on server
there will be more locks since desktop files client will automatically lock office files making this more visible