-
Notifications
You must be signed in to change notification settings - Fork 76
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
[SVCS-479] Raise exception for copy/move replace folder that orphans itself. #333
base: develop
Are you sure you want to change the base?
[SVCS-479] Raise exception for copy/move replace folder that orphans itself. #333
Conversation
See previous PR for discussion #274 |
6318684
to
b2dcd9f
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.
As discussed, please finish the implementation according to the final discussion in #274. Back to Add'l Dev 🔥
4cd003d
to
3dd4687
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.
@birdbrained Thanks for the rebase 👍 and please fix travis 🔥 .
Fixing an issue where when a child component is hooked up To a project, and they share the same provider, it is possible to silently delete files
[#SVCS-479] Replace folder from inside folder deletes both Add replace_will_orphan(src_path,dest_path) Checks if dest_path overwrite will orphan src_path Call replace_will_orphan in copy/move defs in waterbutler.core.provider
SVCS-479 Move three pieces of overwrite conflict logic from move/copy into handle_naming and rename handle_naming to handle_conflict. Improved logic and reduced code.
There was some places where the http method 'get' was written in lowercase. this was changed to upper case to match the rest of the codebase, and broke some tests. This fixes those tests also.
Box's validate_v1_path http method name should be lowercase.
0b546dc
to
e012a51
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.
This PR is blocked by: #341. Work will continue once that PR has been merged.
Ticket
https://openscience.atlassian.net/browse/SVCS-479
Replaces: #274
Purpose:
Replace folder from inside folder deletes both
Changes:
Side effects
Folder move/copies that use conflict=replace may now be more costly