Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

The error code email_verification_send_failed was referenced in two services but not defined in the central error codes registry, causing validation failures in non-production environments.

Changes

  • Error code definition: Added email_verification_send_failed to app/services/error_code.rb with description "Failed to send the email verification"
  • GraphQL documentation: Updated docs/graphql/enum/errorcodeenum.md to include the new error code enum value

The error code is used when email verification fails during:

  • User registration (users/register_service.rb:42)
  • User profile updates (users/update_service.rb:69)
# app/services/error_code.rb
email_verification_send_failed: { description: 'Failed to send the email verification' },

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Knerio <96529060+Knerio@users.noreply.github.com>
Copilot AI changed the title [WIP] Update mutation error responses based on feedback Add missing email_verification_send_failed error code definition Nov 13, 2025
Copilot AI requested a review from Knerio November 13, 2025 21:32
Copilot finished work on behalf of Knerio November 13, 2025 21:32
@Knerio Knerio force-pushed the 646-adjust-mutation-error-responses branch from f141a3d to 83600fc Compare November 13, 2025 21:33
@Knerio Knerio marked this pull request as ready for review November 13, 2025 21:35
@Knerio Knerio merged commit 312798c into 646-adjust-mutation-error-responses Nov 13, 2025
Knerio added a commit that referenced this pull request Nov 13, 2025
Add missing email_verification_send_failed error code definition
@Knerio Knerio deleted the copilot/sub-pr-670-one-more-time branch November 15, 2025 22:28
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