-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Include settings for the persistent locks #36452
Conversation
4657dcc
to
d430f64
Compare
Thanks!
|
Codecov Report
@@ Coverage Diff @@
## master #36452 +/- ##
=========================================
Coverage 64.66% 64.67%
- Complexity 19343 19350 +7
=========================================
Files 1279 1281 +2
Lines 75600 75623 +23
Branches 1333 1333
=========================================
+ Hits 48885 48907 +22
- Misses 26323 26324 +1
Partials 392 392
Continue to review full report at Codecov.
|
Section and header changed.
I don't think someone needs to lock a file for more than 1 day, but in any case the admin can change that value to allow a higher timeout.
I guess it depends on what is the expected usage and the expected tools:
Those values are being used by the LockManager, which is part of core. The API provided through webdav is already using that LockManager. I'll wait for confirmation on the default values. I'd say we can increase the default timeout to 1 hour, but the maximum timeout looks good to me. |
Ok 👍
Well, I expect scenarios where someone locks a file, starts editing, then gets a coffee and talks to colleagues, then continues. All in all it takes 4 hours or so until the file is checked back in. Anyway, as you like, the admin can set the value as desired . Good to go from my side! THX |
@jvillafanez This change should not be merged without acceptance testing. |
89697ca
to
1c5f862
Compare
@micbar is this for 10.4 ? |
1c5f862
to
20543e4
Compare
This is ready from dev's point of view. To be decided if we want to merge it now, wait for additional acceptance tests from QA, or wait until we have the frontend for the persistent locks. |
Ping ? |
@pmaier1 we need to test that. @jvillafanez Please rebase |
20543e4
to
fa0262a
Compare
Doc relevant ! Pls file a doc issue! |
@jvillafanez @phil-davis We need to figure out why the acceptance tests are failing. |
fa0262a
to
e54f487
Compare
e54f487
to
0cdc22d
Compare
It will behave as you've said. I think everyone would expect the same behaviour, so I don't think we need to change anything
This should have been fixed in the web UI. I've added a minimum value in the HTML so most of the browsers shouldn't accept negative values. "0" is still permitted, but we might need to set "1" as minimum (I'm not sure how locks will behave) In case negative values end up being saved (via occ for example, which is why I didn't want to add to much validation in the web UI), the behaviour is the following:
This way we ensure we have a reasonable timeout. |
I think we might need some kind of visual indicator if the value isn't in range (not positive) to show the value is wrong. Firefox handles this by itself showing a red border around, but not chrome. Taking into account the admin shouldn't try to set a negative value there because it doesn't make sense, we could skip this visual indication and blame the admin. |
Description
Include a configuration page in the "storage" section (to be reviewed) to configure the persistent locks.
Default values remain the same as they were before: 30 minutes by default and a maximum of 1 day
Related Issue
Related to https://github.com/owncloud/enterprise/issues/3131#issuecomment-554302666
Motivation and Context
Adjust lock timeouts in order to avoid the files to be locked forever
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
As said, default values are 30 minutes for the default timeout and 1 day for the maximum timeout. Note that it isn't possible to reset those values at the moment (the admin must set them again by himself if wanted)
@pmaier1 to check the placement, section, wording, and other things. Note sure if the storage section is the best place taking into account there are problems with the lock and external storages (all the users should use the same account for the locks to work properly, otherwise the locks will only lock the file "seen" by the user, but not the rest - the storages are different). It might be confusing.