pub async fn update(
pool: &PgPool,
actor: &Actor,
id: Uuid,
upd: RevisionUpdate,
) -> AppResult<Revision>Expand description
Changes name, description, material, mass, cost and custom attributes of a revision.
§Invariants
- Permission: the revision is visible (“not found” otherwise), checked out by the actor
(409 otherwise) and editable (
revisions::ensure_editable: in work, CAD editor of its group). - Locks: the revision row (
revisions::lock). - Audit:
revision.update. - Notifications / webhooks: none.
- Atomic: one transaction.