-
Notifications
You must be signed in to change notification settings - Fork 106
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
candidates showing up outside their cycle #2628
Comments
@jwchumley and @hcaofec can you investigate how widespread this issue is? |
Looks like the issue is with the candidate search endpoint (and maybe other candidate endpoints). the "cycle" data element is described as the two -year election cycle in which a candidate runs for office but what it seems to be doing in this case is using the committee's activity instead of the candidates election year to determine whether to include the candidate in the output or not. This is wrong. Cycle should ONLY look at the candidate's election year and not the committee's activity period. |
If these two candidates are not running for 2018, should they be inserted into cand_inactive table for that particular cycle? |
The candidate doesn't have a 2018 F2 row. I don't think cand_inactive is the solution. The candidate election year is 2016 in the relevant tables. The candidate/committee pair correctly has a 2016 (candidate election year) /2018 (FEC election year) row in
|
There is also a column 'candidate_status' returned by the API which has values like: |
Election page looks correct. These two candidates are not shown. ( H6TX07110, H6TX07128 ) |
Thanks for getting this done! @hcaofec 😄 |
We made a lot of election fixes in #2590 but this is still outstanding.
Here is an example of two candidates that are listed because their fec_election_yr is 2018- because they have committees connected to them and should have a profile page for those years, but should not show up in the candidate results, because they don't have a cand_election_yr of 2018.
https://www.fec.gov/data/candidates/house/?cycle=2018&state=TX&district=07
H6TX07110
H6TX07110
This also needs a test that is sophisticated enough to catch this in the future. We have seen this a few times.
The text was updated successfully, but these errors were encountered: