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

Extend InfrahubTask query to return multiple related nodes #5378

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

dgarros
Copy link
Collaborator

@dgarros dgarros commented Jan 6, 2025

This PR extend the current InfrahubTask to support multiple related nodes. For historic reason the current Object only support one related node but since the migration to prefect, the backend support multiple nodes.

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Jan 6, 2025
Copy link

codspeed-hq bot commented Jan 6, 2025

CodSpeed Performance Report

Merging #5378 will not alter performance

Comparing dga-20250106-task-related-nodes (9644918) with stable (a46890d)

Summary

✅ 10 untouched benchmarks

@dgarros dgarros force-pushed the dga-20250106-task-related-nodes branch from 3dab87a to bf2fe17 Compare January 6, 2025 10:20
@dgarros dgarros marked this pull request as ready for review January 6, 2025 17:27
@dgarros dgarros requested a review from a team January 6, 2025 17:27
@@ -28,9 +28,21 @@ class Task(ObjectType):
start_time = String(required=False)


class TaskRelatedNode(ObjectType):
id = String(required=False)
kind = String(required=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't both of these be required=True? I.e. either we'd have an empty list or the entries of that list would have values for both of these if requested?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point

@dgarros dgarros force-pushed the dga-20250106-task-related-nodes branch from bf2fe17 to 9644918 Compare January 8, 2025 05:35
@dgarros dgarros merged commit c67b7a0 into stable Jan 8, 2025
34 checks passed
@dgarros dgarros deleted the dga-20250106-task-related-nodes branch January 8, 2025 06:31
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.

3 participants