BHoM / Grasshopper_UI

Tools for Grasshopper
GNU Lesser General Public License v3.0
16 stars 5 forks source link

Some explode components not tracking data through #542

Closed FraserGreenroyd closed 3 years ago

FraserGreenroyd commented 3 years ago

Description:

This was found during testing of the 200917 alpha.

Some explode components are not keeping track of the data going through them correctly, despite data existing on the input to the explode, and some wires remaining with data passing down them.

When the output is updated, the wires which were not previously passing data are disconnected from the components.

Steps to reproduce:

This was discovered when running the test procedure for XML_Toolkit for CI/CD today. See the gif below for a representation of the above in visual form.

Take a copy of the test script from the link below, open the script, and set the toggle to true (toggle marked as 2.5). A couple of the wires for the explode do not keep the data passing through, and when updated remove the wires all together.

Expected behaviour:

I would expect the wires to keep the right data passing down through components. I would also expect that updating the output did not remove wires.

Test file(s):

Please take copies to avoid corruption of test files currently being used for alpha testing :smile:

Folder to XML Toolkit test files is here

You may wish to follow the test procedure (section 2) for the XML_Toolkit for CI/CD, which can be found here - this will detail what you need to change in the script below (and download additionally from the folder above) to get the script to the state I had it in when I found this issue.

XML Toolkit Script shown in the gif is here

[GIF COMING SOON - NEED TO RESTART LAPTOP TO GET SOFTWARE TO MAKE IT!]

adecler commented 3 years ago

Found the bug:

image

Similar to https://github.com/BHoM/BHoM_UI/issues/307, keeping open as it would be great to have extra protection against non-compliant code. Turning it into a feature though

adecler commented 3 years ago

Now closing as properly referenced in https://github.com/BHoM/BHoM_UI/issues/307