FlowFuse / nr-project-nodes

A set of Node-RED nodes for inter-project communication within the FlowFuse platform
Apache License 2.0
5 stars 0 forks source link

Nodes think they are running in a device assigned to an application but the device is actually owned by an instance #64

Closed Steve-Mcl closed 8 months ago

Steve-Mcl commented 8 months ago

Current Behavior

Not sure how, but I have managed to get the projects nodes to present as though they are application owned when in fact the device is instance owned.

I have not been able to re-create this but i did see it.

The Project In node had greyed out the "Receive messages sent to this instance" options and applied the tooltip "Option not supported when a device is assigned to an application" - which are correct for an application owned device.

Expected Behavior

node should corretly identify the device owner type and apply options expected

Steps To Reproduce

cannot re-produce but the effect can be witnessed if the settings.json contains both applicationID and projectID values in the flowforge object.

Environment

Steve-Mcl commented 7 months ago

On staging, setup a device, switched it between app owned and project owned. No issues seen in the project nodes