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

Synchronize operation on live photo files #41765

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Nov 27, 2023

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:

  • I create a BeforeNodeRestoredEvent event to react to restore action from the trashbin
  • I created NodeRestoredEvent, for completeness.
  • Both are emitted from apps/files_trashbin/lib/Trashbin.php
  • I added an abortOperation method in both BeforeNodeDeletedEvent and BeforeNodeRenamedEvent to allow an event listener to abort the operation.

@artonge artonge changed the title WIP Synchronize operation on live photo files Nov 27, 2023
@artonge artonge self-assigned this Nov 27, 2023
@artonge artonge added this to the Nextcloud 28 milestone Nov 27, 2023
@artonge artonge added 2. developing Work in progress feature: files php Pull requests that update Php code labels Nov 27, 2023
@artonge
Copy link
Contributor Author

artonge commented Nov 27, 2023

/backport to stable28

@blizzz blizzz mentioned this pull request Nov 28, 2023
3 tasks
@artonge artonge force-pushed the artonge/feat/sync_live_photos branch from 56e501c to 3c03c96 Compare November 29, 2023 17:02
@artonge artonge marked this pull request as ready for review November 29, 2023 17:05
@artonge artonge force-pushed the artonge/feat/sync_live_photos branch 3 times, most recently from de8842d to fe81619 Compare November 29, 2023 17:28
@artonge artonge force-pushed the artonge/feat/sync_live_photos branch from fe81619 to 8e45909 Compare November 29, 2023 17:31
@artonge artonge force-pushed the artonge/feat/sync_live_photos branch 5 times, most recently from 35bf478 to 0f5b386 Compare November 29, 2023 18:05
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge force-pushed the artonge/feat/sync_live_photos branch from 0f5b386 to 2f6a4bf Compare November 29, 2023 18:07
@artonge artonge added the pending documentation This pull request needs an associated documentation update label Nov 29, 2023
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add cypress tests

Copy link
Contributor Author

@artonge artonge Nov 30, 2023

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

Copy link
Member

@ArtificialOwl ArtificialOwl left a comment

Choose a reason for hiding this comment

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

🐘

@artonge artonge merged commit bdc7c64 into master Nov 30, 2023
50 checks passed
@artonge artonge deleted the artonge/feat/sync_live_photos branch November 30, 2023 09:33
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 30, 2023
@blizzz
Copy link
Member

blizzz commented Nov 30, 2023

fixed milestone. master is 29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress feature: files pending documentation This pull request needs an associated documentation update php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🖼️🔄️ Synchronization of the two files
4 participants