feat(copies): integrate local and server, filtered transfers, project transplant (owner review 6, P3)
A local sequence and its server twin can now be integrated into one linked pair by a resumable job instead of by hand. The planner runs the dry run of design 5c: photo steps per policy (the wins policies decide only the Different class; Only here and Only there always move), left out and AutoPhotos, last copies, the one portable payload, projects copied across under free names, space, rights and every block, and a fingerprint the job checks again. The Integrate job keeps an atomic journal and resumes at each stage: link, photos both ways through filtered transfers that never create or retarget a server sequence (a 404 marks the pair remote gone), trash only once the winner is present (locally through the photo trash inside the job, on the server at the version its dry run read), the agreed details, then projects through ProjectTransplant. Refusals are kept and reported; a failure or a cancel sets the pair back to Linked or its previous state. Linked uploads now file into their target when the server announces upload-into. The plan context travels with the job so rights and names give the same plan on the job side. Refs #73 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2a27ef488c
commit
461dfcf4a3
11 files changed
+2567
-4
No files matched your search
@@ -77,6 +77,9 @@ public sealed record IntegratePlan(Guid CopyId, string Server, Guid LocalId, Gui
|
||||
|
||||
/// <summary>New photos move by themselves afterwards only when the plan leaves nothing on one side only (design §6.1).</summary>
|
||||
public bool AutoPhotos => LeftOut == 0;
|
||||
|
||||
/// <summary>The context the plan was made with (rights, names): the job plans again with it (<see cref="IntegratePlanner"/>).</summary>
|
||||
public CopyPlanContext? Context { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>The choices of a merge of two local copies (projects are always copied across: the other's home goes to the trash).</summary>
|
||||
|
||||
Reference in new issue
Block a user