opennorth/represent-canada

Transition to Popolo format

Closed this issue · 2 comments

Must rewrite:

  • ★ represent-canada-csv-proxy: merge into scrapers_ca_app (make like CSVScraper)
  • ★ represent-canada-popolo-proxy: merge into scrapers_ca_app (make like CSVScraper)
  • represent-canada: merge into scrapers_ca_app? #84 (use Imago instead of represent-reps)
  • represent-postcodes: replace represent-reps usage

Can eliminate:

  • represent-reps
  • scrapers_ca_app's represent view

Must rewrite API clients to use Imago API:

  • govkit-ca
  • jquery-findyourrep-ca
  • represent (Drupal)
  • represent-api (WordPress)

Must rewrite API client usage:

  • represent-canada-images: uses govkit-ca
  • webform_represent (Drupal): uses represent

Having written this out, this is likely too much trouble - not even considering the transition costs for users. Would need to phase out deprecated APIs over 1-2 years, or transition to representapi.com.

Note that if transitioning to representapi.com, it may be an opportunity to go HTTPS-only (more advice from Eric Mill).

The tasks with a ★ can be performed without a major overhaul.

If I remember correctly, popolo-proxy is only used for Montreal, and CSV proxy is only used for Google Sheets maintained by third-parties. Neither have contributed to maintenance costs (they just work). If we ever do need to update them, we might consider merging them into scrapers_ca_app at that time. I added a note to their readmes.