analytics/test/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.
2023-12-21 12:56:06 +00:00
..
check_usage_test.exs Changes to the emails as discussed (#3540) 2023-12-06 12:02:22 +00:00
clean_invitations_test.exs Invitations (#1122) 2021-06-16 15:00:07 +03:00
expire_domain_change_transitions_test.exs Fix flaky log assertion (#3199) 2023-07-27 12:51:54 +02:00
import_google_analytics_test.exs Add eventually/1 call to flaky test (#3054) 2023-06-19 10:32:34 +01:00
lock_sites_test.exs Refactor enterprise plan upgrade and change-plan actions (#3397) 2023-10-10 20:35:17 +03:00
notify_annual_renewal_test.exs Refactor enterprise plan upgrade and change-plan actions (#3397) 2023-10-10 20:35:17 +03:00
schedule_email_reports_test.exs Do not send email reports for locked sites 2021-06-17 10:20:54 +03:00
send_check_stats_emails_test.exs Conditionally support switching between v1 and v2 clickhouse schemas (#2780) 2023-03-27 13:52:42 +02:00
send_email_report_test.exs Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
send_site_setup_emails_test.exs Conditionally support switching between v1 and v2 clickhouse schemas (#2780) 2023-03-27 13:52:42 +02:00
send_trial_notifications_test.exs Reapply "Define a better monthly pageview usage (#3564)" (#3574) 2023-11-30 13:30:04 +01:00
spike_notifier_test.exs Apply unified capitalization to buttons and titles (#3321) 2023-09-05 09:43:01 -03:00