feat(copies): matches between this PC and the server, Integrate and merge (owner review 6, v1.2.0) (#74)
CI / Build and test (push) Successful in 13m44s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 16s
Release / Build, test and publish (push) Successful in 26m34s
CI / PostgreSQL 16 integration (push) Failing after 17m36s
CI / PostgreSQL 17 integration (push) Failing after 15m36s
CI / Docker image (push) Successful in 1m12s
Release / Server image (push) Failing after 15s

The same time-lapse on a server and on this PC under different ids, or twice on this PC, is recognised,
compared and settled as the owner asked in owner review 6.

Matches are found after each sync refresh, through the server's new photo lookup, and after the jobs that
change photos. The default is to ask every time. Server › Matches offers:
- Keep apart, which is remembered;
- Link only and Unlink;
- the Compare dialog: photos, details line by line, projects and the plan.

Integrate completes both sides. Photos default to Union, projects are copied across, and a losing version
goes to the trash only after a hash check. Afterwards new photos move by themselves, and deletions wait for
the user.

A merge of two local sequences verifies every photo before the other sequence goes to its archive's trash.
Upload all local skips suspected matches and flags them.

Migration 0012 adds the found_copies and copy_probes tables. Jobs 25 (Integrate) and 26 (MergeSequences) are
new, and so are the server capabilities photo-lookup and upload-into.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #74.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-18 15:20:29 +01:00
1 parent 43719bb5c5
commit f33bcac32e
586 files changed
+41546 -280

No files matched your search

+36
View File
@@ -133,4 +133,40 @@
<data name="Errors.Videos.TrashMismatch" xml:space="preserve"><value>The trashed video no longer matches its record; it stays in the trash.</value></data>
<data name="Errors.Videos.Busy" xml:space="preserve"><value>A job is using {0}; try again when it ends.</value><comment>{0} file name</comment></data>
<data name="Errors.Videos.CannotPlay" xml:space="preserve"><value>Windows cannot decode this file here; Show in folder opens its folder.</value></data>
<data name="Errors.Copies.StalePlan" xml:space="preserve"><value>The sequences changed since the plan: compare them again.</value></data>
<data name="Errors.Copies.LinkTaken" xml:space="preserve"><value>{0} is already linked to another sequence of {1}.</value></data>
<data name="Errors.Copies.DetailsChanged" xml:space="preserve"><value>The details changed on one side meanwhile; the photos are in place, compare again.</value></data>
<data name="Errors.Copies.Changed" xml:space="preserve"><value>{0} changed while it was being merged; nothing went to the trash.</value></data>
<data name="Errors.Copies.ChangedFile" xml:space="preserve"><value>{0} no longer matches its recorded hash; nothing went to the trash. Run Verify.</value></data>
<data name="Errors.Copies.DamagedPhotos" xml:space="preserve"><value>Verify found changed or damaged photos in {0} that nothing else holds; repair them before merging.</value></data>
<data name="Errors.Copies.RemoteGone" xml:space="preserve"><value>The server deleted its sequence meanwhile; nothing more was sent.</value></data>
<data name="Errors.Copies.VerifyFailed.one" xml:space="preserve"><value>{0} photo did not match after copying: nothing went to the trash.</value></data>
<data name="Errors.Copies.VerifyFailed.other" xml:space="preserve"><value>{0} photos did not match after copying: nothing went to the trash.</value></data>
<data name="Errors.Copies.Kept.one" xml:space="preserve"><value>{0} photo stayed as it was; the job log says why.</value></data>
<data name="Errors.Copies.Kept.other" xml:space="preserve"><value>{0} photos stayed as they were; the job log says why.</value></data>
<data name="Errors.Copies.ProjectsKept.one" xml:space="preserve"><value>{0} project was not copied; the job log says why.</value></data>
<data name="Errors.Copies.ProjectsKept.other" xml:space="preserve"><value>{0} projects were not copied; the job log says why.</value></data>
<data name="Errors.Copies.ProjectsUnreachable" xml:space="preserve"><value>The projects of {0} cannot be reached now.</value></data>
<data name="Errors.Copies.NoSpace" xml:space="preserve"><value>{0} needs {1} free; free some space and try again.</value></data>
<data name="Errors.Copies.Busy" xml:space="preserve"><value>A job is working on one of these sequences; try again when it ends.</value></data>
<data name="Errors.Copies.Unsent" xml:space="preserve"><value>Send or discard the workspace changes of {0} first.</value></data>
<data name="Errors.Copies.BothLinked" xml:space="preserve"><value>Both sequences are linked to {0}: integrate them there first.</value></data>
<data name="Errors.Copies.TrashBlocked" xml:space="preserve"><value>{0} cannot go to the trash: {1}</value></data>
<data name="Errors.Copies.NoAddRight" xml:space="preserve"><value>This account may not add photos to a server sequence it does not own; ask for the Edit right.</value></data>
<data name="Errors.Copies.DetailsUnchosen.one" xml:space="preserve"><value>Choose {0} detail first.</value></data>
<data name="Errors.Copies.DetailsUnchosen.other" xml:space="preserve"><value>Choose {0} details first.</value></data>
<data name="Errors.Copies.KeptUnchosen" xml:space="preserve"><value>Choose the sequence to keep.</value></data>
<data name="Errors.Copies.NeedsNewerServer" xml:space="preserve"><value>{0} needs an update to integrate sequences.</value></data>
<data name="Errors.Copies.NoUploadRight" xml:space="preserve"><value>The server account may not upload photos.</value></data>
<data name="Errors.Copies.NoFetchRight" xml:space="preserve"><value>The server account may not download originals.</value></data>
<data name="Errors.Copies.NoEditRight" xml:space="preserve"><value>The server account may not change the details.</value></data>
<data name="Errors.Copies.NoDeleteRight" xml:space="preserve"><value>The server account may not delete these photos.</value></data>
<data name="Errors.Copies.ArchiveOffline" xml:space="preserve"><value>The archive of {0} is offline; connect it and try again.</value></data>
<data name="Errors.Copies.FolderMoved" xml:space="preserve"><value>{0} is not where the index has it; try again after the next scan.</value></data>
<data name="Errors.Copies.NotThere" xml:space="preserve"><value>These photos are no longer deleted on the other side; nothing went to the trash.</value></data>
<data name="Errors.Copies.OtherVersionGone" xml:space="preserve"><value>The other version is no longer on both sides; nothing went to the trash.</value></data>
<data name="Errors.Copies.FolderChanged" xml:space="preserve"><value>The index has not read every photo in the folder of {0}; try again after the next scan.</value></data>
<data name="Errors.Copies.PhotosUnchosen" xml:space="preserve"><value>Choose a version for each different photo first.</value></data>
<data name="Errors.Copies.MainChanged" xml:space="preserve"><value>The version is in the trash, but Main of {0} changed meanwhile; include the other version in Main by hand.</value></data>
<data name="Errors.Copies.MainNotEdited" xml:space="preserve"><value>The version is in the trash; this account may not change Main on {0}, so the other version stays excluded there.</value></data>
</root>