Skip to main content

Module reconcile

Expand description

What one code’s roster does to the modules on it: waking linked students’ registrations and claiming linking mails for everybody else.

Structs§

LinkedAccounts 🔒
The accounts linked to someone on one code’s roster, indexed once for every module on it.

Functions§

claim_linking_mails 🔒
Claims a linking mail for everyone on one module’s roster we hold no link for, and returns the counters its configuration row carries.
distinct_people 🔒
A person enrolled on several realisations of the code is listed once per realisation; keeps the most recent enrolment of each, one with no enrolment time counting as the oldest.
linking_candidates 🔒
The people on one module’s roster a linking mail may go to, and the counters of those it may not: already linked, or with no address to mail.
load_linked_accounts 🔒
The accounts already linked to someone on the roster, by Sisu person id or student number.
reconcile_roster 🔒
Wakes and mails for one code’s roster, module by module: mails and links are per course. Returns the linking mails claimed across the listing’s modules, for the caller’s roster-fetch summary.
roster_enrolees 🔒
The linked accounts on the roster, each with every enrolment id the registry lists them under.