Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run all Congreses; update only new bills and save new-to-old and old-to-new similarity #14

Open
aih opened this issue May 3, 2022 · 0 comments
Assignees

Comments

@aih
Copy link
Collaborator

aih commented May 3, 2022

Current

Similarity calculations are run through this function:

https://github.com/arachnidllc/BillMap/blob/main/server_py/flatgov/uscongress/tasks.py#L79

This is currently hard-coded to run only the most recent Congress:
https://github.com/arachnidllc/BillMap/blob/main/server_py/flatgov/uscongress/tasks.py#L183

This runs the esquery command from Go, which is defined here:
https://github.com/aih/bills/blob/main/cmd/esquery/main.go

Saving data is done here:
https://github.com/aih/bills/blob/main/cmd/esquery/main.go#L76

It is saved to files here:
https://github.com/aih/bills/blob/main/billstoreutils.go#L92

After all bill similarity json files are saved, the data is saved to database by processing the similarity json files:
updateBillModelFields
https://github.com/arachnidllc/BillMap/blob/main/server_py/flatgov/uscongress/tasks.py#L192

https://github.com/arachnidllc/BillMap/blob/main/server_py/flatgov/common/billdata.py#L504

Future

We need to:

  1. Initialize the processing with all congresses
  2. Update with only recent bills or the latest congress
  3. When the bill-to-bill similarity is saved, we need to save the old-to-new and new-to-old similarity
@aih aih changed the title Run all Congreses, Run all Congreses; update only new bills and save new-to-old and old-to-new similarity May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants