gustafn
committed
on 31 Oct 21
Refactor form-field statistics (part 1)

- Start move of statistics from being collected in form-fields to
collecting these in the workflo… Show more
Refactor form-field statistics (part 1)

- Start move of statistics from being collected in form-fields to

 collecting these in the workflow objects. The original code was

 developed with less randomization (e.g. no x out of y alternatives)

 which requires that the formfields have to be reset multiple times

 (e.g. for multiple students in the exam protocol). The exam-protocol

 handler cleans regularly the form-fields, which caused also the

 deletion of statistics. Collecting these in the (exam) workflow is

 safe.

- Collect correct and incorrect statistics per alternative. Since

 different students might see different alternatives calculating the

 successrate can only be performed by the students having seens this

 alternative.

Show less