Skip to content

feat(issues): Track weekly report sends and clicks #54744

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

Merged
merged 6 commits into from
Aug 15, 2023

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Aug 15, 2023

  • adds notification_uuid to track clicks from the weekly email
  • consolidated referral strings - Now they all start with weekly_report. Previously there was a mix of weekly-report weekly_report and weekly_email

fixes #50443

@scttcper scttcper requested a review from a team as a code owner August 15, 2023 00:47
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 15, 2023
@@ -89,7 +88,6 @@ def test_with_empty_string_user_option(self):
assert self.organization.name in message.subject

@with_feature("organizations:customer-domains")
@with_feature("organizations:weekly-email-refresh")
Copy link
Member Author

Choose a reason for hiding this comment

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

went looking for this flag, seems to be gone

@@ -739,6 +741,8 @@ def render_template_context(ctx, user_id):
"organizations:session-replay", ctx.organization
) and features.has("organizations:session-replay-weekly-email", ctx.organization)

notification_uuid = "".join(random.choices(string.ascii_letters + string.digits, k=16))
Copy link
Contributor

Choose a reason for hiding this comment

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

@scttcper we should make this into some utility function cause we'll need it a lot

Copy link
Member Author

Choose a reason for hiding this comment

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

jammed it somewhere

@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Merging #54744 (1753065) into master (a2d7081) will decrease coverage by 0.01%.
Report is 4 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #54744      +/-   ##
==========================================
- Coverage   79.78%   79.78%   -0.01%     
==========================================
  Files        5000     5001       +1     
  Lines      212247   212262      +15     
  Branches    36162    36163       +1     
==========================================
+ Hits       169335   169344       +9     
- Misses      37704    37710       +6     
  Partials     5208     5208              
Files Changed Coverage Δ
src/sentry/analytics/events/__init__.py 100.00% <100.00%> (ø)
src/sentry/analytics/events/weekly_report.py 100.00% <100.00%> (ø)
src/sentry/notifications/utils/__init__.py 73.35% <100.00%> (+0.32%) ⬆️
src/sentry/tasks/weekly_reports.py 77.35% <100.00%> (-0.09%) ⬇️

... and 10 files with indirect coverage changes

@scttcper scttcper merged commit 1b833ed into master Aug 15, 2023
@scttcper scttcper deleted the scttcper/weekly-report-uuid branch August 15, 2023 16:53
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 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.

Track weekly report email sends
3 participants