Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(sentryapps)-email-on-disable #54348

Merged
merged 9 commits into from
Aug 8, 2023
Merged

feat(sentryapps)-email-on-disable #54348

merged 9 commits into from
Aug 8, 2023

Conversation

chloeho7
Copy link
Contributor

@chloeho7 chloeho7 commented Aug 7, 2023

Implementing email notification when sentry app is detected to be broken and disabled.
Part of Notify on Disabled Integration project
Disabling and notifying implemented under feature flag "disable-sentryapps-on-broken".
Screenshot 2023-08-07 at 4 48 19 PM

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 7, 2023
@chloeho7 chloeho7 marked this pull request as ready for review August 7, 2023 23:58
@chloeho7 chloeho7 requested a review from a team as a code owner August 7, 2023 23:58
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #54348 (08286e9) into master (9a2cbd3) will decrease coverage by 0.01%.
Report is 44 commits behind head on master.
The diff coverage is 52.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #54348      +/-   ##
==========================================
- Coverage   79.66%   79.65%   -0.01%     
==========================================
  Files        4985     4989       +4     
  Lines      211352   211498     +146     
  Branches    36026    36048      +22     
==========================================
+ Hits       168373   168477     +104     
- Misses      37800    37839      +39     
- Partials     5179     5182       +3     
Files Changed Coverage Δ
src/sentry/integrations/notify_disable.py 77.27% <ø> (ø)
.../sentry/web/frontend/debug/debug_notify_disable.py 58.33% <0.00%> (+1.19%) ⬆️
.../frontend/debug/debug_sentry_app_notify_disable.py 53.33% <53.33%> (ø)
src/sentry/utils/sentry_apps/webhooks.py 85.88% <100.00%> (ø)
src/sentry/web/debug_urls.py 100.00% <100.00%> (ø)

... and 141 files with indirect coverage changes

@chloeho7 chloeho7 requested a review from ceorourke August 8, 2023 16:21
@chloeho7 chloeho7 changed the title feat(sentry)-email-on-disable feat(sentryapps)-email-on-disable Aug 8, 2023
<p>
Hi there,
</p><p>
We’ve received multiple <a href={{integration_link}}dashboard/>request errors</a> from your webhook: <a href={{webhook_url}}>{{webhook_url}}</a> for the custom {{ integration_name }} integration, and have unsubscribed the webhook from receiving events.
Copy link
Member

Choose a reason for hiding this comment

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

We might want to add a referrer to the URL for analytics and as this is set up, it'll be http://dev.getsentry.net:8000/settings/sentry/developer-settings/internal-35e455/?referrer=notify_disable_emaildashboard/ (missing the /). We could add the slash to the referrer query string but that seems odd, probably better to pass the dashboard URL to context.

@chloeho7 chloeho7 enabled auto-merge (squash) August 8, 2023 20:03
@chloeho7 chloeho7 merged commit 5dd4bef into master Aug 8, 2023
55 checks passed
@chloeho7 chloeho7 deleted the chloe/sentry-app-email branch August 8, 2023 20:28
spalmurray pushed a commit that referenced this pull request Aug 8, 2023
Implementing email notification when sentry app is detected to be broken
and disabled.
Part of [Notify on Disabled Integration
project](https://www.notion.so/sentry/Tech-Spec-Notify-on-Disabled-Integration-Spec-e7ea0f86ccd6419cb3e564067cf4a2ef?pvs=4)
Disabling and notifying implemented under feature flag
"disable-sentryapps-on-broken".
<img width="775" alt="Screenshot 2023-08-07 at 4 48 19 PM"
src="https://github.com/getsentry/sentry/assets/56209417/e5edd998-7130-4c53-913b-ec9bb1e342bb">
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
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.

2 participants