Skip to content

Propagate SubProject filters from index.php to the build tests page - #4083

Merged
williamjallen merged 1 commit into
Kitware:masterfrom
zackgalbreath:propagate-subproject-filters-to-tests-page
Oct 13, 2026
Merged

williamjallen merged 1 commit into
Kitware:masterfrom
zackgalbreath:propagate-subproject-filters-to-tests-page

Conversation

@zackgalbreath

Copy link
Copy Markdown
Contributor

The SubProjects include/exclude filter on index.php used to be passed along to viewTest.php, but this functionality was lost when we switched to the GraphQL-based builds/{id}/tests page.

This commit restores the functionality by generating a GraphQL child build filter and appending it to the link to the build tests page. This page now displays a notice when results are being filtered by SubProject, including a link to show tests for all SubProjects.

@zackgalbreath

Copy link
Copy Markdown
Contributor Author

Here's an example screenshot of what this looks like using our actualtrilinossubmission test data.

Screenshot 2026-10-06 at 1 37 26 PM

@williamjallen williamjallen added this to the v5.6 milestone Oct 8, 2026
@williamjallen
williamjallen self-requested a review October 8, 2026 12:05

@williamjallen williamjallen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The overall approach looks like a reasonable temporary solution until the index page is refactored and we're able to build a more integrated subprojects UI. I didn't find any issues in manual testing.

A couple comments:

  • Removing label filter propagation was deliberate (#3724). Should this be classified as feature instead of a fix?
  • The childFilters query parameter feels poorly named to me. Instead of encoding full filters, would it be better to just have a subprojects=a,b,c query parameter, and then let JS convert that list to filters?

Comment thread tests/Feature/GraphQL/BuildTypeTest.php Outdated
Comment thread tests/Feature/IndexSubProjectFiltersTest.php Outdated
When index.php is filtered to include or exclude a set of SubProjects,
the test counts it displays only reflect the selected SubProjects, but
the build tests page linked from those counts showed tests from every
SubProject.

index.php now appends the selected SubProjects to the test count links
as subprojects[] (include) or excludeSubprojects[] (exclude) query
parameters. The build tests page converts these to a GraphQL filter on
the child builds it queries (including the previous build used for
onlydelta), and displays a notice with a link to show all SubProjects.
@williamjallen
williamjallen added this pull request to the merge queue Oct 13, 2026
Merged via the queue into Kitware:master with commit bd40f2e Oct 13, 2026
8 checks passed
@zackgalbreath
zackgalbreath deleted the propagate-subproject-filters-to-tests-page branch October 13, 2026 20:13
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