Skip to content

fix(zava-learning): replace placeholder quiz questions with a real curated bank - #314

Open
PraveenTB wants to merge 1 commit into
microsoft:mainfrom
PraveenTB:pbabut/zava-learning-quiz-questions
Open

fix(zava-learning): replace placeholder quiz questions with a real curated bank#314
PraveenTB wants to merge 1 commit into
microsoft:mainfrom
PraveenTB:pbabut/zava-learning-quiz-questions

Conversation

@PraveenTB

Copy link
Copy Markdown

java learning questions are too easy... making them more intriguing and throughprovoking questions

…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
PraveenTB force-pushed the pbabut/zava-learning-quiz-questions branch from 28b68dd to a0bf008 Compare September 1, 2026 22:43
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