Skip to main content

Module competing_credits

Module competing_credits 

Source
Expand description

The other credits of a student’s module that a new attempt is weighed against before it is sent.

Structs§

LiveSuccessForModule
Another live attempt, of any completion of the same student and module, that the study registry already holds.
RecordedCredit
A credit for the student and module that our own records say the study registry holds.

Functions§

get_recorded_credits_for_same_module
Every credit for the row’s student and module that our records say the registry holds: another of our live attempts in a success state, or a registrar’s pull-path registration.
lock_live_successes_for_same_module
The student’s other live attempts for the row’s module that the registry already holds, locked until the caller’s transaction ends.
prepare_unsent_duplicate
Readies a row that resolve-enrolments settles as duplicate without sending it, in the caller’s transaction and before the transition.