Police-Data-Accessibility-Project / data-sources-app

An API and UI for using and maintaining the Data Sources database
MIT License
2 stars 5 forks source link

data sources monthly digest email #75

Open josh-chamberlain opened 10 months ago

josh-chamberlain commented 10 months ago

Context

We have mailgun set up for the password reset workflow. We should use that to make a monthly email to anyone who chooses to subscribe. The logic should be to use all data sources from the API that are edited within the last month, but in the future we will have parameters—for example, people can subscribe to updates for a specific search of data sources.

Requirements

Email Contents

New data sources: number of rows Updates to existing sources: number of rows Number of agencies affected by new/updated sources: number of agencies Explore the data at https://pdap.io/data

Email Recipients

operations@pdap.io

Email Frequency

Monthly, on the first at 12pm (noon) ET.

aaryauchamkeri commented 3 weeks ago

Hello Josh, I am new to the project and saw this under good first issue. Can I contribute to this task?

josh-chamberlain commented 2 weeks ago

Hi there @aaryauchamkeri ! Yes, that would be much appreciated. I tweaked the issue to contain more detail and I'm going to cc @maxachis to answer a couple questions:

maxachis commented 2 weeks ago

@josh-chamberlain @aaryauchamkeri

Yes, I believe this can get started now! There are a few components to this as I envision it:

@aaryauchamkeri and I can chit-chat in discord about setting them up with an API key (I can be found as PDAP Staff with a fun little goose as my profile picture). I can also happily chat with them about the finer details of the task.

Can this live in the main app repo? If so, where should it go? I assume since it's so small that's simplest.

We can place this within the main app repo now for ease of development, although I think over time we'd want to migrate it to a repo devoted to automated components, just to separate concerns. We can also skip the first part and just go straight to putting it in a separate repo!