From 4881f9c23cb5aeca9a84199dbfe5c1293e038fb6 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Fri, 29 May 2026 12:26:46 -0400 Subject: [PATCH] fix(centralui): enable Test Bindings for MxGateway connections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Test Bindings button was disabled (greyed out) for any attribute bound to a non-OPC-UA connection. BuildTestableRows() filtered to protocol == "OpcUa", a stale gate left over from when OPC UA was the only protocol. ReadTagValuesCommand is protocol-agnostic (routes through IDataConnection.ReadBatchAsync, which MxGatewayDataConnection implements), so the filter only blocked the UI — mirroring the already-fixed IsBrowsable. Remove the OPC-UA-only filter and update the stale comments. Add a bUnit regression test (theory over MxGateway + OpcUa) asserting the button is enabled for a readable-protocol binding. Verified live: dialog opens for an MxGateway binding and returns a Good-quality read. --- .../Pages/Deployment/InstanceConfigure.razor | 22 ++++--- .../InstanceConfigureAuditDrillinTests.cs | 59 +++++++++++++++++++ 2 files changed, 72 insertions(+), 9 deletions(-) diff --git a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceConfigure.razor b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceConfigure.razor index 7ab70a3f..db92a690 100644 --- a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceConfigure.razor +++ b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceConfigure.razor @@ -158,9 +158,10 @@ @* Test Bindings: one-shot live read of every bound attribute whose row has a connection picked AND an effective tag - path. Disabled when no testable rows. Currently OPC UA - only — other protocols (none yet) would need their own - wire+adapter support to round-trip through ReadTagValuesCommand. *@ + path. Disabled when no testable rows. Protocol-agnostic — + any connection whose adapter implements ReadBatchAsync + (OPC UA and MxGateway today) round-trips through + ReadTagValuesCommand. *@