Closed slifty closed 4 years ago
Okay, a few more things I found after actually running the test steps:
.env
additionsDid not send the test newsletter. Error: You extended AbstractNewsletter but forgot to define getMailingListAddress()
, which indeed seems to be the case, as DynamicNewsletterIssueGenerator
hasn't renamed getMailingList
to getMailingListAddress
.Did not send the test newsletter. Error: Unable to compile template. Error: ENOENT: no such file or directory, open '/Users/justin/Projects/duke/tech-and-check-alerts/src/server/workers/newsletterIssueGenerators/templates/dynamic.hbs'
At that point I'm tossing in the towel to boil some pasta, but I can check this out later!
Description
This PR changes the way our Newsletters are generated to be dynamic / database driven.
This removes the old "static" national and north carolina newsletters, and replaces their templates with a single template that takes in parameters to drive the differences between them.
NOTE: this PR is 90% there, but is lacking the due diligence checklist items.
Due Diligence Checklist
Steps to Test
.env
with the latest template valuesyarn migrate
twitter_accounts
twitter_account_lists
sequelize db:seed --seed 20200531171618-default-newsletters
yarn queue:jobs:run:twitter-account-list-scraper
yarn queue:jobs:run:twitter-scrape-initiation
yarn queue:jobs:run:cnn-portal-crawler
yarn newsletter:send --national
yarn test
Deploy Notes
.env
with the latest template valuesyarn migrate
twitter_accounts
twitter_account_lists
Related Issues
Resolves #360