Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
Aaron Schachter edited this page Jul 11, 2019 · 14 revisions

Chompy imports users and activity from CSV files and third-party API requests. Each record to be imported is dispatched as a job on a queue. Any failed jobs in the queue are retried once a daily (configured via the Heroku Scheduler add-on). Failed jobs are infinitely retried until they are manually removed by an admin (via Chompy UI) or a developer (via Heroku CLI).

Current imports

  • Rock The Vote (CSV)

    • Gets or creates Northstar user by email or mobile number, and updates their voter_registration_status, sms_status, email_subscription_status (and email_subscription_topics, if email_subscription_status is true)
    • Gets or creates a corresponding voter-reg Rogue post
  • Call Power (API)

    • Gets or creates Northstar user by mobile number
    • Creates a corresponding phone-call Rogue post
  • Email subscriptions (CSV)

    • Gets or creates Northstar user by email, and adds the email_subscription_topics selected by admin from upload form

Retired imports

Clone this wiki locally