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
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
..
mix/tasks Move Mix.Task.DumpPlans to Plausible.Release (#3544) 3 years ago
plausible Small bugfix + refactor email reports (#3642) 3 years ago
plausible_web Small bugfix + refactor email reports (#3642) 3 years ago
workers Small bugfix + refactor email reports (#3642) 3 years ago
oban_error_reporter.ex Delete stats improvements (#2318) 4 years ago
plausible.ex Remove custom domains support + update build options (#3559) 3 years ago
plausible_release.ex Remove custom domains support + update build options (#3559) 3 years ago
plausible_web.ex Plugins API: 2nd pass with Goals resource + SharedLinks schema changes (#3396) 3 years ago
sentry_filter.ex derive jason encoder for request (#3182) 3 years ago