Some exclusions are incorrectly disabled when removingDuplicates #40
Labels
bug
[email protected]
It should be implemented for version 2.x cubx.core.rte
[email protected]
It schould be implemented for cubx.core.rte 3.x version.
When removing a duplicated node, the DependencyTree class checks for invalid exclusions. In the _removeDuplicate method, it is expected that the duplicated nodes have the same children in the same order.
However, we have detected a case in which the same nodes have different subtrees. To reproduce this behaviour, this CRCInit config, can be used. One problem wiht this, is that some exclusions are disabled since the "excluded" property of two different nodes can be compared assuming that the nodes are the same, if this propery is different in both nodes, the exclusion of one of the nodes will be disabled.
I modify the code of the _removeDuplicate method (in chrome devtools) to log the exact differences in the console (it would apply from line 134):
The text was updated successfully, but these errors were encountered: