closure_tree icon indicating copy to clipboard operation
closure_tree copied to clipboard

Adopt orphan nodes when parent is destroyed

Open zedalaye opened this issue 10 years ago • 4 comments

Ancestry has an interesting feature named "orphean_strategy". Is it possible to replicated their "adopt" strategy when parent node is destroyed ?

:adopt     The orphan subtree is added to the parent of the deleted node.
           If the deleted node is Root, then rootify the orphan subtree.

zedalaye avatar Aug 06 '14 20:08 zedalaye

Can you send a PR with this feature ?

seuros avatar Aug 06 '14 20:08 seuros

I found that in closed issues : https://github.com/mceachen/closure_tree/issues/98 Looks like the decision to not implement this feature has already been taken by the past, don't it ?

zedalaye avatar Aug 06 '14 21:08 zedalaye

No, it just need to be a good implementation.

seuros avatar Aug 06 '14 22:08 seuros

+1 for "orphanize" strategy on node deletion

pineapplethief avatar Apr 25 '16 05:04 pineapplethief