Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/common/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ impl Actor {
pub enum JobName {
/// The periodic expired-state cleanup.
Cleanup,
/// The purge of accounts whose deletion grace period ended.
AccountPurge,
}

/// A security audit log row, kept verbatim by the migrations to typed events.
Expand Down
3 changes: 3 additions & 0 deletions crates/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ str_enum! {
Active = "active",
/// The account is administratively unavailable.
Disabled = "disabled",
/// The account is scheduled for deletion. It cannot sign in, but a passkey
/// can restore it until its grace period ends and it is purged.
Deleting = "deleting",
}
}

Expand Down
6 changes: 6 additions & 0 deletions docs/architecture/database-crate.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ release still reads the rows already stored. The tolerance only protects a relea
that has it: ship a new variant in a later deploy than #149, so that a rollback
never lands on a release without it.

Closed vocabularies stored in other columns, such as `AccountStatus` and the
`JobName` of an `Actor::System`, have no such tolerance: a release fails to decode
a value it does not know. Add the value in one release that never writes it, and
start writing it in a later one, so the release a deploy or rollback runs beside
always reads it.

### Personal data

- `domain_events` holds only non-identifying content: kind, versioned payload,
Expand Down
Loading