The attributes updated notification is built from the saved typed entries,
so it marks the string entries that would read back as numbers in
typeCastDisabledKeys. Copy to entity view and the device profile parse it
with JsonConverter.attributesFromMsg and get the values the device has.
Nodes call JsonConverter.attributesFromMsg / telemetryFromMsg / sortedTelemetryFromMsg,
which read the type-cast-disabled keys from the message metadata. The key-set overloads
become private. NoCastKeys is renamed to TypeCastDisabledKeys, and the related metadata
key, UplinkData, DedicatedUplinkData and proto fields to *TypeCastDisabledKeys, matching
JsonConverter's isTypeCastEnabled.
The platform guessed the kept strings from the values (STRING_V that
parses as a number). The guess was wrong for a decoder decimal with more
than 16 fraction digits, which the proto parser keeps as a string: it was
saved as a number before and became a string.
The typed converter already has the exact sets. UplinkData now carries
telemetryNoCastKeys / attributesNoCastKeys, and DeviceUplinkDataProto /
AssetUplinkDataProto get them as new repeated fields 8 and 9, so embedded,
remote and executor integrations pass them on. The platform and the
integration executor put them into the "noCastKeys" metadata as given. An
older remote integration sends none and is parsed as before.
NoCastKeys.fromKvList is removed.
PROD-9057
Typed LoRaWAN converters keep identifiers the network server sends as
strings (devAddr, eui, joinEui, hardwareVersion, ...) as strings, but they
were still saved as numbers: the platform turns the converter output back
into JSON for the rule engine, and the save nodes parse that JSON again
with type cast on, so joinEui "0000000000000000" became 0 and
hardwareVersion "1.0" became 1.0.
When the platform builds the rule engine message from an integration
uplink (device and asset paths, and the integration executor), it now
puts the keys whose string values look like numbers into the metadata
key "noCastKeys" as a JSON array. The converter already cast every other
numeric-looking string, so these are exactly the strings it kept. The
save attributes, save time series, calculated fields, copy attributes to
entity view and device profile nodes leave those keys uncast. Messages
without the key are parsed as before.
JsonConverter gets convertToAttributes/convertToTelemetry/
convertToSortedTelemetry overloads with a set of no-cast keys; the
existing methods do not change. NoCastKeys in common/proto writes and
reads the metadata key.
PROD-9057
Values that the network server sends as JSON strings and that the typed
converter adds from the unwrapped event (devAddr, eui, joinEui, netId,
hardwareVersion, ...) skip the numeric type cast, so devAddr "01020304"
stays "01020304". Numbers from the event (fCnt, rssi, snr, ...) and the
decoder output are cast as before.
JsonConverter gets convertToTelemetryProto/convertToAttributesProto
overloads with a set of no-cast keys; the existing methods do not change.
PROD-9057
Co-Authored-By: Claude <noreply@anthropic.com>
Integration executors loaded the rule engine queues only at startup and never
evicted the cached tenant routing info. After a tenant switched to or from an
isolated rule engine they kept pushing its uplinks to the old queue until restart.
- send queue update/delete notifications to integration executors
(new repeated fields 2 and 3 in ToIntegrationExecutorNotificationMsg)
- apply them in DefaultClusterIntegrationService
- evict tenant routing info on TENANT / TENANT_PROFILE events, after the
tenant profile caches (new PartitionService.evictTenantProfileInfo)