French course included some manually graded multi-input questions with text inputs. These were not being migrated correctly, not only because the grading type attribute was not processed at all for this question type, but also because questions used part definitions of the following form:
in which parts are associated with inputRefs vis the "targets" attribute and contain no responses, a structure that also was never handled.
This PR adds support for migrating such questions correctly. It fills in default correct and incorrect responses to get past torus authoring UI requirements.
This also takes the opportunity cleans up some code in the relevant routines and add a bit of documentation on the somewhat involved processing being done.
French course included some manually graded multi-input questions with text inputs. These were not being migrated correctly, not only because the grading type attribute was not processed at all for this question type, but also because questions used part definitions of the following form:
in which parts are associated with inputRefs vis the "targets" attribute and contain no responses, a structure that also was never handled.
This PR adds support for migrating such questions correctly. It fills in default correct and incorrect responses to get past torus authoring UI requirements.
This also takes the opportunity cleans up some code in the relevant routines and add a bit of documentation on the somewhat involved processing being done.