-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ui) Fix lineage graph rendering with duplicate nodes #6480
fix(ui) Fix lineage graph rendering with duplicate nodes #6480
Conversation
Unit Test Results (build & test)621 tests - 1 617 ✔️ - 1 15m 49s ⏱️ -24s Results for commit 91327f7. ± Comparison against base commit d35e327. This pull request removes 7 and adds 6 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
existingResult != null ? existingResult.getRelationships().stream() : ImmutableList.<LineageRelationship>of().stream()) | ||
.collect(Collectors.toSet())); |
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.
Confused about why this was even here to begin with
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.
I added this earlier thinking it would help remove duplicates but dummy me it obviously does not with objects. it only worked when I manually duplicated objects that I passed into this fxn.
basically I was a bone-head and reverted this change to what it always was
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.
ohh ! got it
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! Thanks Chris
We were seeing an issue where users would drag a node on the lineage viz graph and arrows would be replicated and it looked real bad. This was happening when siblings would have the same lineage as each other, so we would render duplicate nodes causing the viz to get all wacky. This filters out duplicates when combining sibling lineage.
Also adds a safety measure on the frontend as well to ensure all edges have unique keys just in case someone wants duplicate edges on their lineage graph (saw this in OSS slack once). The arrows were bugging out because the
key
s were not all unique.Checklist