You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Rishabh Daim (Jira)" <ji...@apache.org> on 2026/07/17 10:08:00 UTC

[jira] [Resolved] (OAK-12315) removeDescendantsAndSelfWithLeavesFirst() should optionally keep the root node

     [ https://issues.apache.org/jira/browse/OAK-12315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rishabh Daim resolved OAK-12315.
--------------------------------
    Fix Version/s: 2.6.0
       Resolution: Fixed

> removeDescendantsAndSelfWithLeavesFirst() should optionally keep the root node
> ------------------------------------------------------------------------------
>
>                 Key: OAK-12315
>                 URL: https://issues.apache.org/jira/browse/OAK-12315
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>             Fix For: 2.6.0
>
>
> h3. Summary
> {{removeDescendantsAndSelfWithLeavesFirst()}} in oak-run's {{oak-mongo.js}} always removed the root node along with its descendants. It now takes an optional second {{removeRoot}} parameter (default {{false}}) so callers can choose to keep the root node and only remove its descendants.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)