Skip to content

Commit

Permalink
add support for setting enhanced_privacy via query param
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtro committed Jan 23, 2025
1 parent 68e488c commit c59725f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sentry/web/frontend/debug/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,11 @@ def html_body(self):
def render(self, request: HttpRequest):
return render_to_response(
"sentry/debug/mail/preview.html",
context={"preview": self, "format": request.GET.get("format")},
context={
"preview": self,
"format": request.GET.get("format"),
"enhanced_privacy": request.GET.get("enhanced_privacy", False),
},
)


Expand Down Expand Up @@ -454,6 +458,8 @@ def alert(request):
org = Organization(id=1, slug="example", name="Example")
project = Project(id=1, slug="example", name="Example", organization=org)

org.flags.enhanced_privacy = request.GET.get("enhanced_privacy", False)

event = make_error_event(request, project, platform)
group = event.group

Expand Down

0 comments on commit c59725f

Please sign in to comment.