Skip to main content

Module ledger

Expand description

Viewing and hand-transitioning rows of the credit registration ledger.

Structs§

AdminBulkTransitionPayload
AdminBulkTransitionResult
AdminBulkTransitionSkipCount
AdminCreditRegistrationDetails
AdminCreditRegistrationEvent
AdminCreditRegistrationRow
AdminNotificationEmail
One of the two student terminal-state mails, in full: send_status.failure_code is what drives the decision to look at the relay.
AdminRequeueRetryablePayload
AdminRequeueRetryableResult
AdminSuotarApiCall
AdminTransitionCreditRegistrationPayload
AdminTransitionCreditRegistrationResult
ListCreditRegistrationsQuery

Enums§

AdminCreditRegistrationAction
What one hand action does to a row: either a state move, or something that leaves the state alone. Kept apart because only the first is a transition, and only the first is refusable.
AdminCreditRegistrationStateMove
The states an admin may move a row to; everything else is the pipeline’s to decide.
AdminTransitionOutcome

Constants§

MAX_RELATED_ROWS 🔒
A detail view’s related-rows lookups (other attempts, calls, actions) never paginate; this just bounds them against a pathological completion.
MAX_ROWS_PER_BULK_TRANSITION 🔒
A fat-finger bound on one selection; a bigger one is taken in several passes.
MAX_ROWS_PER_REQUEUE 🔒

Functions§

_add_routes
admin_bulk_transition_credit_registrations
POST /api/v0/main-frontend/credit-registration-admin/registrations/bulk-transition - Moves a selection of rows by hand, one transaction for the lot.
admin_requeue_retryable_credit_registrations
POST /api/v0/main-frontend/credit-registration-admin/registrations/requeue-retryable - Makes every failed_retryable row waiting out a backoff due now.
admin_transition_credit_registration
POST /api/v0/main-frontend/credit-registration-admin/registrations/{credit_registration_id}/transition
apply_transition 🔒
Applies one hand action in the caller’s transaction, returning what it did, where the row ended up, whether it still asks for a human, and whether the caller must still make it due now.
get_credit_registration_for_admin
GET /api/v0/main-frontend/credit-registration-admin/registrations/{credit_registration_id} - One row with its timeline, the calls that timeline refers to, the other attempts for the same completion, the actions taken on it and its linking mails.
insert_admin_action_event 🔒
Records an admin action against the row’s timeline without moving its state, for the two transitions that only clear a flag or reschedule the row.
list_credit_registrations_for_admin
GET /api/v0/main-frontend/credit-registration-admin/registrations - A page of the ledger, filtered and sorted.
one_admin_row 🔒
to_admin_api_call 🔒
to_admin_row 🔒