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] targeted feedback fixes for merged pool sections, multi-inputs [MER-3047] #242

Closed andersweinstein closed 8 months ago

andersweinstein commented 8 months ago

Migration of section pools now works by merging all questions in the pool into one big multi-input question. Preparing questions for merging involves renaming ids to new, part-qualified ids, including updating the choice Ids used as keys in the targeted feedback mapping. This PR corrects a coding error causing incorrect results when merging more than one multiple choice question with targeted feedback. The code to update the single question-global targeted feedback list needs to occur at the end of the routine, so it operates after all constitutent questions have been processed.

This also fixes targeted feedback listing for multi-input questions to omit the correct answer, same as was done for multiple choice questions.