You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/workers
RobertJoonas d2270f3c35
Small bugfix + refactor email reports (#3642)
* use more convenient testing functions

* do not display + sign with 0% change in emails

* Rename module/file/function names

before, `weekly_report` was also used for monthly reports and that was a
bit confusing to read in code.

* Refactor send_email_report.ex

This commit improves readability by refactoring the code into smaller
functions and reducing the number of arguments given to functions.

But more importantly, it stops making duplicate stats queries for every
email recipient by moving the queries out of the for loop.

* Refactor: move querying logic out of the worker module

and merge all stats information under a single `stats` assign.
3 years ago
..
check_usage.ex Clean up legacy trials code + displaying limits (#3620) 3 years ago
clean_invitations.ex Invitations (#1122) 6 years ago
expire_domain_change_transitions.ex Allow domain change (#2803) 4 years ago
import_google_analytics.ex Save city name when importing from GA (#2608) 4 years ago
lock_sites.ex Fix and refactor invitation logic (#3376) 3 years ago
notify_annual_renewal.ex Refactor enterprise plan upgrade and change-plan actions (#3397) 3 years ago
rotate_salts.ex Upgrades Oban to v2.6.1 (#967) 6 years ago
schedule_email_reports.ex Do not send email reports for locked sites 5 years ago
send_check_stats_emails.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
send_email_report.ex Small bugfix + refactor email reports (#3642) 3 years ago
send_site_setup_emails.ex Feature gates (#3401) 3 years ago
send_trial_notifications.ex Reapply "Define a better monthly pageview usage (#3564)" (#3574) 3 years ago
spike_notifier.ex add a test and fix rendering the dashboard link 4 years ago