Skip to content

Conversation

@RyanSkonnord
Copy link
Contributor

Raise an InvalidTriggerActionError if the target_value is None.

Modify test_discord_channel_id_none to assert for this error. (It appears that the test case's original intent was to test that the serializer doesn't crash, but the case where the target_value is None would inevitably cause an error anyway when we call DiscordClient.get_channel.)

Raise an InvalidTriggerActionError if the target_value is None.

Modify test_discord_channel_id_none to assert for this error. (It
appears that the test case's original intent was to test that the
serializer doesn't crash, but the case where the target_value is None
would inevitably cause an error anyway when we call
`DiscordClient.get_channel`.)
@RyanSkonnord RyanSkonnord requested review from a team and asottile-sentry August 26, 2024 16:49
@RyanSkonnord RyanSkonnord requested a review from a team as a code owner August 26, 2024 16:49
@RyanSkonnord
Copy link
Contributor Author

See #75541 for context.

Original changes in #58005

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 26, 2024
Copy link
Contributor

@asottile-sentry asottile-sentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile-sentry
Copy link
Contributor

oh, I would just merge this into upstream directly -- that way we minimize the impact if this isn't correct

@RyanSkonnord RyanSkonnord merged commit 455bd98 into ryanskonnord/incident-type-hints Aug 26, 2024
@RyanSkonnord RyanSkonnord deleted the assert-error-on-test_discord_channel_id_none branch August 26, 2024 18:25
@RyanSkonnord
Copy link
Contributor Author

oh, I would just merge this into upstream directly -- that way we minimize the impact if this isn't correct

👍 Done.

@asottile-sentry
Copy link
Contributor

by upstream I mean integrate this to master -- not your feature branch

@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants