fix(influx): accept tagCode camelCase and emit positionVsParent tag
The asset config standardised on tagCode (camelCase) but the InfluxDB tag emitter still read the lowercase tagcode, so any node saved through the new editor silently emitted tags.tagcode: undefined. Read both spellings so old + new configs both produce the tag. Also surfaces functionality.positionVsParent as a tag so dashboards can filter by upstream/downstream side. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -104,9 +104,10 @@ class OutputUtils {
|
||||
// functionality properties
|
||||
softwareType: config.functionality?.softwareType,
|
||||
role: config.functionality?.role,
|
||||
positionVsParent: config.functionality?.positionVsParent,
|
||||
// asset properties (exclude machineCurve)
|
||||
uuid: config.asset?.uuid,
|
||||
tagcode: config.asset?.tagcode,
|
||||
tagcode: config.asset?.tagCode || config.asset?.tagcode,
|
||||
geoLocation: config.asset?.geoLocation,
|
||||
category: config.asset?.category,
|
||||
type: config.asset?.type,
|
||||
|
||||
Reference in New Issue
Block a user