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/plausible/stats
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
..
aggregate.ex Small build updates (#3546) 3 years ago
base.ex Remove custom domains support + update build options (#3559) 3 years ago
breakdown.ex Add Browser/Version breakdown to CSV (#3599) 3 years ago
clickhouse.ex Reapply "Define a better monthly pageview usage (#3564)" (#3574) 3 years ago
compare.ex Small bugfix + refactor email reports (#3642) 3 years ago
comparisons.ex Support `with_imported=true` in Stats API aggregate (#2919) 4 years ago
current_visitors.ex Clean up after V2 migration (#2868) 4 years ago
custom_props.ex Remove Props FF (#3242) 3 years ago
email_report.ex Small bugfix + refactor email reports (#3642) 3 years ago
filter_parser.ex Harden API input validation (#2869) 4 years ago
filter_suggestions.ex Update credo config + extras (#3547) 3 years ago
filters.ex Update credo config + extras (#3547) 3 years ago
fragments.ex Add API support for intervals (#2417) 4 years ago
imported.ex Update credo config + extras (#3547) 3 years ago
interval.ex Disallow small intervals on large ranges (#3245) 3 years ago
props.ex Prop filter modal (#2841) 4 years ago
query.ex Remove custom domains support + update build options (#3559) 3 years ago
timeseries.ex Update credo config + extras (#3547) 3 years ago
util.ex Small build updates (#3546) 3 years ago