Skip to content

Comments

fix(storage): cascade cleanup for user and pool deletion#22

Open
unvalley wants to merge 2 commits intomainfrom
codex/main-delete-cascade-integrity
Open

fix(storage): cascade cleanup for user and pool deletion#22
unvalley wants to merge 2 commits intomainfrom
codex/main-delete-cascade-integrity

Conversation

@unvalley
Copy link
Owner

Summary

  • cascade-delete pool-scoped data when DeleteUserPool runs
  • centralize user-record cleanup and make delete_user remove related artifacts
  • add storage tests covering user cleanup and pool-level cascade cleanup

Why

Deleting a pool previously left orphaned clients/users/tokens/memberships and other pool-scoped state. This change enforces storage consistency after delete operations.

Verification

  • cargo fmt
  • cargo clippy -- -D warnings
  • cargo test

Supersedes #19 (same fix rebuilt from main).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant