Skip to content

Preserve cache data when doing a cross storage move - #15360

Merged
MorrisJobke merged 7 commits into
masterfrom
cross-storage-move-cache
Apr 13, 2015
Merged

MorrisJobke merged 7 commits into
masterfrom
cross-storage-move-cache

Conversation

@icewind1991

Copy link
Copy Markdown
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

PVince81 commented Apr 8, 2015

Copy link
Copy Markdown
Contributor

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

@karlitschek

Copy link
Copy Markdown
Contributor

cool. Would be great to have this in 👍

@PVince81

PVince81 commented Apr 9, 2015

Copy link
Copy Markdown
Contributor

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

@icewind1991

Copy link
Copy Markdown
Contributor Author

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

Unrelated?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Unrelated?

yes - seen in other prs as well

@icewind1991

Copy link
Copy Markdown
Contributor Author

So merge this?

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

Copy link
Copy Markdown
Contributor

So merge this?

after review - yes

@PVince81

PVince81 commented Apr 9, 2015

Copy link
Copy Markdown
Contributor

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

@PVince81

PVince81 commented Apr 9, 2015

Copy link
Copy Markdown
Contributor

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 done
@PVince81

PVince81 commented Apr 9, 2015

Copy link
Copy Markdown
Contributor

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
Copy Markdown

A new inspection was created.

@icewind1991

Copy link
Copy Markdown
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

ghost commented Apr 13, 2015

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor

Tested and works 👍

@PVince81

Copy link
Copy Markdown
Contributor

Regression: #21236

@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

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