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] #206

Closed andersweinstein closed 11 months ago

andersweinstein commented 11 months ago

This is a more general and robust solution to MER-2668, needed to handle additional cases like fill-in-the-blank. The fix is to detect and store the pool format (dtd) and suppress summative-to-formative conversion for formative-format pools.

MEr-2668: Some multiple choice and fill_in_the_blank questions in pools were getting 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 happened because (1) questions have different representations in formatives and summatives (in formatives they have no “input” level wrapping choices); (2) pools go through the summative-to-formative conversion; but (3) if the pool uses the formative DTD format, as in the L&P cases, this restructures questions into a form whose type is not recognized by subsequent code. Question type detection then falls through cases ending up on short answer type by default.