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

C00580100 name bug when viewing the default page #4442

Open
patphongs opened this issue Mar 3, 2021 · 0 comments
Open

C00580100 name bug when viewing the default page #4442

patphongs opened this issue Mar 3, 2021 · 0 comments
Labels

Comments

@patphongs
Copy link
Member

Summary

When viewing committee C00580100 with no cycle passed, it displays the committee's PAC name instead of its 2020 PCC name. This committee converted from a PCC to a PAC in the 2022 cycle.

In the 2020 cycle for this committee, we should be seeing this name: DONALD J. TRUMP FOR PRESIDENT, INC.

API call

The API call that shows the committee's name is: https://api.open.fec.gov/v1/committee/C00580100/history?per_page=1&api_key=DEMO_KEY. The API name is defaulted to the most recent name which is MAKE AMERICA GREAT AGAIN PAC. There is logic in the CMS that will default a committee's view to last_cycle_has_financial which is 2020 in this case. The API doesn't seem to have similar default logic when returning the committee name.

Screen Shot 2021-03-03 at 12 18 24 PM

How to Reproduce

  1. Go to the committee with no cycle passed link: https://www.fec.gov/data/committee/C00580100/

Screenshots

Screen Shot 2021-03-03 at 12 11 57 PM

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

No branches or pull requests

1 participant