Skip to content

FlatData to TreeData without duplicate records #742

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

legionairre
Copy link

When you use the "getTreeFromFlatData" function to convert from flat data to tree data, duplicate records occur in tree data. Thanks to the "getUniqueTreeFromFlatData" function, a single record with the same ancestor occurs in the tree within the nodes above.

When you use the "getTreeFromFlatData" function to convert from flat data to tree data, duplicate records occur in tree data. Thanks to the "getUniqueTreeFromFlatData" function, a single record with the same ancestor occurs in the tree within the nodes above.
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.1%) to 74.354% when pulling f68fe06 on legionairre:patch-1 into 1c1ed8c on frontend-collective:master.

When you use the "getTreeFromFlatData" function to convert from flat data to tree data, duplicate records occur in tree data. Thanks to the "getUniqueTreeFromFlatData" function, a single record with the same ancestor occurs in the tree within the nodes above. (Unit Test)
FlatData to TreeData without duplicate records
@legionairre
Copy link
Author

Coverage Status

Coverage decreased (-2.1%) to 74.354% when pulling f68fe06 on legionairre:patch-1 into 1c1ed8c on frontend-collective:master.

Unit tests have been added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants