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

Use specific error message for unique email constraint violation #2824

Open
1 of 2 tasks
jyeshe opened this issue Jan 15, 2025 · 1 comment
Open
1 of 2 tasks

Use specific error message for unique email constraint violation #2824

jyeshe opened this issue Jan 15, 2025 · 1 comment
Labels
bug Newly identified bug

Comments

@jyeshe
Copy link
Member

jyeshe commented Jan 15, 2025

Describe the bug

Currently all email conflicts and unique constraint violations generate an email error message:
"This email address already exists."

The message was generalized on workflows API work to report other field errors correctly, but email message needs to be a specific.

Version number

v2.10.9

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce

  1. Go to any screen with a field that is not an email and needs to be unique and uses the ChangesetJSON
  2. Try to duplicate it and it shall show "This email address already exists."

Expected behavior

Use "This email address already exists." for email

Use "This value should be unique." for other fields (fixed on Workflows API)

@jyeshe jyeshe added the bug Newly identified bug label Jan 15, 2025
@github-project-automation github-project-automation bot moved this to New Issues in v2 Jan 15, 2025
@jyeshe
Copy link
Member Author

jyeshe commented Jan 15, 2025

Issue derived from #2792 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Newly identified bug
Projects
Status: New Issues
Development

No branches or pull requests

1 participant