Skip to content

Conversation

@ericholscher
Copy link
Member

Fixes a error that occurs when a project has multiple integrations with the same .

Changes

Modified method in to:

  • Check the count of matching integrations
  • Raise a clear (400 Bad Request) when multiple integrations are found
  • Provide an actionable error message directing users to use the webhook URL specific to their integration

References


Generated by Copilot

When a project has multiple integrations with the same integration_type,
the get_integration() method would fail with MultipleObjectsReturned.

This change detects when multiple integrations exist and raises a clear
ParseError (400 Bad Request) instructing users to use the webhook URL
specific to their integration, rather than the generic endpoint that
tries to guess which integration to use.
@ericholscher ericholscher requested a review from a team as a code owner November 19, 2025 16:51
@ericholscher ericholscher requested a review from humitos November 19, 2025 16:51
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