DoSomething / chompy

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

Adds CSV download for Mute Promotions failed jobs #209

Closed aaronschachter closed 3 years ago

aaronschachter commented 3 years ago

What's this PR do?

This pull request adds a new web route, /exports/create, which will create a CSV containing all user ID's failed ImportMutePromotions jobs. This can eventually be built out to support downloading other failed job types as well-- but for now the immediate need is to find all ID's that failed in our mass-deletion of Customer.io profiles last month.

How should this be reviewed?

👀

Any background context you want to provide?

This PR also adds a new parse_failed_job helper to DRY decoding the data buried in the payload field of the failed_jobs DB table.

Relevant tickets

References Pivotal #177170418.

Checklist