pub async fn update(
pool: &PgPool,
actor: &Actor,
id: Uuid,
upd: ProjectUpdate<'_>,
) -> AppResult<Project>Expand description
Changes name, description, active flag and (administrators only) the linked identity-provider group of a project group.
§Invariants
- Permission: the group is visible to the actor (“not found” otherwise) and the actor manages it (or is an administrator; 403).
- Locks: the group row (
FOR UPDATE). - Data: for non-administrators the IdP group stays as it is.
- Audit:
project.update. - Notifications / webhooks: none.
- Atomic: one transaction.