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

Contributions group by Contributor state does not work #6079

Closed
3 tasks
Tracked by #159
fec-jli opened this issue Jan 16, 2024 · 2 comments
Closed
3 tasks
Tracked by #159

Contributions group by Contributor state does not work #6079

fec-jli opened this issue Jan 16, 2024 · 2 comments

Comments

@fec-jli
Copy link
Contributor

fec-jli commented Jan 16, 2024

Summary

On election pages, the individual contributions to candidates, by state is not working.

Example:https://www.fec.gov/data/elections/president/2024/#individual-contributions
under section: Individual contributions to candidates
group by state return blank.

The reason is per_page=610 (default should be per_page=10)
ex api url:
https://api.open.fec.gov/v1/schedules/schedule_a/by_state/by_candidate/?api_key=DEMO_KEY&cycle=2020&candidate_id=P00014530&candidate_id=P80000722&candidate_id=P80001571&candidate_id=P00012716&candidate_id=P60007168&candidate_id=P00009621&candidate_id=P80006117&candidate_id=P00009696&candidate_id=P00009423&candidate_id=P00006486&per_page=610&election_full=true

same issue for api schedules/schedule_a/by_size/by_candidate/

How to Reproduce

https://www.fec.gov/data/elections/president/2024/#individual-contributions

by_state

Action items

  • Fix api call /schedules/schedule_a/by_state/by_candidate/, per_page is wrong value
  • Verify api call /schedules/schedule_a/by_size/by_candidate/

Completion criteria

  • Contributions by state table is appearing correctly
@patphongs
Copy link
Member

A per page cap was introduced for the schedule A by size, by state, and by state totals views in the API. This is causing a per page error. A new ticket has been logged to fix in the API.

@patphongs
Copy link
Member

patphongs commented Feb 21, 2024

Closing in favor of backend ticket to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants