fix(deploy): count removed equipment tags/vtags in RemovedNodes (H1a review follow-up)

This commit is contained in:
Joseph Doherty
2026-06-15 10:01:37 -04:00
parent 1e95856b00
commit 1dc713693a
2 changed files with 48 additions and 0 deletions
@@ -67,6 +67,10 @@ public sealed class Phase7Applier
SafeWriteAlarmCondition(alarm.ScriptedAlarmId, RemovedConditionState, ts);
removedCount++;
}
// Removed equipment tags / VirtualTags are plain variable nodes (no Part 9 condition to write
// before tear-down), but they ARE real removals — count them so Phase7ApplyOutcome.RemovedNodes
// is accurate on a removed-tag-only deploy, which now reaches the rebuild path below.
removedCount += plan.RemovedEquipmentTags.Count + plan.RemovedEquipmentVirtualTags.Count;
var changedCount =
plan.ChangedEquipment.Count + plan.ChangedDrivers.Count + plan.ChangedAlarms.Count +