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

Only validate models email if email changed #7204

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

scruti
Copy link
Collaborator

@scruti scruti commented Oct 24, 2024

Since we introduced the new email validation, existing objects for multiple models became invalid due to not passing the email validation.

This becomes an issue as affected users get unexpected errors when trying to update those objects in different flows unrelated to introducing/updating the email.

We are trying to mitigate this by only validating the models' email if the email field has been updated (new/changed value).

This would allow the object to still be valid when containing a legacy email, while not allowing to create/edit the email with an invalid value.

@scruti scruti force-pushed the only-validate-models-email-if-changing-email branch from 702b9df to edd2995 Compare October 24, 2024 11:07
@scruti scruti marked this pull request as draft October 24, 2024 11:08
Since we introduced the new email validation, existing objects for
multiple models became invalid due to not passing the email validation.

This becomes an issue as affected users get unexpected errors when
trying to update those objects in different flows unrelated with
introducing/updating the email.

We are trying to mitigate this by only validate the email for the models
if the email field has been updated (new/changed value).

This would allow the object to still be valid when containing a legacy
email, while not allowing to create/edit the email with an invalid
value.
@scruti scruti force-pushed the only-validate-models-email-if-changing-email branch from edd2995 to 7131f04 Compare October 24, 2024 11:37
@scruti scruti marked this pull request as ready for review October 24, 2024 11:43
@scruti scruti merged commit b514a9e into main Oct 24, 2024
13 checks passed
@scruti scruti deleted the only-validate-models-email-if-changing-email branch October 24, 2024 13:00
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.

2 participants