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, and what they answer.

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§

list_unlinked_enrolled_before
Lists one course code’s roster now and keeps the people linking mails skip: enrolled before since or at no known time, and linked to no account, each once. Stores nothing.
list_unlinked_on_course_rosters
Lists the rosters of every course code on the course now and keeps the people linked to no account, whenever they enrolled, each once. Stores nothing.
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.