Skip to main content

resolve_changeset_preview

Function resolve_changeset_preview 

Source
pub async fn resolve_changeset_preview(
    conn: &mut PgConnection,
    changeset: &AgentChangeset,
    page_id: Option<Uuid>,
) -> ModelResult<PagePreview>
Expand description

What the preview link of the whole changeset renders: page_id, or the first changed page without one, with the changed pages to switch between. The caller checks the same things as for resolve_preview. Errors with NotFound also if the changeset changes no pages and page_id is None.