Skip to content

PM-5775: refresh checkpoint winner data - #2096

Merged
jmgasper merged 1 commit into
devfrom
PM-5775-1
Aug 1, 2026
Merged

PM-5775: refresh checkpoint winner data#2096
jmgasper merged 1 commit into
devfrom
PM-5775-1

Conversation

@jmgasper

@jmgasper jmgasper commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

What was broken

A Review page opened while Checkpoint Review was active could keep the earlier challenge response after the phase closed. That response intentionally omitted checkpoint winners, so the winner star added in PR #2082 had no data to render.

Root cause

The Challenge API exposes checkpoint winners only after Checkpoint Review closes. Platform UI globally disables focus revalidation and challenge-detail polling, leaving the pre-closure response cached for the lifetime of the mounted page.

What was changed

  • Poll challenge details every ten seconds only while an active Checkpoint Review is open and checkpoint winners are unavailable.
  • Stop polling automatically after the phase closes, winners arrive, the challenge completes, or a different phase is active.
  • Keep the existing checkpoint-winner matching, star, and eligibility tooltip unchanged.

Any added/updated tests

  • Added refresh-interval coverage for active/open Checkpoint Review.
  • Added stop-condition coverage for closed review, populated winner data, completed challenges, and unrelated phases.
  • yarn test:no-watch --runInBand src/apps/review/src — 47 suites and 170 tests passed.
  • yarn lint — passed.
  • yarn run build — passed with existing repository warnings.

What was broken

A Review page opened while Checkpoint Review was active could retain a challenge response without checkpoint winners after the phase closed, so the existing winner star never received the data it needed.

Root cause

The Challenge API intentionally hides checkpoint winners until Checkpoint Review closes, while the Review app disabled automatic challenge refreshes and did not poll that transition.

What was changed

Poll challenge details every ten seconds only while an active Checkpoint Review is open and checkpoint winners are still unavailable. Polling stops once the phase closes, winner data arrives, the challenge completes, or another phase is active.

Any added/updated tests

Added refresh-interval coverage for active Checkpoint Review, closed review, populated winner data, completed challenges, and unrelated phases.
@jmgasper
jmgasper requested a review from kkartunov as a code owner August 1, 2026 02:25
@jmgasper
jmgasper merged commit 5941896 into dev Aug 1, 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