-
Notifications
You must be signed in to change notification settings - Fork 40
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
Research: Fix special election dates on the election search page #1912
Comments
@llienfec Please investigate special elections and how they are showing up on our elections search page to find out if the information is accurate. |
I researched how special elections are showing up on the elections search page: Results@patphongs TestingLogicThis is how I understand the logic for what general election should show up: The election on the CFD pages should be the next upcoming general election for the seat, whether special general or general election. Special election testsOne: Looking for any districts where the upcoming election is a special election to see what the CFD page shows. Based on my understanding of the logic, CFD should show Special General (SG).
Two: Looking for districts that were recently specials, but the special general has passed. We'd expect that CFD would show the upcoming regularly scheduled general election.
|
Next steps are to see why NY 25 and PA 15 aren't showing the special general as the next upcoming election. Since this is where my research ends, I'm going to take my name off as an assignee on the ticket. I'm happy to come back and test or help look into this if you need me @patphongs. |
@llienfec I think I'll need to review the testing results with you again. I'm seeing |
Hey @pat - I think that both of those districts should say "special general." I pinged you w/ availability today. Thanks! |
New issue@patphongs researched the findings above and uncovered a
Updated business rulesThese updated business rules are intended to untangle display of G vs SG elections. If the General (G) and Special General(SG) elections are on on the same day, we want to show both at the same time.
Otherwise, just show the next upcoming election, whether it's a G or SG.
|
New issue was created based on comments above. Closing this issue in favor of #2419 |
The wrong election dates are displayed on the elections search page for special elections. It would be nice to re-use this logic in order to display general elections and special general elections on the elections landing page. It is buggy on display of special elections, need to try and fix that logic foundation first before we build on top of it.
Example of something buggy. Below link still shows Arizona 8 as a having a 2018 special election even though you are viewing 2012 data.
https://www.fec.gov/data/elections/?cycle=2012&state=AZ&sort=district
Completion criteria:
The text was updated successfully, but these errors were encountered: