Closed christianp closed 3 months ago
It seems that the testing tab is generally out of date quite often: I've noticed the feedback messages and score not matching. There are also two copies of the feedback on a part with alternatives, which shouldn't happen.
There's an inconsistency in how alternatives are used.
The routine at the moment is:
part.submit
.part.markAlternatives
is called, to get the name of the alternative used, if there is one.submit
, while the feedback messages come from the markAlternatives
call.If any of the main part or the alternatives' marking algorithms behave randomly, then the feedback can end up not matching.
I think that we should change Part.submit
so that the best_alternative
is saved, so we don't have to call markAlternatives
again.
After these changes, I'm going to mark this as completed, until and if I find a custom part type which has problems.
I noticed this with the spreadsheet extension. It might just be the spreadsheet widget that has this problem.