-
-
Notifications
You must be signed in to change notification settings - Fork 147
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 logic errors in TreeNode.DeepCopy #821
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #821 +/- ##
==========================================
+ Coverage 50.71% 50.81% +0.09%
==========================================
Files 70 70
Lines 10213 10226 +13
==========================================
+ Hits 5180 5196 +16
+ Misses 4512 4504 -8
- Partials 521 526 +5 ☔ View full report in Codecov by Sentry. |
390e470
to
566957e
Compare
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.
I left simple questions.
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 the following logic errors in TreeNode.DeepCopy: 1. Missing insPrevID and insNextID - resolved in Fix errors when editing Tree due to missing insPrevID in CRDTTree yorkie-js-sdk#756 and ported accordingly. 2. Incorrect calculation of IndexTreeNode.Length - including tombstone nodes in length calculation. This commit fixes these issues, and corresponding test cases have been added. --------- Co-authored-by: Youngteac Hong <[email protected]>
What this PR does / why we need it:
Fix logic errors in TreeNode.DeepCopy
This PR addresses the following logic errors in
TreeNode.DeepCopy
:This commit fixes these issues, and corresponding test cases have been added.
Which issue(s) this PR fixes:
Address #754
Related to yorkie-team/yorkie-js-sdk#756
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation:
Checklist: