-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add toJS to return TreeNode of Tree #639
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #639 +/- ##
==========================================
- Coverage 88.63% 88.55% -0.08%
==========================================
Files 80 80
Lines 8892 8896 +4
Branches 816 817 +1
==========================================
- Hits 7881 7878 -3
- Misses 704 711 +7
Partials 307 307
☔ View full report in Codecov by Sentry. |
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.
LGTM!
What this PR does / why we need it?
Add toJS to return TreeNode of Tree.
Previously, we return stringified TreeNode (toJSON) so that users have to parse it when they want to use. Also, toJSON was created for testing purposes.
So I just made new
toJS
to return TreeNode type tree data.Any background context you want to provide?
In the issue, I mentioned that i'm gonna restore
iterator
. At first I thought it was necessary, but now I don't think so because the result of postorder traversal is not necessary.What are the relevant tickets?
Address yorkie-team/yorkie#632
Checklist