Skip to content

Align state district numbers with changes in apportionment #7003

@PaulClark2

Description

@PaulClark2

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    🔜 Sprint backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions