Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up spicedb orphans #897

Open
felixevers opened this issue Dec 5, 2024 · 0 comments
Open

Clean up spicedb orphans #897

felixevers opened this issue Dec 5, 2024 · 0 comments

Comments

@felixevers
Copy link
Member

Describe the chore

#896 introduces a delete capability for specific spicedb relations. Although this delete is not transitive and does not clear orphan's in spicedb relation set.

Keep in mind that this approach will leave leaks (e.g., when deleting an org, all relations to its users and wards will be deleted, but not the relations between a room and such a ward) We believe that's ok for now.
--- #896

Two options to deal with this issue:

  1. schedule clean up scripts to check for orphan objects in database.
  2. (preferred) build up transitive delete chains (prune connected objects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant