-
Notifications
You must be signed in to change notification settings - Fork 157
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
[full-ci] Enhancement: Implement Copy/Move Conflict Dialog #6994
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
e769221
to
43db91a
Compare
Needs owncloud/owncloud-design-system#2149 to be linked |
703313d
to
740349b
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.
I like where this is going 🤩 some conceptual questions in the comments.
f9bdf99
to
c14b6d7
Compare
Results for oC10Files2 https://drone.owncloud.com/owncloud/web/25998/18/1 |
8090c4a
to
2018ce0
Compare
d103b4b
to
4a4d57e
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.
Checkbox for single conflict is removed, good idea 👍🏼 |
25af14e
to
12150d0
Compare
12150d0
to
6a65224
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.
I think it's good to merge now from my POV
Add translations, fix minor issues Bump SDK Remove "merge" folders Add changelog, Bump ODS Fix yarn.lock Fix existing unittests Add new unittests Bump ODS Set list files request depth to 1 Update changelog, Remove checkbox for single conflict
86c9530
to
11a5804
Compare
11a5804
to
d187d8b
Compare
SonarCloud Quality Gate failed. |
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.
Found one issue when moving inside subfolders of the respective webdav root (see comment).
Potential followups:
- trigger the conflict dialog for copy & move from location picker (only create followup ticket please. implementation would probably be too hacky right now)
- repeating the same action again leads to naming conflicts that are not handled: (1) move "asdf" to "target/asdf" and select "keep both" -> creates "target/asdf copy" when "target/asdf" already existed before. (2) again, move "asdf" to "target/asdf" and select "keep both" -> tries to create "target/asdf copy", but fails because it already exists from previous move with "keep both".
// Collect all conflicting resources | ||
const allConflicts = [] | ||
for (const resource of resourcesToMove) { | ||
const potentialTargetWebDavPath = join(webDavPrefix, targetFolder.path, resource.path) |
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.
const potentialTargetWebDavPath = join(webDavPrefix, targetFolder.path, resource.path) | |
const potentialTargetWebDavPath = join(webDavPrefix, targetFolder.path, resource.name) |
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.
Nice!
Description
See #6996
Related Issue
Open tasks: