Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ResultSet method to list reports that should be mailed #33

Open
preaction opened this issue Aug 18, 2018 · 0 comments
Open

Create ResultSet method to list reports that should be mailed #33

preaction opened this issue Aug 18, 2018 · 0 comments

Comments

@preaction
Copy link
Member

Write a method on CPAN::Testers::Schema::ResultSet::Stats that will return a hashref of arrayrefs of stats rows to send in an e-mail to the given author, after following the preferences of the author (#32).

This method should fetch the author and distribution preferences, loop through all the requested report summary rows, and return a hashref of author => reports to send to the author for this report type.

This is the most complex part of the current reports mailer code: Selecting which reports to send when. See https://github.com/cpan-testers/cpantesters-backend/blob/master/old/mailer/lib/CPAN/Testers/WWW/Reports/Mailer.pm for the current report mailer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant