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.
2023-12-21 12:56:06 +00:00
..
mix/tasks Move Mix.Task.DumpPlans to Plausible.Release (#3544) 2023-11-21 12:22:17 -03:00
plausible Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
plausible_web Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
workers Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
oban_error_reporter.ex Delete stats improvements (#2318) 2022-10-10 08:55:58 -03:00
plausible_release.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
plausible_web.ex Plugins API: 2nd pass with Goals resource + SharedLinks schema changes (#3396) 2023-10-05 11:54:18 +02:00
plausible.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
sentry_filter.ex derive jason encoder for request (#3182) 2023-07-24 14:46:57 +02:00