Skip to content

🔧 chore: fix slack notifications typing #89578

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

iamrajjoshi
Copy link
Member

No description provided.

Copy link

sentry-io bot commented Apr 15, 2025

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: src/sentry/integrations/notifications.py

Function Unhandled Issue
_get_channel_and_integration_by_team ExternalActor.MultipleObjectsReturned: get() returned more than one ExternalActor -- it returned 2! ...
Event Count: 65

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 15, 2025
@@ -25,24 +18,6 @@
logger = logging.getLogger("sentry.notifications")


class SlackNotifyBasicMixin(NotifyBasicMixin):
Copy link
Member Author

Choose a reason for hiding this comment

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

this doesn't need to live separately, so moved it under SlackIntegration

Copy link

codecov bot commented Apr 15, 2025

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/integrations/slack/integration.py 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #89578      +/-   ##
==========================================
- Coverage   87.73%   87.73%   -0.01%     
==========================================
  Files       10172    10172              
  Lines      574129   574126       -3     
  Branches    22612    22612              
==========================================
- Hits       503728   503721       -7     
- Misses      69985    69989       +4     
  Partials      416      416              

@iamrajjoshi iamrajjoshi marked this pull request as ready for review April 15, 2025 13:49
@iamrajjoshi iamrajjoshi requested review from a team as code owners April 15, 2025 13:49
Copy link
Member

@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.

@iamrajjoshi iamrajjoshi merged commit 0f7fad1 into master Apr 15, 2025
61 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/fix-slack-notifications-typing branch April 15, 2025 15:00
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants