Skip to content

public parsing of scheduler for swap feature#184

Draft
jerryzhou196 wants to merge 1 commit into
mainfrom
feat/public-schedule-parsing-for-swap
Draft

public parsing of scheduler for swap feature#184
jerryzhou196 wants to merge 1 commit into
mainfrom
feat/public-schedule-parsing-for-swap

Conversation

@jerryzhou196
Copy link
Copy Markdown
Member

Summary

  • Removes the auth guard from the start of HandleSchedule, moving it after parsing
  • When ?user_id=null is passed, returns the parsed schedule summary without saving it — enabling unauthenticated callers (e.g. the swap feature) to parse a schedule
  • Updates regtest fixture to a Spring 2026 schedule with 12 sections and adjusts the expected section count accordingly

Test plan

  • POST /api/parse/schedule with a valid token still saves and returns the schedule as before
  • POST /api/parse/schedule?user_id=null returns the parsed summary without saving (no auth required)
  • POST /api/parse/schedule with no/invalid token still returns 401
  • Regression tests pass (regtest/api/parse/schedule.js)

🤖 Generated with Claude Code

Adds support for unauthenticated schedule parsing when the `user_id=null`
query param is present. This enables the swap feature to parse a schedule
without requiring a logged-in user. Updates regtest fixture to Spring 2026
with 12 sections to reflect the new test data.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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