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

Customers: Soft deletion does not free up the email #5142

Open
birkjernstrom opened this issue Mar 3, 2025 — with Linear · 0 comments
Open

Customers: Soft deletion does not free up the email #5142

birkjernstrom opened this issue Mar 3, 2025 — with Linear · 0 comments
Labels
bug Something isn't working

Comments

Copy link
Member

New issue to sync with Linear from #4816

Description

We soft delete customers, but the unique index on organization_id and email prevents the email from being freed up for a new customer.

Expected Behavior

We could probably solve this by modifying the index to include the deleted_at timestamp. Causing a unique violation in case of creating a customer with the same email as an existing – non-deleted – customer, but not in case others have a unique deleted_at timestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Status: No status
Development

No branches or pull requests

1 participant