-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add enable lock file action checkbox #37720
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
Conversation
This moves PR #37702 over to |
9372746
to
243455e
Compare
Codecov Report
@@ Coverage Diff @@
## master #37720 +/- ##
============================================
- Coverage 64.71% 64.71% -0.01%
Complexity 19386 19386
============================================
Files 1283 1283
Lines 75732 75734 +2
Branches 1333 1333
============================================
+ Hits 49009 49010 +1
- Misses 26331 26332 +1
Partials 392 392
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@micbar who should review this? |
243455e
to
4efa7cb
Compare
4efa7cb
to
c20449c
Compare
c20449c
to
b8781a0
Compare
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.
👍 from my side
0a2b83e
to
232f3d6
Compare
What happens about code coverage? |
Description
Adds a checkbox to admin settings "Manual File Locking" to "Enable manual file locking on clients"
Checking the checkbox does the same as:
occ config:app:set files enable_lock_file_action --value yes
Unchecking does the same as:
occ config:app:set files enable_lock_file_action --value no
Note: the 3rd commit adjusts the checkbox description so that it says "Enable manual file locking on clients".
Related Issue
This is a follow-on enhancement from all the file locking additions.
Also related to the discussion in #37620 about the meaning/interpretation of this setting. Any client that wants to support manual file locking can check this when deciding whether to give the user options for locking files. (A separate PR proposes to expose this setting in the capabilities API endpoint)
How Has This Been Tested?
Manually check the new checkbox, the browse to the Files page and confirm that the "Lock file" action is available for a file.
Manually uncheck the new checkbox, the browse to the Files page and confirm that the "Lock file" action is not available for a file.
Types of changes
Checklist: