openwebwork / webwork2

Course management front end for WeBWorK
http://webwork.maa.org/wiki/Main_Page
Other
145 stars 165 forks source link

Feature Request: Add a variable to set defaults of wanrings/hints to be shown or not across graders. #1184

Open somiaj opened 3 years ago

somiaj commented 3 years ago

I'll open a new issue for this,

On the master branch I found this custom change that allows one to suppress Value::Error warnings from the grader during the quiz, otherwise on some graders students may get info about why their answer is incorrect (such as 'Left end point is not correct') when working on a quiz.

https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4761

I would like to apply something like this to the devlop branch. I am okay with all messages being suppressed in the quiz, though as a feature it would need a bit more configuration, or maybe only suppress answers if the 'Hide Hints from Students' option is set to Yes. Also as mentioned by the original author, could also be a little more fine grain to suppress all messages vs suppress some (like maybe show type errors). I personally prefer the suppress all, but I also manually grade the quizzes afterwards.

somiaj commented 3 years ago

After writing more problems and getting more familiar with various options, I do notice that many of the graders do allow far more customization on which warnings/errors they give to students. For instance to address the left end point is not correct messages I can just change showEndpointHints and showEndTypeHints.

Also, some graders will use $showPartialCorrectAnswers as the defaults for showing/not showing specific warnings, so some graders can disable a lot of the helpful warnings by setting the correct value of a variable. Though the use of this is not consistent.

So I am updating this request to provide some new variable(s), such as $showHints, $showHintsDefaults, $showWarnings, that is used as the default for showing hints, type warnings, etc. This way it is possible to disable all messages and turn on only the ones desired for in a particular problem (as opposed to have to disable them one at a time). It might also be useful to have an option in gateway quizzes to make this variable default to 0 instead of 1.

Though with the wide variety of mathobjects and various grader messages this might be a large task to ensure all the warnings/error messages are consistent with this behavior.