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/controllers
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
..
api Small bugfix + refactor email reports (#3642) 3 years ago
site Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
admin_controller.ex Clean up legacy trials code + displaying limits (#3620) 3 years ago
auth_controller.ex Clean up legacy trials code + displaying limits (#3620) 3 years ago
avatar_controller.ex Nolt sso (along with a better nav dropdown) (#3395) 3 years ago
billing_controller.ex Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
error_report_controller.ex Simplify Phoenix error template (#2913) 4 years ago
helpers.ex Simplify Phoenix error template (#2913) 4 years ago
invitation_controller.ex Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
page_controller.ex add landing page (#2989) 4 years ago
site_controller.ex Clean up legacy trials code + displaying limits (#3620) 3 years ago
stats_controller.ex Add Browser/Version breakdown to CSV (#3599) 3 years ago
unsubscribe_controller.ex Add presence check when unsubscribing from email reports 6 years ago