Expand description
The simulated Sisu and Suotar world: entities, the per-submission send and importer state, 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.
Re-exports§
pub use super::wire::CreditRange;pub use super::wire::DatePeriod;pub use super::wire::LocalizedName;
Structs§
- Course
Behaviour - Grade
- Grade
Scale - Missed
Fault - Mock
Attainment - Mock
Course Unit - Mock
Enrolment - Mock
Person - Mock
Realisation - Mock
Study Right - Mock
Submission - One of Suotar’s
entriesrows: a completion written by an import, with what became of its Sisu send and what the importer has seen of it since. - 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 - Suotar
Course - 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
Level - Which of Sisu’s two attainments a submission produces.
- Attainment
State Misregisteredstands for Sisu’s separate misregistration flag, which the wire never shows: such an attainment reads asATTAINEDwhere it is listed at all, and resolve leaves it out.- Enrolment
State - Importer
Visibility - What the importer’s copy of Sisu holds for a submission. Only a control transition changes it.
- Realisation
Kind - Which audience a fixture realisation serves; only picks the default ids. The wire’s
kindcomes from the enrolment’s study right id instead. - Send
State - Suotar’s
entries.sendState. - World
Write - One change the resolution logic wants persisted, one Redis command each.
Constants§
- PENDING_
WINDOW_ HOURS - How long an unconfirmed send stays
submissionPendingbefore verify calls itnotRegistered. - REFUSED_
COURSE_ CODES - Elements of AI and Building AI, which Suotar refuses whatever its course table says.