-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Synchronize operation on live photo files #41765
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
Conversation
|
/backport to stable28 |
a464f22 to
56e501c
Compare
56e501c to
3c03c96
Compare
| $view->chroot($fakeRoot); | ||
| \OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_restore', ['filePath' => Filesystem::normalizePath('/' . $location . '/' . $uniqueFilename), | ||
| 'trashPath' => Filesystem::normalizePath($file)]); | ||
| \OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_restore', ['filePath' => $targetPath, 'trashPath' => $sourcePath]); |
Check notice
Code scanning / Psalm
DeprecatedMethod
de8842d to
fe81619
Compare
fe81619 to
8e45909
Compare
35bf478 to
0f5b386
Compare
Signed-off-by: Louis Chemineau <[email protected]>
0f5b386 to
2f6a4bf
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.
Add cypress tests
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.
Validate logic with what's expected by the user, and add it as a comment
ArtificialOwl
left a comment
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.
🐘
|
fixed milestone. master is 29. |
This PR adds automatic management of live photos. This means that both file of a live photo will be kept in sync, if they are renamed, moved, or deleted.
A few extra changes were needed:
BeforeNodeRestoredEventevent to react to restore action from the trashbinNodeRestoredEvent, for completeness.apps/files_trashbin/lib/Trashbin.phpabortOperationmethod in bothBeforeNodeDeletedEventandBeforeNodeRenamedEventto allow an event listener to abort the operation.