Skip to main content

Module account_linking

Expand description

The account-linking funnel, resending and hand-resolving linking mails, and manual links.

Structs§

AccountLinkingFailureDomain
Hard send failures grouped by recipient domain.
AccountLinkingFunnel
The account-linking funnel. The _last_run steps come from counters the discovery phase overwrites whole, the _in_window ones from the window: there is no single denominator.
AccountLinkingRealisationCounters
AccountLinkingSendOutcome
One mail attempt: the address it went to and what we can say about its delivery.
AccountLinkingSendStatusTotals
AccountLinkingStaleAddress
A person mailed to the cap for one course whose number was never claimed.
AccountLinkingStats
AccountLinkingStatsQuery
AdminManuallyLinkStudentNumberPayload
AdminManuallyLinkStudentNumberResult
AdminResendAccountLinkingEmailPayload
AdminResendAccountLinkingEmailResult
AdminResolveStudentNumberPayload
AdminResolveStudentNumberResult
The preview a manual link is gated on. No addresses from the registry — resolve-persons answers with a name and an id only — so the addresses here are the ones we mailed.
ManualLinkRequest 🔒
The three values a manual link may not be attempted without.
VerifiedStudentNumberMethodTotal

Enums§

AdminManualLinkOutcome

Constants§

RESEND_CALLER 🔒
Marks a manual action’s study registry call in the call log as something a person set off.
RESEND_QUIET_PERIOD_SECS 🔒
A fat-finger guard on top of the per-person caps, which this endpoint can only override by retiring ledger rows.
RESOLVE_CALLER 🔒
STALE_UNCLAIMED_LIMIT 🔒

Functions§

_add_routes
admin_manually_link_student_number
POST /api/v0/main-frontend/credit-registration-admin/account-linking/manual-link - Links a student number to an account on an admin’s judgement.
admin_resend_account_linking_email
POST /api/v0/main-frontend/credit-registration-admin/account-linking/resend - Sets off another account-linking mail for one person on one course.
admin_resolve_student_number_for_linking
POST /api/v0/main-frontend/credit-registration-admin/account-linking/resolve-person - Looks one student number up in the study registry without changing anything.
build_stale_addresses 🔒
finish_resend 🔒
Audits the resend whatever it did, and reports where this person’s mails now stand.
get_account_linking_stats
GET /api/v0/main-frontend/credit-registration-admin/account-linking - The linking funnel, the per-realisation counters, the send-status totals and the stale-address list.
manual_link_request 🔒
Refuses a manual link that skipped the preview or gave no reason, before anything is asked of the study registry. The person id can only have come from the preview: it is the registry’s own identifier, not something a caller could produce from the student number in front of them.
phase_context 🔒