mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 18:18:42 -05:00
[PR #1601] [MERGED] fix(staffml): use summary fallback when Worker fetch fails in gauntlet #9213
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1601
Author: @Shashank-Tripathi-07
Created: 4/29/2026
Status: ✅ Merged
Merged: 4/30/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/gauntlet-partial-hydration📝 Commits (1)
a5cfdbdfix(staffml): use summary fallback when Worker fetch fails in gauntlet📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
interviews/staffml/src/app/gauntlet/page.tsx(+4 -2)📄 Description
Summary
startGauntletfiresPromise.allto pre-hydrate every question's scenario/details from the Cloudflare Worker before the gauntlet starts.if (hydrated.length === selected.length) setQuestions(hydrated)-- meaning if even one Worker response came backundefined, the entire hydrated batch was silently dropped andsetQuestionswas never called.scenarioanddetailsfields on every question, regardless of which questions actually succeeded.Fix: Map results back to the original
selectedarray per-index, falling back to the summary for any question the Worker couldn't hydrate. Partial Worker failures now degrade gracefully instead of wiping all hydrated data.Test plan
staffml-vault.*requests) -- verify gauntlet still starts and shows summary text per question rather than blank scenario🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.