Skip to main content

move_block_references

Function move_block_references 

Source
async fn move_block_references(
    conn: &mut PgConnection,
    course_id: Uuid,
    writes: &StagedWrites<'_>,
) -> ModelResult<()>
Expand description

Points feedback and edit proposals at the page their blocks moved to.

A record moves only when none of its blocks is left on its page; it then follows its first block that still exists. Blocks keep their clientId when moved, so only pages in the changeset can have gained or lost them.