Skip to content

Fix "Open in Grades" in Catalog: pass courseId instead of courseNumber to fix mismatch#1151

Open
ethanransing wants to merge 2 commits into
mainfrom
ethan/fix-open-in-grades
Open

Fix "Open in Grades" in Catalog: pass courseId instead of courseNumber to fix mismatch#1151
ethanransing wants to merge 2 commits into
mainfrom
ethan/fix-open-in-grades

Conversation

@ethanransing

@ethanransing ethanransing commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Issue:

image image

Another issue: When you open a class in grades and refresh, the name of the course is a blank string:
image

Root cause:

#1130 changed the backend/frontend contract by adding courseId, but the "Open in Grades" button contract wasn't updated to match this. Instead courseNumber was passed in as courseId, which leads to no match. #1130 also changed the URL writer to not include course number, so on refresh the URL reader can't reconstruct the course number from the course ID in the url.

Fix:

  1. Pass in courseId to the button
  2. Add GetCourseNumberByIdDocument query

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61a1daabed

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/frontend/src/components/Class/Grades/index.tsx
Grades deep links carry only courseId, so the parser leaves courseNumber
empty. loadOutputsFromInputs now resolves the display number via a new
courseById lookup (in parallel with the grade query, non-fatal on failure),
fixing blank course numbers and empty edit/filter lookups on Open-in-Grades,
refresh, and shared links.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ethanransing ethanransing changed the title Fix "Open in Grades" in Catalog: pass courseId into of courseNumber to fix mismatch Fix "Open in Grades" in Catalog: pass courseId instead of courseNumber to fix mismatch Jun 14, 2026
@ethanransing
ethanransing requested a review from Henrp June 14, 2026 16:59

@Henrp Henrp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

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.

2 participants