Closed bdragon300 closed 3 years ago
@bdragon300 Can you please describe the issue a bit? I would like to help if i can and if its ok.
Hi @vmdhhh . This issue is about to add email format check in to_email_string
converter. It located in mongoengine_migrate.fields.converters.common
. It's needed to add regex which checks if string field value in documents of given collection has email format. Now only .*
regex there, i.e. no check.
Pay attention that this regex will be executed by MongoDB query, not in python. This regex should not be very complex to avoid possible performance issues. Just brief check.
to_email_string
invokes when field converts to EmailField
from string or dynamic field.
@bdragon300 Please take a look at the #34 and let me know.
@bdragon300 I also figured out the resolution for #33 . Do you want me to add the change in this PR ?
@vmdhhh I think it should be a separate PR
Fixed
Now the format of email string does not check. It's needed to fix regex.