hivemq / hivemq-edge

HiveMQ Edge is an MQTT gateway that enables interoperability between OT devices and IT systems. It translates diverse protocols into MQTT for streamlined communication and helps organize data into a unified namespace, making managing and streaming data across your infrastructure easier.
http://hivemq.com
Apache License 2.0
92 stars 21 forks source link

refactor(18960): Add ordering of connected nodes #314

Closed vanch3d closed 4 months ago

vanch3d commented 4 months ago

See https://hivemq.kanbanize.com/ctrl_board/57/cards/18960/details/

This PR addresses the issue of ordering connected nodes when appropriate. There are two cases treated.

With Validator nodes, the configuration in the side panel showed a list of schema objects, to be created or ordered. That list is now gone. Handling schemas and validators is done purely by connections, their order being unimportant.

With the transform functions of an Operation operation node, it is possible to connect multiple Function nodes to the Operation. But their order matters. So the configuration of the Operation side panel now shows the list of function names connected to the node. Their order can be changed (but they cannot be deleted or edited, this is handled directly by the connections or the nodes themselves).

Before

screenshot-localhost_3000-2024 03 12-14_38_19

screenshot-localhost_3000-2024 03 12-14_37_57

After

screenshot-localhost_3000-2024 03 12-14_35_53 . screenshot-localhost_3000-2024 03 12-14_37_04