Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

[BUGFIX] some multiple choice questions in pools changed to short answer [MER-2668] #204

Closed andersweinstein closed 1 year ago

andersweinstein commented 1 year ago

Some multiple choice questions in pools get converted into short answer (textarea) questions. Seen in several cases in Logic and Proofs, which is distinctive in using inline assessments that draw from pools.

This happens because (1) mcqs have different representations in formatives and summatives (in formatives they have no “input” level wrapping choices); (2) pool items go through the summative-to-formative conversion; but (3) if the mcq is already in the formative form, as in the L&P cases, this restructures it into a form whose type is not recognized by subsequent code. Question type detection then falls through cases ending up on short answer questions by default.

Fix suppresses certain conversion step in case where mcq already in formative form (no input element wrapper).