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
90 stars 20 forks source link

fix(18935): Fix the verification of connectivity limits on handles #431

Closed vanch3d closed 1 month ago

vanch3d commented 1 month ago

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

The PR fixes a bug with the computation of connecting edges to a handle, allowing correct restrictions on certain connections (e.g. Topic Filter's handles can only have one target)

The PR also fixes the rendering of the icon when dragging a connection from a handle

The PR finally fixes a bug when deleting nodes, whereas connected edges were not automatically deleted and stayed in the data store (not displayed but contributing to the connections count of a node)

Before

screenshot-localhost_3000-2024 05 22-10_07_21

screenshot-localhost_3000-2024 05 22-10_06_33

After

screenshot-localhost_3000-2024 05 22-10_05_02

screenshot-localhost_3000-2024 05 22-10_05_19