Skip to content

Allow querying parent and child builds via GraphQL#3803

Open
williamjallen wants to merge 1 commit into
Kitware:masterfrom
williamjallen:project-builds-relationship-no-filters
Open

Allow querying parent and child builds via GraphQL#3803
williamjallen wants to merge 1 commit into
Kitware:masterfrom
williamjallen:project-builds-relationship-no-filters

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

The Project->builds relationship currently only returns the list of parent builds. That's useful for common usage, but makes it inconvenient to filter by prior instances of a child build. This PR adds an onlyParents boolean parameter to the builds and buildCount relationships, which allows clients to specify whether to retain the default "parents only" behavior, or whether they'd like to also query child builds.

The Project->builds relationship currently only returns the list of parent builds.  That's useful for common usage, but makes it inconvenient to filter by prior instances of a child build.  This PR adds an `onlyParents` boolean parameter to the `builds` and `buildCount` relationships, which allows clients to specify whether to retain the default "parents only" behavior, or whether they'd like to also query child builds.

@josephsnyder josephsnyder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Jun 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2026
@josephsnyder josephsnyder added this pull request to the merge queue Jun 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2026
@josephsnyder josephsnyder added this pull request to the merge queue Jun 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2026
@josephsnyder josephsnyder added this pull request to the merge queue Jun 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2026
@josephsnyder josephsnyder added this pull request to the merge queue Jun 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants