Skip to main content

discard_changeset

Function discard_changeset 

Source
async fn discard_changeset(
    pool: Data<PgPool>,
    changeset_id: Path<Uuid>,
    payload: Json<ReviewedRevisionRequest>,
    user: AuthUser,
) -> ControllerResult<Json<DiscardOutcome>>
Expand description

POST /api/v0/main-frontend/agent-changesets/{changeset_id}/discard - Drops the user’s open changeset. Nothing of it reaches the live course. Rejected without changes if the changeset is no longer open or no longer the reviewed revision.