Skip to content

PM-5112: show latest relative marathon scores#1866

Merged
jmgasper merged 1 commit into
devfrom
PM-5112
May 21, 2026
Merged

PM-5112: show latest relative marathon scores#1866
jmgasper merged 1 commit into
devfrom
PM-5112

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

What was broken
The Work app submissions table could show an older raw Marathon Match score while community-app showed the updated relative provisional score.

Root cause
The Work app score helper returned the first matching Review API summation, and legacy nested scores were preferred before summations, so later relative-score rewrites could be ignored.

What was changed
Marathon provisional and system score helpers now pick the latest valid matching review summation by timestamp and use legacy nested scores only as a fallback.

Any added/updated tests
Added regression coverage for provisional and system scores where a later relative summation must override a stale raw score.

Validation run:

  • yarn test:no-watch src/apps/work/src/lib/utils/challenge.utils.spec.ts
  • yarn test:no-watch src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.spec.tsx
  • yarn lint
  • yarn run build

The full yarn test:no-watch command was also run. It still fails in unrelated pre-existing specs under wallet-admin and ChallengeEditorForm module resolution; the PM-5112 targeted tests pass.

What was broken
The Work app submissions table could show an older raw Marathon Match score while community-app showed the updated relative provisional score.

Root cause
The Work app score helper returned the first matching Review API summation, and legacy nested scores were preferred before summations, so later relative-score rewrites could be ignored.

What was changed
Marathon provisional and system score helpers now pick the latest valid matching review summation by timestamp and use legacy nested scores only as a fallback.

Any added/updated tests
Added regression coverage for provisional and system scores where a later relative summation must override a stale raw score.
@jmgasper jmgasper requested a review from kkartunov as a code owner May 21, 2026 00:06
@jmgasper jmgasper merged commit 5e84c92 into dev May 21, 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