Merge #916/#917: stop sending stable_source_id (field 10 deprecated, never encoded/decoded); alarm-bearing raw tags are unsupported value nodes hidden from browse; review fixes
This commit is contained in:
+28
-4
@@ -170,11 +170,35 @@ advertisement and a per-call request header, `x-otopcua-data-features`, whose va
|
||||
- The new RPCs (`HistoryRead`, `CallConditionMethod`) answer `FailedPrecondition("feature not negotiated")`. A
|
||||
history-only call is also refused `CallConditionMethod`.
|
||||
- Header-less goldens (`*Goldens.cs`) and the recorded-v1-client gates (`GrpcDataV1CompatibilityTests`,
|
||||
`GrpcDataV1RealOriginCompatibilityTests`) pin the v1 bytes. Every phase ran them with an empty goldens diff.
|
||||
`GrpcDataV1RealOriginCompatibilityTests`) pin the v1 bytes. Every phase ran them with an empty goldens diff. The two
|
||||
pre-deploy corrections below are the only deliberate differences. The real-origin gate applies them to the recorded
|
||||
goldens in `GrpcDataV1RealOriginCorrections`; the goldens are never re-recorded.
|
||||
|
||||
Fix two v1 defects before any v1 deploy. #916: `stable_source_id` leaks the driver id and RawPath to UNS-only peers.
|
||||
#917: v1 exports alarm-bearing raw tags as variables that never get a value. G0, the v1 deploy and soak (#915), is still
|
||||
open; see the plan's §1.1.
|
||||
### What an origin exports (v1 corrections #916, #917)
|
||||
|
||||
v1 was merged but not deployed (#915), so two defects were fixed in v1 itself. Header-less callers get the fix too.
|
||||
Neither change alters the wire shape: one drops an optional field, the other drops a page item. Evidence: `docs/plans/evidence/grpc-data-ext/V1-916-917.md`.
|
||||
|
||||
- **No `Metadata.stable_source_id` (#916).** The origin never sends field 10. It used to carry the internal acquisition key,
|
||||
which for a driver tag is `<len>:<driverInstanceId><RawPath>`. That disclosed driver ids and RawPaths to peers holding
|
||||
only a UNS export.
|
||||
- No consumer used the field except for byte accounting, so it was dropped rather than replaced by an opaque id. A
|
||||
stable opaque id would only let a peer correlate Raw and UNS nodes.
|
||||
- The field is `optional`. Old consumers decode its absence as null, so every version mix works.
|
||||
- Conditions dedupe on the keyed `condition_key` instead.
|
||||
- Internally the origin still keys acquisition on the unchanged `BackingSourceKey`.
|
||||
- **Alarm-bearing raw tags are not exported as values (#917).** A tag with an alarm config never gets a value: the driver
|
||||
host keeps it out of the value fan-out, and #896 gives it no UNS variable.
|
||||
- The origin compiles it as an unsupported value node. GetMetadata, Read, Subscribe and HistoryRead on it answer
|
||||
`Unsupported`, and writes are refused.
|
||||
- **Browse does not list it**, and the same holds for any unsupported value node, such as a data type v1 cannot carry.
|
||||
Every consumer build applies a browse page all or nothing and cannot materialise an `UnsupportedVariable`. Listing one
|
||||
made the whole folder unbrowsable on the consumer (`BadNoCommunication`); the live gate found this.
|
||||
- The node stays in the catalog, so an export rooted at it still compiles. Such a root grants nothing: the values are unsupported, and the condition sits under the tag's folder, not under the tag.
|
||||
- The alarm itself is forwarded as a **condition** (A1–A4, see "Condition forwarding end to end"). Condition placements
|
||||
do not depend on the value node.
|
||||
|
||||
G0, the v1 deploy and soak (#915), is still open; see the plan's §1.1.
|
||||
|
||||
## Remote history (runtime consumers)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user