View Revisions: Issue #3012

Summary 0003012: Node panel may not show hierarchy properly
Revision 2017-03-13 21:35 by mmichalek
Description Depending on the lexicographical order of the nodes, the hierarchy of the nodes may not show properly. For example, given a "root" node and "alaska" node (which is a child of "root", as determined by sym_node.created_at_node_id), the list would show "alaska" first and then "root" with an expansion arrow but no children.

This like would show as such:
------------------
Alaska
> root

The expected list is:
------------------
> root
     Alaska


The issue appears to be that that "root" was being assigned children before it had been added to the list. The fix was to add another pass, so the first pass adds all nodes to the list, and the second pass assigns the parent/child relationships.
Revision 2017-03-13 21:31 by mmichalek
Description Depending on the lexagraphial order of the nodes, the hierarchy of the nodes may not show properly. For example, given a "root" node and "alaska" node which is a child of "root" (as determined by sym_node.created_at_node_id), the list would show "alaska" first and then "root" with an expansion arrow but no children.

The issue appears to be that that "root" was being assigned children before it had been added to the list. The fix was to add another pass, so the first pass adds all nodes to the list, and the second pass assigns the parent/child relationships.