Skip to main content

Module credit_registration_admin_actions

Module credit_registration_admin_actions 

Source
Expand description

Audit of manual actions on the credit registration pipeline.

Separate from credit_registration_events because the targets are often not registrations at all: a phase, a course module, a student-number link. Item-targeted actions write both tables.

Structs§

CreditRegistrationAdminActionFilters
The narrowings the Audit tab applies, all of them in SQL.
CreditRegistrationAdminActionListRow
One action with its actor named and the page’s total attached.
CreditRegistrationAdminActionRecord
NewCreditRegistrationAdminAction

Enums§

CreditRegistrationAdminAction
CreditRegistrationAdminActionTarget

Constants§

COURSE_TEACHER_ROLE
GLOBAL_ADMIN_ROLE

Functions§

count_by_actor_since
Backs the per-actor guard on the resend endpoints: one person’s actions of one kind in a window.
count_queued_resends_by_actor_since
Backs the admin resend endpoint’s own quiet period. Unlike count_by_actor_since, a refused attempt (no mail sent) doesn’t count: otherwise a refusal would block the immediate override-and-retry the rate cap’s own “send anyway” option exists to offer.
get_by_actor
get_page
A page of the global action log, newest first, covering both actor kinds.
record
Call in the same transaction as the effect it audits.