Uh oh!
There was an error while loading. Please reload this page.
Add listener and interfaces to allow versions migration across storage - #44187
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
8273c37 to
ebd56afCompareebd56af to
01a40eaCompare3bed871 to
975ef17Compare404bae4 to
65bbca7CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a9bbdea to
452a63eCompare4825f46 to
d3b22fdCompareUh oh!
There was an error while loading. Please reload this page.
b3224be to
5cacb07Compare5cacb07 to
363dd98Compare363dd98 to
61aac1fCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
14ef689 to
b2cf644CompareUh oh!
There was an error while loading. Please reload this page.
| /** @var Folder $source */ | ||
| foreach ($target->getDirectoryListing() as $targetChild) { | ||
| if ($event instanceof NodeCopiedEvent) { | ||
| $sourceChild = $source->get($targetChild->getName()); |
There was a problem hiding this comment.
is there any reason for not using the same method as used for renames.
The "rename logic" gets the nodes from a getDirectoryListing per folder while this has to do a get for every child. So the "rename logic" should be significantly more efficient.
There was a problem hiding this comment.
I think it failed in some way, let me finish testing on the groupfolder side, and I'll try it again.
There was a problem hiding this comment.
Right, in case of copy, we need to do the tree walking to have the id of the source in any case, so it won't improve performances to cache the nodes.
Uh oh!
There was an error while loading. Please reload this page.
emoral435
left a comment
There was a problem hiding this comment.
small nitpicks, but overall good PR :)
Uh oh!
There was an error while loading. Please reload this page.
0150a64 to
6430699CompareUh oh!
There was an error while loading. Please reload this page.
56d9a89 to
ba93fbbCompare…igration across storages Signed-off-by: Louis Chemineau <louis@chmn.me>
ba93fbb to
369274cCompare
Add new API to allow migrating version across backends. For example when moving a file to a groupfolder.
IVersionsImporterBackendand implement it inLegacyVersionsBackendThe equivalent Groupfolder PR is here: nextcloud/groupfolders#2860