pub async fn discard_entities(
conn: &mut PgConnection,
changeset_id: Uuid,
entities: &[EntityKey],
reviewed_revision: Option<i32>,
risk: &RiskBaseline<'_>,
) -> ModelResult<Result<Vec<EntityRef>, DiscardRejection>>Expand description
Drops the entities from an open changeset, so the user sees them live again, classifies the
risk of the rest again and returns the entities it dropped. Entities the changeset doesn’t
have are skipped. Refuses like discard, and if the rest would break rules of publishing
the whole changeset didn’t.