DoSomething / chompy

:card_index: The DoSomething.org third-party importer.
MIT License
1 stars 0 forks source link

Adds support to create Rock The Vote reports via API #128

Closed aaronschachter closed 4 years ago

aaronschachter commented 4 years ago

What's this PR do?

This pull request continues to climb the automated RTV import mountain, picking up from #126, #127 and adding a new app/Services/RockTheVote function, createReport, that executes a POST /reports API request. It also adds:

Screen Shot 2020-03-07 at 12 36 30 PM

How should this be reviewed?

Can test creating a report via the webform, it won't affect much except adding another report to the list of reports in our Rock The Vote portal (Tej said this is a non-issue). Testing will be a bit trickier once we want to start importing these reports once created, but that's for another PR.

Any background context you want to provide?

Next up will be starting on importing the report once it's status is complete (the statuses a report has before it's done are queued, building, and merging), making use of the imported_at field to determine which reports we need to import when completed.

Relevant tickets

References Pivotal #171656723.

Checklist