Skip to content

feat(auth): read the deleting account status and the account purge job - #151

Merged
PiquelChips merged 1 commit into
mainfrom
feat/account-status-deleting
Oct 22, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
feat/account-status-deleting

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Account deletion (#84) writes two new values to columns that releases decode strictly: users.status = 'deleting', and Actor::System { job: "account_purge" } in domain_events.actor. A release that does not know them fails on those rows with InvalidStoredData, for example in admin search or the admin events page. During a deploy the previous release keeps serving beside the new one, and a rollback runs it again, so the release that writes these values must not be the first one that reads them.

How

  • AccountStatus gains Deleting and JobName gains AccountPurge. Nothing writes them yet.
  • database-crate.md states the rule for closed vocabularies outside event payloads: add the value in one release, write it in a later one.

Deploy order: the account deletion PR, stacked on this one, must ship in a later deploy.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by GPT 6.1 Sol (via T3 Code)

🤖 Generated with Claude Code

Account deletion (#84) writes a new account status and a new background
job actor, which older releases cannot decode. This release only reads
them, so the release that writes them can roll out and roll back beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a15ef20d-6ca0-45c7-b8b2-65b5c05ea951
📥 Commits

Reviewing files that changed from the base of the PR and between 38bbb4f and 67a63d9.

📒 Files selected for processing: 3
  • crates/common/src/events.rs
  • crates/common/src/lib.rs
  • docs/architecture/database-crate.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@PiquelChips PiquelChips self-assigned this Oct 22, 2026
@PiquelChips PiquelChips added the apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI label Oct 22, 2026
@PiquelChips PiquelChips added this to the 0.1 milestone Oct 22, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Oct 22, 2026
@PiquelChips PiquelChips moved this from Needs Triage to In Progress in sourceorigin.dev Oct 22, 2026
@PiquelChips
PiquelChips merged commit 01a0608 into main Oct 22, 2026
10 checks passed
@PiquelChips
PiquelChips deleted the feat/account-status-deleting branch October 22, 2026 12:28
@github-project-automation github-project-automation Bot moved this from In Progress to Done in sourceorigin.dev Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant