Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

The organization_not_found error code was referenced in organization mutations but not defined in the ErrorCode.error_codes hash, causing validation failures in non-production environments.

Changes:

  • Added organization_not_found error code definition to app/services/error_code.rb

Context:
The error code is used in:

  • app/graphql/mutations/organizations/delete.rb:20
  • app/graphql/mutations/organizations/update.rb:20
organization_not_found: { description: 'The organization with the given identifier was not found' }

💬 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 review feedback Add missing organization_not_found error code 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 54d0b4d into 646-adjust-mutation-error-responses Nov 13, 2025
0 of 2 checks passed
@github-actions
Copy link

No description provided.

@Knerio Knerio deleted the copilot/sub-pr-670-please-work 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