-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Milestone
Description
Summary
What we're after:
As a member of the public, I need to be able to select a state and see the correct number of districts across time for any given election so that I can select districts easily.
Currently, we're building the dropdowns via a static json, but we need to pull from the API so we can pull in historical district numbers.
API call: https://api.open.fec.gov/v1/elections/search/?api_key=DEMO_KEY&per_page=100&cycle=2026&state=AL
Related issues
State district data 1978 through 2030
- Puerto Rico's Resident Commissioner (member of the U. S. House of Representatives) was first elected in 1900. The Resident Commissioner is elected every four years coinciding with presidential elections. In the attached dataset, Puerto Rico only has data rows for 1980, 1984, 1988, 1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020, 2024 and 2028.
- American Samoa's first delegate was elected in 1980. (Every 2 years)
- Northern Mariana Islands' first delegate was elected in 2008. (Every 2 years)
- The District of Columbia's, Guam's and the U.S. Virgin Islands' delegates were first elected before the formation of the Commission. (Every 2 years)
- state district apportionment - election years 1978-2030.xlsx -- 1,482 rows
- Raw data source U.S. Census Bureau, https://www.census.gov/data/tables/time-series/dec/apportionment-data-text.html
Action item
- Check the /fec/fec/static/js/data/stateDistricts.json file against the years we have tickets for past updates using githistory
Completion criteria
- For each state and election, the state district dropdown shows the correct number of districts across time
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🔜 Sprint backlog