Skip to content

Change nodeid for inputs when renaming node #36

@emrysr

Description

@emrysr

When re-naming a node (screenshot); the node's inputs are not adjusted to use the new node name. The old node is then re-created when the next input data is received.

delwedd

Node field above is the device.nodeid field in MySQL
Name field above is the device.name field in MySQL

MySQL data structure: device.nodeid == input.nodeid

Would be good to add the check for node inputs and editing their input.nodeid property in the following lines: https://github.com/emoncms/device/blob/master/device_model.php#L435

As inputs is a Module in https://github.com/emoncms/emoncms it would be better to use the input controller to achieve this without having to change the input Module directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions