Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* run main workflow in container * remove container action * try running existing make code in container * add postgres to generation job * set up access to postgres * config postgres service * remove misplaced 'if' in workflow * set password for connecting to postgres and list db at start to confirm availability * separate out step to check postgres so that we can easily check the output * remove unused script * remove new version of sqlalchemy since it breaks csvsql in `make import` * add some conditions for job execution in main workflow * add check for version of sqlalchemy * get container to rebuild when requirements change * adjust logic for when jobs run in main workflow * try summarizing tables created in main workflow * make sure we clean up downloads before we start * try testing csvsql early * some logging to test csvsql * turn on verbose output while testing csvsql * try sending csv file through stdin for csvsql * upgrade csvkit to 1.3.0 and upgraded its dependencies where needed * remove files no longer needed in download dir * set postgres version in dev container and workflow to 9.6 to match travic CI * update workflow names * make use of sql files to create tables * Update import-file to display schema of created table * Update import-file to log more info about postgresql tables * Update import-file to point psql to DATABASE_NAME * Update import-file to use the right quote around table name in psql * Update import-file to remove debug logging * Update Makefile to use saved sql for creating tables from spreadsheet data * fix Makefile by moving bash into file and saved generated sql for tables that hold spreadsheet data * some fixes to get csvkit 1.3.0 working - not fully working yet... * make sure data upload for spreadsheet data does not use inference (ie alter data) and increase length of filer name field for committees * debug version of csvkit installed * verify python version at time of install on travis * remove sudo for pip install * remove download/main.py dependency on latest version of sqlalchemy * use later postgres * update postgres for dev container also * download new netfile csvs before import * gracefully handle records missing transaction data * add netfile v2 data to database during import * make sure dir exists for saving v2 csv files * make netfile v2 download a part of `make download` * add requirements for netfile v2 code * update python-dateutil * try to cause failure when pip install fails * upgrade babel * update pytz * allow csvkit to pull in the correct agate dependencies and add script to trim whitespace for some columns * remove whitespace for some key columns * split contributions by type to multiple elections when a candidate was in multiple elections * removed commented code * create candidate_summary view to associate "Summary" info with specific election * add total contributions to digest.json * use hash of hash for contributions by type * add total contributions by type and source to digests * take election into account when calculating total contributions and contributions by source * organize totals calculated from various sources in digests.json * update digests.json to include more totals * calculate contribution totals for all tickets (candidates and referendums) combined * add more totals to digest and separate by contributions vs expenditures vs loans * update expenditures to be split on election and other calculations to take election into account * revert committee contribution list calculator * some comments about the totals calculated for digests.json * update digests to only show totals that we want to compare * add loans to total for contributions by type and origin * move totals logic out of main * switch total expenditures calculator to use new candidate_summary view which joins Summary with candidates using the from and thru dates instead of the report date. This provides consistency and so if we decide to use the report date instead for the join, we change it in the view and consistently apply it everywhere. * add report on candidate totals * attempt to get python 3.9 to be used * don't use sudo for pip install * remove unused var in calculator * match up calculator with master branch * upgrade csvkit * match schema to latest infered by old csvkit * make sure we are pushing to the same branch when deploying build * specify the branch to push to for travis auto-deploy * add schema.sql file * don't deploy build on pull request build * increase size of filer name for committees * clean up whitespace for some more candidate columns * remove whitespace from referendums summary * remove commented out line * combine removal of leading and trailing white spaces into a single update * update build with recent fixes from main branch * re-use code to create table in bin/import-file * clean up request to dump database schema * pick committee distinct on filer ID according to order of value in election column * remove check for Ballot_Measure_Election when looking for committee name since it wasn't checked for before * change image used for workflow to generate website data to match version for pg_dump * set dev container and github actions to use the same postgres version * try action checkout v4 * print out some dir info to figure out why git thinks it is not a repo * cause early git failure so we can try to fix it * remove tab from github workflow file * show version of key components when cleaning * add place to insert new downloads * get image to be created with new branch and don't use the image during the create event * add explicit check for docker image in order to run jobs that require it * log in to docker early * build container if it's not there * try increasing size of filer name col * put shared postgres settings in global env vars * clean up dev container * add post-create-command.sh back * remove pwd in Dockerfile * write csv from polars dataframe * merge requirements for netfile v2 into main requirements file * allow committee id to be null in H-Loan data * remove copy of download/requirements.txt from Dockerfile * move new data to be imported to a different target in Makefile * provide means to switch to ruby 2.7.1 if needed * remove whitespace from data_warning column * make data_warning empty instead of null * make make-null-empty executable * maintain a consistent order for the candidates report * make null empty for data_warning in committees * output consistent order to ensure that output doesn't change when postgres version changes * set null committee name to empty string so that we can get consistent outputs when the postgres version changes * use floats everywhere when calculating totals in create-digests * increase column size for instagram column in candidates table * add some additional totals for oakland-2024 election in digests.json to help with debugging * change election name in digests.json to include full date to correctly capture multiple elections in the same year * remove commented postgres 9.6 in workflow * only run netfile v2 download when credentials are set up
- Loading branch information