-
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
Feature/webdav locking frontend #32250
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32250 +/- ##
============================================
+ Coverage 64.76% 64.78% +0.01%
Complexity 18330 18330
============================================
Files 1198 1198
Lines 69382 69386 +4
Branches 1276 1276
============================================
+ Hits 44938 44949 +11
+ Misses 24072 24068 -4
+ Partials 372 369 -3
Continue to review full report at Codecov.
|
a075277
to
f2edd02
Compare
The code looks good, we'll need to add unit tests as well. I suggest we wait for the backend PR to be merged, unless you can make this PR detect whether the server supports locking :-D (also something to think about for Phoenix) |
f2edd02
to
abb501a
Compare
abb501a
to
f823de9
Compare
I've added some JS tests, still WIP:
|
The XML part fails on PhantomJS but not Chrome or Firefox. I've decided to take this opportunity to switch to ChromeHeadless, needs review: #33296 Edit: found another solution, using more cross-browser API calls |
f823de9
to
44771d7
Compare
@DeepDiver1975 I'm done with the JS tests. Had to do some small fixes in the original code, like: Mind retesting with real data ? Thanks! |
@ownclouders rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
7377907
to
771e3c0
Compare
Automated rebase with GitMate.io was successful! 🎉 |
@PVince81 one thing - which I failed to implement myself - if the user removes the last lock the icon in the file list is not removed. No idea how to do this .... |
@DeepDiver1975 I thought this would already work: whenever you change the FileInfoModel by setting attributes, there's a listener in FileList that would rerender the current row and would remove the lock. Maybe it needs more tweaking. |
=> backend issue, raised here #33822
|
@@ -205,6 +205,14 @@ img.icon-loading-small-dark, object.icon-loading-small-dark, video.icon-loading- | |||
background-image: url('../img/actions/info-white.svg'); | |||
} | |||
|
|||
.icon-lock-closed { |
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.
that seems not to be used anywhere
raised #33848 which I found while investigating the overwrite issue |
fixed file upload overwrite lock error to be better than "Locked". I've addressed all issues. There's only one left to raise separately after merge related to "Shared with you". @individual-it do you have any outstanding tasks ? (would be good to list as checkboxes) Once done we can manually squash commits into logical blocks. |
@ownclouders rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
ccd5ffb
to
8824e5e
Compare
Automated rebase with GitMate.io was successful! 🎉 |
8824e5e
to
2a09965
Compare
@PVince81 only two tests are left failing |
you're right. I got confused when editing and added the link in the wrong location. then when putting it in the right location I somehow forgot to restore the other checkbox to its state. I'll have a look. It's likely also a backend issue to be raised separately. |
@individual-it I've moved "bug: creating a folder structure with the same names as a shared and declined that is locked also locks the local structure" to a separate backend bug: #33885 please disable the test accordingly for now |
ok, the value -1 is used for infinite |
Handle http 423 on file operations Show lock status to file list in its own sidebar tab
12e0a0c
to
e997f7c
Compare
I've squashed all this into three commits, one for each of us. @individual-it I've disabled the test for #33885 Expecting all green now. |
Improve lock tab view code. Add tests for lock messages in file list Added tests for the lock notification messages when performing move, rename or delete. Add JS tests for file locking plugin Fixed XML parsing code to work with PhantomJS and potentially others by using more standard functions. Added filter to remove text nodes in case of paddings in the XML. Add missing translation. Don't show lock icon if lock array is empty Don't display sidebar lock tab when no locks set Properly trigger change event for activeLocks Adjust locked error message for upload
e997f7c
to
7cf5737
Compare
Fine by me 👍 |
stable10: #33951 |
Description
Frontend part of #31651
Related Issue
How Has This Been Tested?
Types of changes
Checklist:
Open tasks: