fecgov / openFEC-web-app

DEPRECATED See https://github.com/18F/fec-cms for fec.gov's code
Other
43 stars 31 forks source link

Election results page does not list all districts #2256

Closed patphongs closed 7 years ago

patphongs commented 7 years ago

When searching an entire state, it does not list all of the districts in the search results. This has not been tested on every state, but this also seems to be a problem with Texas too. So possibly other large states might have this issue.

Example from production:

California has 53 districts. But when searching for California, the search results only display 19 districts for the 2017-2018 cycle. Number of districts also change when you select a different 2 year period. It should list all 53 districts.

election-results-bug

The dropdown district list when selecting California does show 53 districts, which is correct.

screen shot 2017-08-10 at 12 26 58 pm

noahmanger commented 7 years ago

This is a front-end issue. We need to pass per_page=100 to the API call.

noahmanger commented 7 years ago

Including this fix in https://github.com/18F/openFEC-web-app/pull/2260

noahmanger commented 7 years ago

Resolved by https://github.com/18F/openFEC-web-app/pull/2260