Fix for #199 - Proper delete of all descendant keys in tree during delete/empty bin operations - #204
Merged
jcdcdev merged 1 commit intoJun 30, 2026
Conversation
…Bin and global Empty Bin operations
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Author
|
@jcdcdev Think your auto-assign action is broken |
Owner
|
Hi @MiguelGuedelha, thank you for such a high quality contribution! This looks great to me 🦄🤘 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've kept the single key delete in the interface for compatibility (it's a public interface on public services, so never know if someone on U13 decided to hook and use these methods by themselves)
U16 version of the package still uses the delete/DB storage, while the 17+ versions seem to store the value directly in the IContent only, and the DB is completely gone.
@jcdcdev U16 is already EOL so don't think we need to propagate this bug fix to it. And the 17 version shouldn't need any fix at all due to how the package changed how it works.
What this fixes:
This should prevent Foreign Key constraint errors that would prevent the actions mentioned above from completing successfully.
Testing this is simple:
I've kept the pagination to 1000 so it's not completely unbounded (
int.MaxValue) in case, there's some really stinky bins somewhere using this package, that might drown the DB out from doing such an unbounded fetch, but it's also not ridiculously low (50-100) and risk slowing down the empty operation by too much.