-
Notifications
You must be signed in to change notification settings - Fork 1
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: add deduplication in topology #321
Conversation
query/topology.go
Outdated
if !opt.nonDirectChildrenOnly { | ||
s += " AND component_relationships.component_id = NULL" | ||
s += " AND component_relationships.component_id IS NULL" | ||
} else { | ||
s += " AND component_relationships.component_id IS NOT NULL" | ||
s += " AND component_relationships.relationship_id IS NULL" | ||
} |
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.
@adityathebe Let me know what these should be
}, | ||
{ | ||
"agent_id": "00000000-0000-0000-0000-000000000000", | ||
"icon": "icon-kubernetes-pod", | ||
"id": "018681ff-80ed-d10d-21ef-c74f152b085b", | ||
"is_leaf": false, | ||
"name": "logistics-api-574dc95b5d-mp64w", | ||
"parent_id": "018681ff-559f-7183-19d1-7d898b4e1413", | ||
"parents": [ | ||
"018681fe-f5aa-37e9-83f7-47b5b0232d5e" | ||
], | ||
"status": "healthy", | ||
"summary": { | ||
"healthy": 1 | ||
}, | ||
"type": "KubernetesPod" | ||
}, | ||
{ | ||
"agent_id": "00000000-0000-0000-0000-000000000000", | ||
"icon": "icon-kubernetes-pod", | ||
"id": "018681ff-b6c1-a14d-2fd4-8c7dac94cddd", | ||
"is_leaf": false, | ||
"name": "logistics-ui-676b85b87c-tjjcp", |
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.
@moshloop After the direct children change, there might be bugs/regressions which were copied over in some fixtures as well
For eg. here components are being repeated
b71c49e
to
de838df
Compare
de838df
to
dda620f
Compare
No description provided.