Skip to content

Fix CodeTailor false "question not found" for book-authored questions - #1384

Merged
bnmnetp merged 1 commit into
RunestoneInteractive:mainfrom
aspadiyath:fix-codetailor-suffix-code-fallback
Aug 19, 2026
Merged

Fix CodeTailor false "question not found" for book-authored questions#1384
bnmnetp merged 1 commit into
RunestoneInteractive:mainfrom
aspadiyath:fix-codetailor-suffix-code-fallback

Conversation

@aspadiyath

Copy link
Copy Markdown
Contributor

parsons_scaffolding() treated a question as missing whenever its question_json was empty, but the build pipeline only ever populates question_json for instructor-authored custom exercises -- book-built activecode questions (e.g. csawesome2__u1b-toggle1) store their test code in the raw <textarea> source (htmlsrc) after a "====" delimiter instead. Fall back to parsing that when question_json.suffix_code is unavailable, and only 400 "not found" when the question row truly doesn't exist.

parsons_scaffolding() treated a question as missing whenever its
question_json was empty, but the build pipeline only ever populates
question_json for instructor-authored custom exercises -- book-built
activecode questions (e.g. csawesome2__u1b-toggle1) store their test
code in the raw <textarea> source (htmlsrc) after a "====" delimiter
instead. Fall back to parsing that when question_json.suffix_code is
unavailable, and only 400 "not found" when the question row truly
doesn't exist.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aspadiyath
aspadiyath requested a review from bnmnetp as a code owner August 18, 2026 01:39
@bnmnetp
bnmnetp merged commit 1d98da6 into RunestoneInteractive:main Aug 19, 2026
2 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.

2 participants