You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
coming from awesome_nested_set we use lft for ordering.
i checked the rebuild! method and it looks like it's calling children which then might be rendered randomly by our DB.
we then recreate the tree for each children, but this means that the position might change.
coming from
awesome_nested_set
we uselft
for ordering.i checked the
rebuild!
method and it looks like it's calling children which then might be rendered randomly by our DB.we then recreate the tree for each children, but this means that the position might change.
children.find_each { |c| c.rebuild!(true) }
https://github.com/ClosureTree/closure_tree/blob/07f4dfdac48765a60a786a5dfedaffb1d1e242be/lib/closure_tree/hierarchy_maintenance.rb#L65:L89
example
before:
If we call
.children
we might get in return1,2,3,4,5
but we actually want to get1,5,4,3,2
.the tree then could be created like
The text was updated successfully, but these errors were encountered: