mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 14:12:14 -06:00
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase/pull/240
Author: @appy-one
Created: 8/16/2023
Status: ✅ Merged
Merged: 8/16/2023
Merged by: @appy-one
Base:
master← Head:fix/issue-239📝 Commits (4)
6d63cceFix #239 deletion causing empty leaf issuecae1cd6Improve readabilityfba5edeAdd unit testbae6386Handle empty leafs📊 Changes
2 files changed (+65 additions, -10 deletions)
View changed files
📝
src/btree/binary-tree.ts(+27 -10)➕
src/storage/binary/test.spec.ts(+38 -0)📄 Description
This fixes the issue described in #239, where adding children to an empty tree causes issues because the binary tree leaf was left behind empty. This code changes the delete behaviour to rebuild the tree after a leaf has become empty and its parent node will be left without child entries
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.