Expand description
Full snapshots of course content entities.
Agent changesets stage these, entity_history stores them, and publishing and restoring write
them back through the existing save paths. A snapshot holds every field its save path writes,
so writing back an unchanged snapshot is a no-op.
Modules§
- content_
entity 🔒 - loading 🔒
- types 🔒
Structs§
- Chapter
Snapshot - Course
Audience Snapshot - Course
Default Review Config Snapshot - The peer and self review settings of a course that exercises use unless they have their own. Agents edit only the instructions; the other settings are left out.
- Course
Settings Snapshot - The course’s own settings: the editable fields of the
coursesrow and its audiences. - Entity
Key - An entity kind and id, which together identify one content entity.
- Entity
Ref - A content entity and what people call it.
- Exercise
Bundle - One exercise of a page snapshot with its slides and tasks.
- Glossary
Term Snapshot - Module
Snapshot - A course module’s structure fields and settings.
- Page
Snapshot - A course page: its metadata, its stored blocks and its exercises, in the shape the CMS page
save takes. Exercise blocks in
contentare stored stripped to their id, as the CMS stores them; the exercises themselves are inexercises,exercise_slidesandexercise_tasks. - Reference
Snapshot
Enums§
- Content
Entity Type - A kind of course content entity that agent changesets stage and history records.
- Entity
Snapshot - A snapshot of any entity type an agent changeset can hold. Serialised as the bare snapshot;
stored ones are parsed with
EntitySnapshot::from_json, which knows the type.
Functions§
- course_
settings_ of - The settings of a fetched course; only its audiences are read.
- exercise_
bundles - Each exercise in exercise order, with its slides and tasks.
- load_
course_ default_ review_ config - The course’s default review config, if it has one.
- load_
live load_live_manyof one entity.- load_
live_ many - The live state of each entity,
Nonefor one that does not exist or is deleted. Pages that belong to an exam are treated as not existing: changesets only hold course content. - load_
page - The live page, as
load_live_manyhas it. - load_
pages - The live pages, as
load_live_manyhas them, by id; the pages that don’t exist are left out.