Skip to content

Commit 08286e9

Browse files
committed
pass dashboard link in context
1 parent 5aaacbd commit 08286e9

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Diff for: src/sentry/integrations/notify_disable.py

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def notify_disable(
5858
"integration_name": integration_name.title(),
5959
"integration_link": integration_link,
6060
"webhook_url": webhook_url if "sentry-app" in redis_key and webhook_url else "",
61+
"dashboard_link": f"{integration_link}dashboard/"
62+
if "sentry-app" in redis_key
63+
else "",
6164
},
6265
html_template="sentry/integrations/sentry-app-notify-disable.html"
6366
if "sentry-app" in redis_key and integration_slug

Diff for: src/sentry/templates/sentry/integrations/sentry-app-notify-disable.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>
77
Hi there,
88
</p><p>
9-
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.
9+
We’ve received multiple <a href={{dashboard_link}}/>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.
1010
</p><p>
1111
To continue using your custom integration, please fix your webhook: <a href={{webhook_url}}>{{webhook_url}}</a> and re-enable the webhook subscriptions <a href={{integration_link}}>here</a>.
1212
</p><p>

Diff for: src/sentry/templates/sentry/integrations/sentry-app-notify-disable.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Hi there,
22

3-
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,
3+
We’ve received multiple <a href={{dashboard_link}}/>request errors</a> from your webhook: <a href={{webhook_url}}>{{webhook_url}}</a> for the custom {{ integration_name }} integration,
44
and have unsubscribed the webhook from receiving events.
55

66
To continue using your custom integration, please fix your webhook: <a href={{webhook_url}}>{{webhook_url}}</a> and re-enable the webhook subscriptions <a href={{integration_link}}>here</a>.

Diff for: src/sentry/web/frontend/debug/debug_sentry_app_notify_disable.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ def get(self, request: HttpRequest) -> HttpResponse:
3939
"webhook_url": self.sentry_app.webhook_url
4040
if "sentry-app" in redis_key and self.sentry_app.webhook_url
4141
else "",
42+
"dashboard_link": f"{integration_link}dashboard/",
4243
},
4344
).render(request)

0 commit comments

Comments
 (0)