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

Preserve cache data when doing a cross storage move #15360

Merged
merged 7 commits into from
Apr 13, 2015

Conversation

icewind1991
Copy link
Contributor

By preserving the file id we keep favorites and shares, and the sync client can properly detect it as a move and doesn't have to re-download the file.

To test:

  • Create a share or external storage so we have 2 storages to move between.
  • Favorite a file
  • Move the file to the other storage
  • Check that the file is still a favorite

cc @DeepDiver1975 @MorrisJobke

@PVince81
Copy link
Contributor

PVince81 commented Apr 8, 2015

Wow, that is cool.
Ref fileid stability ticket: #13310

@karlitschek
Copy link
Contributor

cool. Would be great to have this in 👍

@PVince81
Copy link
Contributor

PVince81 commented Apr 9, 2015

@icewind1991 I assume you're still working on this as the label is still "4 - Developing"

@icewind1991
Copy link
Contributor Author

Test Result (2 failures / +2)
Test\BackgroundJob\DeleteOrphanedSharesJobTest.testClearShares
Test\BackgroundJob\DeleteOrphanedSharesJobTest.testKeepNonFileShares

Unrelated?

@DeepDiver1975
Copy link
Member

Unrelated?

yes - seen in other prs as well

@icewind1991
Copy link
Contributor Author

So merge this?

@DeepDiver1975 DeepDiver1975 added this to the 8.1-current milestone Apr 9, 2015
@DeepDiver1975
Copy link
Member

So merge this?

after review - yes

@PVince81
Copy link
Contributor

PVince81 commented Apr 9, 2015

(the fix for the failing test was merged to master)

@PVince81
Copy link
Contributor

PVince81 commented Apr 9, 2015

Great work. Really cool 😄

  • move to external storage and back again: favorite info preserved
  • move to shared folder as recipient

@PVince81 PVince81 mentioned this pull request Apr 9, 2015
3 tasks
@PVince81
Copy link
Contributor

PVince81 commented Apr 9, 2015

Fixes #13274
Fixes #13307

@icewind1991 icewind1991 force-pushed the cross-storage-move-cache branch from c9ffaca to f605c98 Compare April 13, 2015 15:10
@scrutinizer-notifier
Copy link

A new inspection was created.

@icewind1991
Copy link
Contributor Author

move to shared folder as recipient 🚫 FAIL: the cache entry is created twice, once is the correct file (still favorite) and another one gets created

Fixed

@ghost
Copy link

ghost commented Apr 13, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/11471/
🚀 Test PASSed.🚀
chuck

@PVince81
Copy link
Contributor

I moved a favorited burger picture around in:

  • ext storage mount points
  • shared storages (as recipient)
  • shares from mount points
  • local folders

And also carried the burger pic inside a favorited "dir" folder between several of such folders.

The favorite information didn't get lost 👍

@MorrisJobke
Copy link
Contributor

Tested and works 👍

@PVince81
Copy link
Contributor

Regression: #21236

@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants