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

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

+17
View File
@@ -222,6 +222,12 @@
<data name="Archive.Log.ConvertSuperseded" xml:space="preserve"><value>{0}: desde que esta conversão foi confirmada, outra já criou a respetiva cópia neste formato; não é criada uma segunda cópia.</value></data>
<data name="Archive.Log.Converted" xml:space="preserve"><value>{0}: fotografias substituídas pela respetiva conversão: {1}</value></data>
<data name="Archive.Log.ConvertedNew" xml:space="preserve"><value>{0}: fotografias convertidas numa nova sequência: {1}</value></data>
<data name="Archive.Log.CopyFetched" xml:space="preserve"><value>{0}: recebido na sequência deste PC</value></data>
<data name="Archive.Log.CopyKept" xml:space="preserve"><value>{0}: versão anterior mantida, porque {1}</value></data>
<data name="Archive.Log.CopyProject" xml:space="preserve"><value>Projeto {0} copiado como {1}</value></data>
<data name="Archive.Log.CopyProjectKept" xml:space="preserve"><value>Projeto {0} não copiado: {1}</value></data>
<data name="Archive.Log.CopyReplaced" xml:space="preserve"><value>{0}: versão anterior movida para o lixo</value></data>
<data name="Archive.Log.CopySent" xml:space="preserve"><value>{0}: enviado para a sequência ligada</value></data>
<data name="Archive.Log.DryRun" xml:space="preserve"><value>Simulação: nada foi alterado.</value></data>
<data name="Archive.Log.DuplicateGroup" xml:space="preserve"><value>Cópias a mais de {0}: {1}</value></data>
<data name="Archive.Log.DuplicatesDone" xml:space="preserve"><value>Grupos de duplicados: {0}, cópias a mais: {1}</value></data>
@@ -238,7 +244,17 @@
<data name="Archive.Log.ImportFailed" xml:space="preserve"><value>Não copiado: {0} ({1})</value></data>
<data name="Archive.Log.IndexReclaimable" xml:space="preserve"><value>Índice: {0} recuperáveis</value></data>
<data name="Archive.Log.IndexVacuumed" xml:space="preserve"><value>Índice compactado: {0} libertados</value></data>
<data name="Archive.Log.KeptReason.Busy" xml:space="preserve"><value>uma tarefa está a trabalhar nela</value></data>
<data name="Archive.Log.KeptReason.FramesChanged" xml:space="preserve"><value>as fotografias foram alteradas entretanto</value></data>
<data name="Archive.Log.KeptReason.NotInPlace" xml:space="preserve"><value>a versão que a substitui não está no lugar</value></data>
<data name="Archive.Log.KeptReason.NotInPlaceServer" xml:space="preserve"><value>a versão que a substitui não está no lugar no servidor</value></data>
<data name="Archive.Log.KeptReason.Offline" xml:space="preserve"><value>o arquivo está offline ou só de leitura</value></data>
<data name="Archive.Log.KeptReason.Refused" xml:space="preserve"><value>o servidor recusou-a ({0})</value></data>
<data name="Archive.Log.KeptReason.Unhashable" xml:space="preserve"><value>a fotografia não pode ser lida agora</value></data>
<data name="Archive.Log.KeptReason.WouldEmpty" xml:space="preserve"><value>a sequência ficaria vazia</value></data>
<data name="Archive.Log.MaintenanceDone" xml:space="preserve"><value>Bloqueios obsoletos: {0}, ficheiros temporários: {1}, pacotes compactados: {2}, marcas de duplicado alteradas: {3}</value></data>
<data name="Archive.Log.MergeCopied" xml:space="preserve"><value>{0}: copiado e verificado</value></data>
<data name="Archive.Log.MergeTrashed" xml:space="preserve"><value>Movido para o lixo: {0}</value></data>
<data name="Archive.Log.OrphanFolders" xml:space="preserve"><value>Sequências sem a respetiva pasta: {0}, pastas não indexadas: {1}</value></data>
<data name="Archive.Log.Orphans" xml:space="preserve"><value>Fotografias não indexadas: {0}, fotografias em falta: {1}</value></data>
<data name="Archive.Log.ProxiesDone" xml:space="preserve"><value>{0}: criados {1}, reutilizados {2}, ilegíveis {3}, em espera {4}</value></data>
@@ -260,6 +276,7 @@
<data name="Archive.Log.SyncDeletedHere" xml:space="preserve"><value>{0}: eliminado neste PC, não transferido</value></data>
<data name="Archive.Log.SyncDeletedThere" xml:space="preserve"><value>{0}: eliminado no servidor, não carregado</value></data>
<data name="Archive.Log.SyncFrameChanged" xml:space="preserve"><value>{0}: o respetivo fotograma foi alterado aqui entretanto, não transferido</value></data>
<data name="Archive.Log.SyncIntoRefused" xml:space="preserve"><value>O servidor recusou fotografias na respetiva sequência; seguem como fotografias novas e o servidor arquiva-as pelo hash</value></data>
<data name="Archive.Log.SyncMissing" xml:space="preserve"><value>{0}: em falta, não carregado</value></data>
<data name="Archive.Log.SyncNoPreview.one" xml:space="preserve"><value>{0:N0} fotograma não tem proxy nem miniatura no servidor</value></data>
<data name="Archive.Log.SyncNoPreview.other" xml:space="preserve"><value>{0:N0} fotogramas não têm proxy nem miniatura no servidor</value></data>