fix(copies): address the owner review 6 findings

The review of the found-copies work showed pairs that could stick, jobs that
could act on a pair the user had answered otherwise, and detection gaps:

- forgetting a link on an address-keyed server deletes the pair and Candidate
  rows of that remote and resets the probe, so the sequence is found again
  when it is back; a Linked/Integrated row with no link is asked again
- 404s count only on id-keyed servers, at most once per recheck interval
- probes store the server's newest update time (copy_probes.server_newest,
  migration 0012) instead of comparing with this PC's clock; the lookup
  sample carries hashed photos by size and capture time too, for servers
  that have not hashed their copy
- the older-server gate no longer re-compares unchanged manifests
- a failed Integrate keeps its job id so a retry resumes only an untouched
  pair; cancel and stale plans release the pair (ReleaseAsync)
- automatic photo transfers never create or retarget a sequence
- a first upload files photos the server holds elsewhere into the new
  sequence
- Unlink re-compares before keeping apart; Trash here names only true last
  copies; Drop... trashes one version on both sides after re-checking the
  other
- a merge keeping the pair's other sequence swaps the dialog's columns and
  re-keys Different choices; Upload all reads every pair

Each fix has a regression test where it makes sense.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-17 13:12:00 +01:00
1 parent 96b5b4078b
commit fe752a0a21
33 files changed
+957 -123

No files matched your search

+1
View File
@@ -161,4 +161,5 @@
<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>The other side no longer deleted these photos; 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>
</root>
+2
View File
@@ -393,6 +393,8 @@
<data name="Server.Copies.Detail.Other" xml:space="preserve"><value>Other</value></data>
<data name="Server.Copies.Detail.AllThisPc" xml:space="preserve"><value>All this PC</value></data>
<data name="Server.Copies.Detail.AllServer" xml:space="preserve"><value>All server</value></data>
<data name="Server.Copies.Detail.AllKept" xml:space="preserve"><value>All kept</value></data>
<data name="Server.Copies.Detail.AllOther" xml:space="preserve"><value>All other</value></data>
<data name="Server.Copies.Detail.Positions" xml:space="preserve"><value>Frame positions</value></data>
<data name="Server.Copies.Detail.OtherSetting" xml:space="preserve"><value>Other setting</value></data>
<data name="Server.Copies.Detail.None" xml:space="preserve"><value>Same details.</value></data>
+1
View File
@@ -161,4 +161,5 @@
<data name="Errors.Copies.ArchiveOffline" xml:space="preserve"><value>L'archivio di {0} non è raggiungibile; collegalo e riprova.</value></data>
<data name="Errors.Copies.FolderMoved" xml:space="preserve"><value>{0} non è dove l'indice la colloca; riprova dopo la prossima scansione.</value></data>
<data name="Errors.Copies.NotThere" xml:space="preserve"><value>L'altro lato non ha più eliminato queste foto; nulla è andato nel cestino.</value></data>
<data name="Errors.Copies.OtherVersionGone" xml:space="preserve"><value>L'altra versione non è più su entrambi i lati; nulla è andato nel cestino.</value></data>
</root>
+2
View File
@@ -390,6 +390,8 @@
<data name="Server.Copies.Detail.Other" xml:space="preserve"><value>Altra</value></data>
<data name="Server.Copies.Detail.AllThisPc" xml:space="preserve"><value>Tutte da qui</value></data>
<data name="Server.Copies.Detail.AllServer" xml:space="preserve"><value>Tutte dal server</value></data>
<data name="Server.Copies.Detail.AllKept" xml:space="preserve"><value>Tutte tenuta</value></data>
<data name="Server.Copies.Detail.AllOther" xml:space="preserve"><value>Tutte altra</value></data>
<data name="Server.Copies.Detail.Positions" xml:space="preserve"><value>Posizioni fotogrammi</value></data>
<data name="Server.Copies.Detail.OtherSetting" xml:space="preserve"><value>Altra impostazione</value></data>
<data name="Server.Copies.Detail.None" xml:space="preserve"><value>Dettagli uguali.</value></data>