Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Handle multiple null values for state and district. #881

Merged

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Oct 22, 2015

Following a recent change in the API, missing values for state and
district have mostly changed from null to "US" and "00",
respectively. This patch checks for all possible missing values upon
receiving data from the API.

To check, verify that searching for elections by zip, state, and district work as expected.

h/t @noahmanger

Following a recent change in the API, missing values for `state` and
`district` have mostly changed from `null` to "US" and "00",
respectively. This patch checks for all possible missing values upon
receiving data from the API.

h/t @noahmanger
@noahmanger
Copy link
Contributor

Almost there. Searching by zip code is only returning house races; no senate or president.

@jmcarp
Copy link
Contributor Author

jmcarp commented Oct 22, 2015

Derp. That looks like a distinct issue--investigating.

@jmcarp
Copy link
Contributor Author

jmcarp commented Oct 22, 2015

@noahmanger that second issue should be fixed in https://github.com/18F/openFEC/pull/1292.

noahmanger pushed a commit that referenced this pull request Oct 23, 2015
Handle multiple null values for state and district.
@noahmanger noahmanger merged commit 091a909 into fecgov:develop Oct 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants