Remove contact_info
completely from the email validation process
#6567
Labels
c/identity server
This is related to the Identity Server
compat/db
This could affect Database compatibility
in progress
We're working on it
Milestone
Summary
References #4930
Should be done before #6515
The
contact_info
field was been deprecated from the API but it is still attached to some of the business logic, in particular it is strongly linked to the email validation process.We should decouple the
contact_info
field from the process of validating an email. this can be done by making a new table foremail_validations
and moving the logic of the validations outside of the usage ofcontact_info
, this is easier to do after removing the values of entities which had their contact_info migrated or that have the field as read-only in the user table.Current Situation
Whenever an User is created, its
primary_email_address
is converted to ancontact_info
, that means that the value is stored in both theprimary_email_address
column of an user's table and as a row on thecontact_infos
table.The email validations interact purely with the
contact_info_validations
table, making the code dependent on the deprecated field as we need to create a contact_info before creating an validation.Why do we need this? Who uses it, and when?
To be able to remove the
contact_info
field without any troubles.Proposed Implementation
Make a
EmailValidationRegistry
, that replaces theContactInfoRegistry
.This implies in:
email_validation
email_validation
whenever an user is createdContributing
Code of Conduct
The text was updated successfully, but these errors were encountered: