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_web
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
..
components Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
controllers Small bugfix + refactor email reports (#3642) 3 years ago
live Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
mjml Small bugfix + refactor email reports (#3642) 3 years ago
plugins Plugins API exentsions (custom props, bulk goal delete, goal creation => ListResponse always) (#3593) 3 years ago
plugs rm Hammer (#3571) 3 years ago
templates Refactor: Split up the choose_plan LV code (#3637) 3 years ago
two_factor Implement UI for 2FA setup and verification (#3541) 3 years ago
views Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 4 years ago
email.ex Small bugfix + refactor email reports (#3642) 3 years ago
endpoint.ex Add small build option (#3536) 3 years ago
refinspector.ex [Continued] Google Analytics import (#1753) 5 years ago
remote_ip.ex Parse bunny header 5 years ago
router.ex Remove business tier feature flag (#3632) 3 years ago