Skip to main content

Module diff

Module diff 

Source
Expand description

Compares two states of course content: blocks matched by id, and modules, chapters and pages by the fields models compare.

Structs§

BlockChange
One block that differs between two states of the same pages.
Placed 🔒

Enums§

ChangeKind
How a block or an entity differs between two states.

Functions§

changed_roots
The top-level trees of page that hold a block added, changed or moved there since before, or that lost a child: a container’s template can require the child. before is the page as it was, if it existed.
diff_blocks
The blocks that differ between the pages of before and after. A page must be on both sides when it exists on both.
diff_pages
The blocks that differ between two states of the pages. A page a state doesn’t have has no blocks there.
place_blocks 🔒
Where every block of the pages is, and the block ids in page order.
structure_changes
The modules, chapters and pages that after adds or changes of before, by id.