Skip to content

PM-5471: add reviewer filter to past challenges - #2060

Merged
jmgasper merged 1 commit into
devfrom
PM-5471
Jul 30, 2026
Merged

PM-5471: add reviewer filter to past challenges#2060
jmgasper merged 1 commit into
devfrom
PM-5471

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken

Members could not narrow My Past Challenges to challenges where they served in a reviewer role.

Root cause

The page had no role control, and its request service and state did not carry resource-role filters to the review API.

What was changed

  • Added an All roles/Reviewer filter to My Past Challenges.
  • Mapped Reviewer to the eight resource-role IDs identified in PM-5471.
  • Serialized the selected IDs to the API and retained them across sorting and pagination.
  • Reset the role filter with the existing Clear action.
  • Added the companion API support in PM-5471: add reviewer role filtering to my reviews review-api-v6#306.

Any added/updated tests

  • Added page and hook coverage for the role options, all eight IDs, pagination persistence, and clearing.
  • Updated the review service test for comma-separated query serialization.
  • Focused PM-5471 run: 3 suites and 6 tests passed.
  • yarn lint: passed.
  • yarn run build: passed with existing warnings.
  • Full yarn test:no-watch --runInBand: all PM-5471 tests passed; the repository retains the same 13 failing suites and 36 failing tests as clean origin/dev, all outside the review app.

What was broken

Members could not narrow My Past Challenges to challenges where they served in a reviewer role.

Root cause

The page had no role control, and its request service and state did not carry resource-role filters to the review API.

What was changed

Added an All roles/Reviewer filter backed by the eight reviewer resource-role IDs identified for PM-5471. The selection is serialized to the API, retained across sorting and pagination, and removed by Clear.

Any added/updated tests

Added page and hook tests for the role options, all eight IDs, pagination persistence, and clearing. Updated the review service test for comma-separated query serialization.
@jmgasper
jmgasper requested a review from kkartunov as a code owner July 30, 2026 03:26
@jmgasper
jmgasper merged commit 7259a4a into dev Jul 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant