Expand description
Handlers for HTTP requests to /api/v0/main-frontend/credit-registration-admin.
Every mutating handler writes its credit_registration_admin_actions row in the transaction that has
the effect. Admins see recipient addresses in full and the scrubbed study registry bodies; the
registryβs own error text is returned to nobody.
ModulesΒ§
- account_
linking π - The account-linking funnel, resending and hand-resolving linking mails, and manual links.
- api_log π
- The Suotar API log tab: one row per HTTP call to the study registry, and what each covered.
- audit π
- The Audit tab: every hand action on the pipeline, whoever took it.
- courses π
- The Courses tab: one row per Suotar-enabled course module, with its configuration validated.
- dashboard π
- The Overview tab, the Suotar health panel and phase pause/resume/run-now controls.
- errors π
- The Errors & stuck tab: what is going wrong by error code, and which rows want a human.
- history π
- The Pipeline tabβs history: queue depth per state per day, and the flow through each.
- ledger π
- Viewing and hand-transitioning rows of the credit registration ledger.
- materialize π
- Manually running the two database-only steps that turn eligible completions into ledger rows.
- phases π
- The Workers tab: one row per pipeline phase, with the queue each is responsible for.
- reconciliation π
- The Reconciliation tab: the failures defined by an absence, which no error count can catch.
- student_
numbers π - Listing and unlinking verified student numbers, for spot-checking and support.
StructsΒ§
FunctionsΒ§
- _add_
routes - authorize_
credit_ πregistration_ admin - Every handler here gates on the same check; a submodule calls this instead of repeating it.
- build_
linking_ πemails - Shared by the ledger detail view and the account-linking admin views: both show a personβs linking mails alongside the token each one carries.
- one_
or_ πmany serde_urlencodedreads a single occurrence of a key as a scalar, not a one-element sequence, so aVecfield otherwise refuses a query string that repeats the parameter zero or one times.- required_
reason π - Refuses an empty or whitespace reason. Every audited action names one.