Skip to content

Namerequest UI: email validation #13966

@pwei1018

Description

@pwei1018

The problem is that users are entering invalid emails like xxxxxxx@gmail.ocm or xxxxxx@gmail.cmo, which is causing email sending to fail and to generate a lot of Sentry errors.

Sentry error:
https://sentry.io/organizations/registries/issues/2572347016/?query=is%3Aunresolved+NR+9936741&statsPeriod=14d

We need validation rule for email address when client input the applicant information.

In the backend, we can use "email-validator" library.

Example code:
https://github.com/bcgov/bcregistry-sre/blob/main/notify-api/src/notify_api/models/notification.py#L51


Also to look at in this ticket:

  • implement maximum number of retries
  • whether or not to log email error to Sentry

^^ some of these came from #14955

Metadata

Metadata

Assignees

Labels

ENTITYBusiness TeamName RequestNameXNameX and related services proxied via namexNames TeamName Request Name Examination Team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions