Skip to content

Load a judge's assignments when approved for another edition - #429

Merged
aamoghS merged 1 commit into
devfrom
fix/judge-page-other-edition
Sep 25, 2026
Merged

aamoghS merged 1 commit into
devfrom
fix/judge-page-other-edition

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

/judge only fetched getMyAssignments when judge.isJudge was true, and isJudge answers for the current edition only. Assignments span every edition, so a judge approved for an edition other than the resolved current one never loaded them: the card said "Application pending review" with no "Ready to Judge" link.

The query now also runs when any of the caller's applications (judge.myApplications, already fetched on the page) is approved. Typecheck and lint pass.


Note

Low Risk
Single client-side change to when a tRPC query runs; no auth or API behavior changes.

Overview
Fixes the judge portal so assignments load for users approved on any hackathon, not only when judge.isJudge is true for the resolved current edition.

getMyAssignments is now enabled when the session exists and either isJudge is true or any row from the already-fetched myApplications is approved. That lets cross-edition judges get assignment data so hackathon cards show Ready to Judge instead of stuck Application pending review.

Reviewed by Cursor Bugbot for commit c9d3aa6. Bugbot is set up for automated code reviews on this repo. Configure here.

/judge only fetched getMyAssignments when judge.isJudge was true, and
isJudge answers for the current edition only. Assignments span every
edition, so a judge approved for an edition other than the resolved
current one never loaded them: the card said "Application pending
review" with no "Ready to Judge" link. The query now also runs when
any of the caller's applications is approved.
@github-actions
github-actions Bot requested a review from aamoghS as a code owner September 25, 2026 03:17
@aamoghS aamoghS changed the title Feature: fix/judge-page-other-edition to dev Load a judge's assignments when approved for another edition Sep 25, 2026
@aamoghS
aamoghS merged commit dd9389b into dev Sep 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant