Skip to content

Tasks You Need To Complete On A Timed Basis

Aaron Rudkin edited this page Feb 5, 2021 · 17 revisions

Automated

Automated jobs are kept in the voteview user's crontab. To edit, run sudo crontab -e -u voteview.

Manual

Every Special Election / New Congressperson

  • Wait until congressperson appears, having voted
  • Scrape photo for the newly elected: See the voteview/member_photos repository for information.
  • Probably regenerate static files about chamber control? Need to document this.

Every Year

  • Update the Wiki page for libraries and dependencies, evaluate whether any libraries require upgrades
  • Ensure that the US state boundaries have not changed since last time, and if they have, regenerate /static/json/states_all.json.
  • Ensure that even if boundaries have not changed, that the boundaries listed in /static/json/states_all.json are not "expired" (this will result in a blank map appearing for the party control map).

Every Election

  • Follow the procedures above for member photos.
  • Follow the procedures (described at voteview/tag_twitter) to attach Twitter accounts to new members.
  • Update district geography. See voteview/district_geog_update repository for how this works.
  • TODO: How to generate the smaller district geography files for the main site.
  • As soon as the new congress votes, run a full UPDATE script to ensure data is generated for the new congress.
  • Manually check /static/config.json to see that the maximum congress number has updated.
  • Optionally, manually update the fallback maximum congress number (used when the above config file cannot be read) by running grep -rnw ./model -e '116' and checking places where it is used.
  • If data is out of sync, or if there are any transition issues, edit /views/header.tpl to set transition_alert = 1 to display a banner alerting people there may be some data integrity issues during the transition.

Every Presidential Election

  • If the Vice President has changed or is vacant since the previous election, update the "Control of Vice Presidency" code in /static/js/congress.js.