Skip to content

feat: add filter options for TA table when clicking on summary items #93654

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

Merged
merged 3 commits into from
Jun 17, 2025

Conversation

adrianviquez
Copy link
Contributor

This PR adds the ability to filter the Test Analytics table by the selections of the Test Analytics Summary cards.

Notes

  • Added the filterBy query param to talk to the backend.
  • Added object that maps filter selections to those that the backend expects.
  • Adjusted f_b_type to filterBy and related tests.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@adrianviquez adrianviquez requested a review from a team as a code owner June 16, 2025 20:37
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 16, 2025
@@ -68,7 +72,7 @@ export function useInfiniteTestResults() {
>({
queryKey: [
`/prevent/owner/${integratedOrg}/repository/${repository}/test-results/`,
{query: {branch, codecovPeriod, signedSortBy}},
{query: {branch, codecovPeriod, signedSortBy, mappedFilterBy}},
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't care about If mappedFilteredBy ends up being one of these values here right?

  uncoveredLines: 'UNCOVERED_LINES',
  indirectChanges: 'INDIRECT_CHANGES',
  filesChanged: 'FILES_CHANGED',
  uploadsCount: 'UPLOAD_COUNT',

since this is inside of the useGetTestResults hook?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's true. I updated the PR to only populate mappedFilterBy with values that correspond to the TA summary specific values

Copy link
Contributor

@calvin-codecov calvin-codecov left a comment

Choose a reason for hiding this comment

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

Looks good!

@adrianviquez adrianviquez merged commit 3a3d499 into master Jun 17, 2025
46 checks passed
@adrianviquez adrianviquez deleted the adrian/add-ta-table-filtering-by-summaries branch June 17, 2025 19:15
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
…93654)

This PR adds the ability to filter the Test Analytics table by the
selections of the Test Analytics Summary cards.

Notes
-
- Added the `filterBy` query param to talk to the backend.
- Added object that maps filter selections to those that the backend
expects.
- Adjusted `f_b_type` to `filterBy` and related tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants