pub async fn remove_result(
pool: &PgPool,
actor: &Actor,
id: Uuid,
) -> AppResult<SimulationResult>Expand description
Removes a result value from a simulation revision checked out by the actor.
ยงInvariants
- Permission: as
add_result; a value the actor cannot see is a 404. - Locks: the simulation revision (
FOR UPDATE). - Audit:
simulation.result.remove. - Notifications / webhooks: none.
- Atomic: one transaction.