fix(zava-learning): replace placeholder quiz questions with a real curated bank - #314
Open
PraveenTB wants to merge 1 commit into
Open
fix(zava-learning): replace placeholder quiz questions with a real curated bank#314PraveenTB wants to merge 1 commit into
PraveenTB wants to merge 1 commit into
Conversation
…rated bank The student portal rendered "Sample question 1 for PSY-100" with A/B/C/D options instead of a real quiz. Root cause: the curated quiz_questions seed in src/db/schema.sql only covered BIO-101, MATH-220 and ECON-201, and the static QUIZZES map in assessment-api covered the same three. HIST-180, CHEM-110 and PSY-100 had no entries at all, so both services fell through to their placeholder fallback, which is what students saw. Changes: - Author 5 curated questions for each of the 6 catalogue courses (30 total), replacing the 2-question stubs. Prompts are conceptual and proof-read; every question has 4 distinct options and one unambiguous correct answer, with the answer index varied across positions. - Keep the DB seed and the assessment-api bank byte-identical so the two quiz paths cannot drift. - Make the quiz_questions seed declarative (DELETE then INSERT) instead of seed-once-when-empty, so re-running the schema against an already provisioned lab converges on the current set rather than keeping stale rows. The file executes as a single implicit transaction, so the bank is never observably empty. - Render portal options as a labelled A./B./C./D. list; the previous non-breaking-space join ran the longer option text together. The placeholder fallbacks in assessment-api and quiz-service are left in place deliberately - they remain a useful signal that a course is missing curated content. Verified by running course-api, assessment-api and learner-portal locally: all 6 courses return questionCount=5 with zero placeholder prompts, and scoring returns 100% for the answer key and 20% for an all-A submission. schema.sql parses cleanly against the real PostgreSQL grammar (pglast), yielding 30 VALUES rows. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PraveenTB
force-pushed
the
pbabut/zava-learning-quiz-questions
branch
from
September 1, 2026 22:43
28b68dd to
a0bf008
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
java learning questions are too easy... making them more intriguing and throughprovoking questions