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

Ensure _get_entities_with_data_loader is not using the default db session #5314

Open
wants to merge 1 commit into
base: release-1.1
Choose a base branch
from

Conversation

dgarros
Copy link
Collaborator

@dgarros dgarros commented Dec 24, 2024

No description provided.

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Dec 24, 2024
Copy link

codspeed-hq bot commented Dec 24, 2024

CodSpeed Performance Report

Merging #5314 will not alter performance

Comparing dga-20241224-fix-resolver (96c143e) with release-1.1 (daf5d1b)

Summary

✅ 10 untouched benchmarks

@dgarros dgarros force-pushed the dga-20241224-fix-resolver branch from 9adc9cc to 2ba7b3f Compare December 24, 2024 10:18
@dgarros dgarros marked this pull request as ready for review December 24, 2024 10:32
@dgarros dgarros requested a review from a team December 24, 2024 10:32
result_per_name = {
result["node"]["name"]["value"]: result["node"] for result in result.data["InfraDevice"]["edges"]
}
assert sorted(result_per_name.keys()) == ["device1", "device2"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be nice to check all the data in this response while we have it
verified this passes locally

Suggested change
assert sorted(result_per_name.keys()) == ["device1", "device2"]
assert sorted(result_per_name.keys()) == ["device1", "device2"]
expected_location_data = {
"node": {
"name": {"value": "site1"},
"devices": {"edges": [{"node": {"name": {"value": "device1"}}}, {"node": {"name": {"value": "device2"}}}]},
}
}
assert result.data["InfraDevice"]["edges"][0]["node"]["location"] == expected_location_data
assert result.data["InfraDevice"]["edges"][1]["node"]["location"] == expected_location_data

@dgarros dgarros force-pushed the dga-20241224-fix-resolver branch from 2ba7b3f to 96c143e Compare December 24, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants