-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect calculation in indexTree.treePosToPath
operation
#751
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #751 +/- ##
==========================================
+ Coverage 81.35% 81.50% +0.15%
==========================================
Files 59 59
Lines 4344 4348 +4
Branches 852 853 +1
==========================================
+ Hits 3534 3544 +10
+ Misses 547 543 -4
+ Partials 263 261 -2 ☔ View full report in Codecov by Sentry. |
tree.edit
operation in response to issue
tree.edit
operation in response to issuetree.edit
operation
tree.edit
operationindexTree.treePosToPath
operation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
This commit addresses an issue arising from the tree.edit operation in response to problem with calculating the fromPath when multiple treePos represent a single index-based coordinate, leading to inaccuracies. This commit contains migration work for yorkie-team/yorkie-js-sdk#751, so detailed information can also be found there. --------- Co-authored-by: Youngteac Hong <[email protected]>
What this PR does / why we need it?
This patch addresses an issue arising from the
tree.edit
operation in response to problem with calculating thefromPath
when multipletreePos
represent a single index-based coordinate, leading to inaccuracies.Any background context you want to provide?
In some cases, a single index-based coordinate can be represented by multiple
treePos
, causing complications in extracting the path. To resolve this, logic has been implemented intreePosToPath
to handle cases wherechildren
consist only of text type.Case description: In a situation where the children of
<node>
consist only of text type nodes, and the "e" text Node has already been removed, an additional operation is made to remove the text "f".What are the relevant tickets?
Address #749
Checklist