Skip to content
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

Dont lose revisions when replacing #3896

Merged
merged 3 commits into from
May 23, 2023

Conversation

aduffeck
Copy link
Contributor

We no longer delete-and-upload targets of copy operations but ratheradd a new version with the source content.

This makes "overwrite when copying" behave the same as "overwrite when uploading".

Overwriting when moving a file still deletes the old file (moves it into the trash) and replaces the whole file including the revisions of the source file.

Fixes owncloud/ocis#4797

@aduffeck aduffeck requested review from a team, labkode, ishank011 and glpatcern as code owners May 16, 2023 15:12
Copy link
Member

@micbar micbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests indicate that we change some expected behavior

@aduffeck
Copy link
Contributor Author

aduffeck commented May 19, 2023

@micbar The failing tests expect a file to be turned into a folder when a folder is copied onto (into? over?) them. Is that really the expected behavior here or should we rather adapt the tests?
Doing this operation isn't possible using the web UI and tools like cp also bail out in cases like that.

@micbar
Copy link
Member

micbar commented May 22, 2023

@aduffeck @individual-it Ok we need to change the test expectations.

aduffeck added 2 commits May 23, 2023 10:26
This makes "overwrite when copying" behave the same as "overwrite when
uploading".

Overwriting when moving a file still deletes the old file (moves it into
the trash) and replaces the whole file including the revisions of the
source file.

Fixes owncloud/ocis#4797
@aduffeck aduffeck force-pushed the dont-lose-revisions-when-replacing branch from f810f49 to 563429e Compare May 23, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants