Expand description
The simulated Sisu world: entities, the submission lifecycle, the world-shaped behaviours, and the per-request working set the endpoints resolve over.
Plain values only, so the resolution logic stays a pure function over an in-memory slice.
Structs§
- Course
Behaviour - Credit
Range - The wire’s own shapes, so a world dump can be edited and pushed straight back.
- Date
Period - The wire’s own shapes, so a world dump can be edited and pushed straight back.
- Grade
- Grade
Scale - Localized
Name - The wire’s own shapes, so a world dump can be edited and pushed straight back.
- Missed
Fault - Mock
Attainment - Mock
Course Unit - Mock
Enrolment - Mock
Person - Mock
Product Access Token - Mock
Realisation - Mock
Submission - Person
Behaviour - Recorded
Call - One entry of the mock’s own call log: unscrubbed fake data, capped, never fed to the audited tables.
- Recorded
Faults - Recorded
Item - Working
Set - The slice of the world one request needs, read once and written back once.
- World
Defaults - Every field defaults, so a partial
defaultspush cannot install an empty accepted token and 401 the whole suite.
Enums§
- Attainment
State - Duplicate
Detection - Enrolment
State - Product
Document State - Product
Token State - Realisation
Kind - Ripeness
- When a submission becomes a real Sisu attainment. There is no clock: something has to transition it, and which mechanism does is per-submission data rather than a mode the mock runs in.
- Submission
Lifecycle - World
Write - One change the resolution logic wants persisted, one Redis command each.
Functions§
- default_
grade_ scales - TODO: Suotar has not confirmed whether the pass/fail scale id is
sis-hyv-hylorsis-hyl-hyv, so both spellings resolve to one scale. - person_
course_ key