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}: outra conversão criou a cópia neste formato depois que esta foi confirmada; não é criada uma segunda cópia.</value></data>
<data name="Archive.Log.Converted" xml:space="preserve"><value>{0}: fotos substituídas pela conversão: {1}</value></data>
<data name="Archive.Log.ConvertedNew" xml:space="preserve"><value>{0}: fotos convertidas em uma nova sequência: {1}</value></data>
<data name="Archive.Log.CopyFetched" xml:space="preserve"><value>{0}: recebida na sequência deste PC</value></data>
<data name="Archive.Log.CopyKept" xml:space="preserve"><value>{0}: versão mais antiga mantida, {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 mais antiga para a lixeira</value></data>
<data name="Archive.Log.CopySent" xml:space="preserve"><value>{0}: enviada para a sequência vinculada</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 extras de {0}: {1}</value></data>
<data name="Archive.Log.DuplicatesDone" xml:space="preserve"><value>Grupos de duplicatas: {0}, cópias extras: {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} liberados</value></data>
<data name="Archive.Log.KeptReason.Busy" xml:space="preserve"><value>uma tarefa está trabalhando nela</value></data>
<data name="Archive.Log.KeptReason.FramesChanged" xml:space="preserve"><value>as fotos mudaram nesse meio-tempo</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 acervo está offline ou somente leitura</value></data>
<data name="Archive.Log.KeptReason.Refused" xml:space="preserve"><value>o servidor a recusou ({0})</value></data>
<data name="Archive.Log.KeptReason.Unhashable" xml:space="preserve"><value>a foto 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}, arquivos temporários: {1}, pacotes compactados: {2}, marcas de duplicata alteradas: {3}</value></data>
<data name="Archive.Log.MergeCopied" xml:space="preserve"><value>{0}: copiada e verificada</value></data>
<data name="Archive.Log.MergeTrashed" xml:space="preserve"><value>{0} movida para a lixeira</value></data>
<data name="Archive.Log.OrphanFolders" xml:space="preserve"><value>Sequências sem a pasta: {0}, pastas não indexadas: {1}</value></data>
<data name="Archive.Log.Orphans" xml:space="preserve"><value>Fotos não indexadas: {0}, fotos ausentes: {1}</value></data>
<data name="Archive.Log.ProxiesDone" xml:space="preserve"><value>{0}: criados {1}, reutilizados {2}, ilegíveis {3}, aguardando {4}</value></data>
@@ -260,6 +276,7 @@
<data name="Archive.Log.SyncDeletedHere" xml:space="preserve"><value>{0}: excluído neste PC, não baixado</value></data>
<data name="Archive.Log.SyncDeletedThere" xml:space="preserve"><value>{0}: excluído no servidor, não enviado</value></data>
<data name="Archive.Log.SyncFrameChanged" xml:space="preserve"><value>{0}: o quadro correspondente aqui mudou nesse meio-tempo, não baixado</value></data>
<data name="Archive.Log.SyncIntoRefused" xml:space="preserve"><value>O servidor recusou fotos na sequência dele; elas vão como fotos novas e o servidor as arquiva pelo hash</value></data>
<data name="Archive.Log.SyncMissing" xml:space="preserve"><value>{0}: ausente, não enviado</value></data>
<data name="Archive.Log.SyncNoPreview.one" xml:space="preserve"><value>{0:N0} quadro não tem nem proxy nem miniatura no servidor</value></data>
<data name="Archive.Log.SyncNoPreview.other" xml:space="preserve"><value>{0:N0} quadros não têm nem proxy nem miniatura no servidor</value></data>