Skip to main content

Module ids

Expand description

Default identifier derivations for the simulated world. Every control upsert may pass an id verbatim instead, and the seed does for anything a spec asserts on.

derived never formats a student number into the id: these reach the audited call log and the event details, where the scrubber’s free-text scan only redacts bare digit runs.

Constants§

MOCK_NAMESPACE 🔒
Namespaces every derived id, so the same inputs reproduce the same id across restarts and CI runs.

Functions§

assessment_item_id
course_unit_id
derived 🔒
enrolment_id
enrolment_id_for_course
Per (student, course, kind): a person enrolled in more than one realisation of the same kind at once needs an id enrolment_id cannot give them, since that one is keyed on (student, kind) alone.
final_attainment_id
person_id
product_access_token
product_id
pushed_attainment_id
realisation_id
Per (course, kind) rather than per student: a realisation is a shared teaching event whose roster list-by-course returns.
study_right_id
submitted_attainment_id
attempt distinguishes a legitimate re-submission from a replay of the same attempt, which reproduces the id.