Keep manual quantity in editor group-delete snapshots
The editor built the circuit-group subtree snapshot without manualQuantity, while the server compares it with an exact capture that includes the column. Deleting any group that contained a device row was therefore rejected with "Circuit-group subtree changed before deletion." The new integration test builds the snapshot from the real circuit-tree read model, as the editor does, and deletes the group for a manual row and for a row with a Revit quantity share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7222398628
commit
58cec53713
3 changed files with 94 additions and 1 deletions
|
|
@ -150,6 +150,7 @@ export function buildCircuitGroupSubtreeSnapshot(
|
|||
roomNumberSnapshot: row.roomNumberSnapshot ?? null,
|
||||
roomNameSnapshot: row.roomNameSnapshot ?? null,
|
||||
quantity: row.quantity,
|
||||
manualQuantity: row.manualQuantity,
|
||||
powerPerUnit: row.powerPerUnit,
|
||||
simultaneityFactor: row.simultaneityFactor,
|
||||
cosPhi: row.cosPhi ?? null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue