Skip to main content

create_change

Function create_change 

Source
pub async fn create_change(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
    title: Option<&str>,
    priority: Option<Priority>,
) -> AppResult<CreatedChange>
Expand description

Creates the draft change order of an accepted request with the in-work revisions of the affected items, all in one transaction. Items without a revision in work (or whose revision is in another open change, or in a project group of which the actor is no member) are skipped and reported.