Skip to content
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

Merged
merged 1 commit into from
Nov 3, 2023
Merged

fix: add deduplication in topology #321

merged 1 commit into from
Nov 3, 2023

Conversation

yashmehrotra
Copy link
Member

No description provided.

Comment on lines 94 to 97
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"
}
Copy link
Member Author

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

Comment on lines -47 to -69
},
{
"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",
Copy link
Member Author

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

Copy link

github-actions bot commented Nov 3, 2023

E2E -

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit dda620f.

♻️ This comment has been updated with latest results.

@yashmehrotra yashmehrotra force-pushed the refactor-topolgoy branch 2 times, most recently from b71c49e to de838df Compare November 3, 2023 10:17
@yashmehrotra yashmehrotra marked this pull request as ready for review November 3, 2023 10:18
@moshloop moshloop merged commit 5aea513 into main Nov 3, 2023
4 checks passed
@moshloop moshloop deleted the refactor-topolgoy branch November 3, 2023 13:08
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