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

Fixed duplicate through email cleaning #1956 #1979

Merged
merged 4 commits into from
Jul 17, 2023

Conversation

florian-str
Copy link
Collaborator

@florian-str florian-str commented Jul 10, 2023

Emails now get transformed before being validated / checked for duplicates in the edit form. Therefor, you can avoid accidentally triggering a database constraint.

Fixes #1956

Copy link
Member

@niklasmohrin niklasmohrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think is exactly what we want, it feels a bit strange that we use our helper clean_email to compare to existing data, but still clean the email of this form here differently. I think it would be better if we would use clean_email directly on the email retrieved from cleaned_data and just have all the email cleaning in this one place - the call to lower later can then be removed too

Copy link
Member

@richardebeling richardebeling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks :)

@niklasmohrin niklasmohrin requested a review from janno42 July 17, 2023 15:51
Copy link
Member

@janno42 janno42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ Meets requirements
✔️ UI functionality checked

@janno42 janno42 merged commit 69b8a44 into e-valuation:main Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Missing form error for duplicate email address
4 participants