apluslms / a-plus-rst-tools

Tools to publish RST course content for mooc-grader and a-plus. Should be cloned as a course submodule.
MIT License
6 stars 24 forks source link

Validate questionnaire options #171

Closed jsorva closed 1 year ago

jsorva commented 1 year ago

Sometimes one edits a multiple-choice question, adding, reordering, and changing the options. One carelessly writes something like this pick-any question:

Question text. Here are the options:

c.  option 1    
*d. option 2    
*e. option 3    
*f. option 4    
e.  option 5    
*f. option 6

Note that the options are not properly labeled from a to f, and there are duplicate labels.

It has happened a couple of times that something like that has ended up in production. The symptoms for students are really weird and confusing.

It should be pretty straightforward to check for duplicate labels and, perhaps, to enforce labeling from a upwards.