fix(virtualtags): a disabled VirtualTag is no longer deployed or evaluated (lmxopcua#787)
v2-ci / unit-tests (push) Waiting to run
v2-ci / unit-tests (push) Waiting to run
VirtualTag.Enabled was authorable but ignored by both runtime-plan seams. AddressSpaceComposer.Compose and DeploymentArtifact.BuildEquipmentVirtualTagPlans now drop disabled rows (byte-parity), so no node is materialised and no VirtualTagActor is spawned - the same outcome as a disabled scripted alarm. DraftValidator exempts a disabled VT from VirtualTagNoEffectiveTrigger. Calculation tags have no Enabled flag, so no equivalent gap. docs/VirtualTags.md updated. Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
This commit is contained in:
+10
@@ -45,6 +45,16 @@ public sealed class DraftValidatorVirtualTagTriggerTests
|
||||
public void A_literal_read_with_change_trigger_is_an_effective_trigger() =>
|
||||
Run(Vt(true, null), "return (double)ctx.GetTag(\"a/b\").Value;").ShouldBeEmpty();
|
||||
|
||||
/// <summary>lmxopcua#787 — a disabled VirtualTag is never deployed or evaluated, so it must not block a
|
||||
/// deploy for lacking an effective trigger.</summary>
|
||||
[Fact]
|
||||
public void A_disabled_virtual_tag_is_exempt()
|
||||
{
|
||||
var vt = Vt(true, null);
|
||||
vt.Enabled = false;
|
||||
Run(vt, "return 1;").ShouldBeEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void An_unresolved_script_reports_no_trigger_error()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user