Skip to main content

Module account_linking

Module account_linking 

Source
Expand description

The account-linking actions an admin or a teacher sets off by hand, what they answer, and the roster listing a student’s own visit books.

Structs§

ManualActionContext
What a manual action needs from the controller that runs it.
RateCapOverride
An admin’s go-ahead to get past the linking-mail caps by retiring the mails they count; see retire_capped_mails.
RegistryPerson
The Sisu person an interactive lookup found for a student number.
ResendAttempt
The outcome of one resend attempt, plus how many capped mails an override retired to get there.

Enums§

PersonLookupError
Why an interactive person lookup could not say whether the number exists. personNotFound is an answer, not one of these.
ResendOutcome
What one resend attempt came to.

Functions§

book_listing_for_unlinked_student
Books a listing of the module’s course code for a student we hold no number for, since the listing is what mails them the link. is_visit also books the follow-up listing a visit gets. Does nothing for a linked student, or a module with no course code. The caller checks that account linking is switched on.
look_up_person
Looks one student number up in the study registry without changing anything: no ledger row, no claimed mail slot, just the call log row every study registry call writes.
resend_linking_mail_for_target
Shared by the teacher- and admin-facing resend endpoints: refuses a target that is already linked, otherwise reruns the send path exactly as the worker would, applying rate_cap_override, if any, only once the registry has named an address to mail.