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

Implement expenditure import #178

Merged
merged 16 commits into from
Dec 15, 2023
Merged

Implement expenditure import #178

merged 16 commits into from
Dec 15, 2023

Conversation

hancush
Copy link
Member

@hancush hancush commented Dec 1, 2023

Overview

This PR extends the contribution import to also import expenditures. It also updates the Makefile recipes to import either type from a local file or S3.

Testing Instructions

  • View the deploy preview and confirm it contains data from before and after 2020.
  • Click around and confirm you don't see any Python errors.
  • Note in your review any issues you notice. I'll create a bug hunt PR separately.

@hancush hancush temporarily deployed to openness-pro-hcg-exp-x8fdfvsbo December 1, 2023 17:04 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-em1b6igel December 6, 2023 17:07 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-sae4wkhkv December 6, 2023 17:24 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 6, 2023 20:48 Inactive
@hancush hancush marked this pull request as ready for review December 7, 2023 21:07
@derekeder
Copy link
Member

a few observations from clicking around:

Screenshot 2023-12-07 at 3 39 05 PM

  • I see the duplicate organization/candidate issue you mentioned. clicking on candidate pages on the home page, none of them have any net funds or donations/expenditures after June 2020. if I click through donations, it does take me to candidate pages that have 2023 data. however, I can't find an example (yet) with data from before 2020 AND after. They seem to be completely separate. Do we have a way to reconcile them?

These candidates look to be for the same person:

https://openness-pro-hcg-exp-s43eps6ml.herokuapp.com/candidates/michelle-lujan-grisham-2243/
https://openness-pro-hcg-exp-s43eps6ml.herokuapp.com/candidates/michelle-lujan-grisham/

As do these:

https://openness-pro-hcg-exp-s43eps6ml.herokuapp.com/candidates/hector-balderas-3046/
https://openness-pro-hcg-exp-s43eps6ml.herokuapp.com/candidates/hector-balderas/

Screenshot 2023-12-07 at 3 55 03 PM

@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 11, 2023 16:33 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 11, 2023 21:54 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 11, 2023 22:10 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 12, 2023 17:22 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 12, 2023 17:26 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 12, 2023 17:34 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 12, 2023 17:44 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 12, 2023 17:48 Inactive
@hancush hancush temporarily deployed to openness-pro-hcg-exp-s43eps6ml December 12, 2023 20:27 Inactive
@derekeder
Copy link
Member

Nice! The duplicates and errors I saw in my last review are resolved.

Seeing some other things that raise my eyebrows:

Home page title says 'Lobbyist Portal' when I think we are hiding that part.

Screenshot 2023-12-13 at 3 31 52 PM

Hector Balderas has campaigns after 2020, but no financial data after 2020. He also stopped being recognized as a (D): https://openness-pro-hcg-exp-s43eps6ml.herokuapp.com/candidates/hector-balderas-3046/

Screenshot 2023-12-13 at 3 30 00 PM

Of the top 10 Committees, only one has contributions after 2020. Does this mean the old ones don't exist in the new system? Or were they renamed? Is it accurate to show committees in the top 10 (based on cash-on-hand) if we don't have recent data for them?

Screenshot 2023-12-13 at 3 35 16 PM

@hancush
Copy link
Member Author

hancush commented Dec 15, 2023

@derekeder tl;dr - The issues you pointed out have to do with missing data or are unrelated to this PR. Can this be staged and these issues addressed separately?

Home page title says 'Lobbyist Portal' when I think we are hiding that part.

This is not relevant to these changes. Can I address this separately?

Hector Balderas has campaigns after 2020, but no financial data after 2020. He also stopped being recognized as a (D): https://openness-pro-hcg-exp-s43eps6ml.herokuapp.com/candidates/hector-balderas-3046/

This is a product of Office information missing from contribution and expenditure data, which we'll have to address separately. I've already opened a thread with Marjorie about how to handle this.

Of the top 10 Committees, only one has contributions after 2020. Does this mean the old ones don't exist in the new system? Or were they renamed? Is it accurate to show committees in the top 10 (based on cash-on-hand) if we don't have recent data for them?

I didn't import 2021 or 2022 data, to save time. This will likely change once that comes in. Otherwise, a great question for Marjorie.

Copy link
Member

@derekeder derekeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, if you want to address those issues in separate PRs, i'm good to bring this in

@hancush hancush merged commit c721c05 into master Dec 15, 2023
1 check passed
@hancush hancush deleted the hcg/exp branch September 19, 2024 22:07
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

Successfully merging this pull request may close these issues.

2 participants