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 #4816

Open
birkjernstrom opened this issue Jan 12, 2025 · 0 comments
Open

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

birkjernstrom opened this issue Jan 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@birkjernstrom
Copy link
Member

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.

@birkjernstrom birkjernstrom added the bug Something isn't working label Jan 12, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Backlog Jan 12, 2025
@birkjernstrom birkjernstrom moved this from Backlog to In Progress in Backlog Jan 12, 2025
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: In Progress
Status: No status
Development

No branches or pull requests

1 participant