Skip to content

Normalized email and domain columns in Email #17946

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Daksh2000
Copy link
Contributor

@Daksh2000 Daksh2000 commented Apr 12, 2025

Fixes: #17925

In this PR, I have added 2 columns -> normalized_email and domain (both of which are derived from email itself)
So, made 2 helper functions to get the corresponding values of normalized_email and domain

[ I did not use "normalize" property of "email_validator" library because according to it -
after using it
-> The local part (before @) remains case-sensitive (which I thought was defeating our purpose, so I went with custom function)

Also, Added migrations accordingly, and fixed some test cases.

@Daksh2000 Daksh2000 requested a review from a team as a code owner April 12, 2025 18:22
@Daksh2000 Daksh2000 marked this pull request as draft April 12, 2025 18:22
@Daksh2000 Daksh2000 changed the title Normalized email column in Email Normalized email and domain columns in Email Apr 12, 2025
@Daksh2000 Daksh2000 marked this pull request as ready for review April 12, 2025 20:33
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.

Normalize and store email addresses
2 participants