Expand description
A course’s editable content held in memory: as published, or as the user sees it with their open changeset laid over it.
Modules§
Structs§
- Course
State - Every editable entity of one course.
- Course
View - The published course and the user’s staged view of it.
- Exercise
Deadline - What decides an exercise’s deadline, held for every exercise of a course’s pages so that risk
sees deadlines without the
ExerciseRecords loaded. - Exercise
Record - What agents may edit of an exercise, and what identifies its tasks and review settings. The
exercise itself is stored in the full
PageSnapshotof its page. - Exercise
Task Record - One task of an
ExerciseRecord. - Page
Record - A page’s structure fields and blocks; exercises stay in the full
PageSnapshot. - State
Changes - What changed between two course states. Pages are listed by id: their full snapshots hold exercises, which only the database has.
Enums§
- Course
Parts - Which parts of a course a tool reads; the course settings are always there, the other parts left out stay empty.
- Exercise
Edit Error - Why an
ExerciseRecordcouldn’t be applied. - Exercise
Review Config - Which peer and self review settings an exercise uses.
- Publish
Blocker - A rule publishing relies on that a course state breaks. Pages, chapters and modules are named as the state has them.
- Review
Config Kind - Which review settings an exercise uses.
- Staged
Entity - The state one entity has after an agent write call.
Functions§
- load_
live_ course - Loads the parts of the course as published.
- load_
view - Loads the parts of the published course and the user’s open changeset for it.
- review_
instructions_ for_ storage - Review instructions as the CMS stores them:
Nonefor no blocks or only empty paragraphs.