Skip to main content

remove_basis

Function remove_basis 

Source
pub async fn remove_basis(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
) -> AppResult<SimulationBasis>
Expand description

Removes a basis link from a simulation revision checked out by the actor.

ยงInvariants

  • Permission: CAD editor in the project group, simulation revision in work and checked out by the actor (403 / 409); a link the actor cannot see is a 404.
  • Locks: the simulation revision (FOR UPDATE).
  • Audit: simulation.basis.remove (related to the basis item).
  • Notifications / webhooks: none.
  • Atomic: one transaction.