Skip to content
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

Closed
Tracked by #143
patphongs opened this issue Apr 10, 2018 · 7 comments
Closed
Tracked by #143

Research: Fix special election dates on the election search page #1912

patphongs opened this issue Apr 10, 2018 · 7 comments
Assignees
Labels
Milestone

Comments

@patphongs
Copy link
Member

patphongs commented Apr 10, 2018

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:

  • Take a look at @llienfec research findings below
  • Make an implementation ticket for what comes out of testing results
@AmyKort AmyKort added the Bug label May 29, 2018
@PaulClark2 PaulClark2 added this to the Sprint 7.1 milestone Aug 31, 2018
@lbeaufort lbeaufort changed the title Fix display of special elections on the elections landing page Fix special election dates on the election search page Sep 4, 2018
@patphongs
Copy link
Member Author

@llienfec Please investigate special elections and how they are showing up on our elections search page to find out if the information is accurate.

@patphongs patphongs changed the title Fix special election dates on the election search page Research: Fix special election dates on the election search page Sep 4, 2018
@llienfec
Copy link
Contributor

llienfec commented Sep 5, 2018

I researched how special elections are showing up on the elections search page:

Results

@patphongs Look into the unchecked boxes below. Looks like NY 25th district and PA 15th district should show a special election. Also how should this work when there's a special election and a regularly-scheduled election on the same day (for example 11/6/18)?

Testing

Logic

This 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 tests

One: 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).

  • MI 13 - SG on 11/6/18. CFD shows SG.
  • MS Senate - SG on 11/6/18. CFD shows SG.
  • NY 25 - SG on 11/6/18. CFD shows regular general, but prior notices are coming soon, so it may not be in the database yet.
  • PA 7 - SG on 11/6/18. CFD shows SG.
  • PA 15 - SG on 11/6/18. CFD shows regular genera. Prior notice has been issued.

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.

  • TX 27 - CFD shows regular general
  • OH 12 - CFD shows regular general
  • AZ 8 - CFD shows regular general

@llienfec
Copy link
Contributor

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 llienfec removed their assignment Sep 10, 2018
@patphongs patphongs modified the milestones: Sprint 7.1, Sprint 7.2 Sep 17, 2018
@patphongs
Copy link
Member Author

@llienfec I think I'll need to review the testing results with you again. I'm seeing General Election results for all of these and nothing with Special general elections noted on the front end interface. Not sure if I'm missing something, could you please ping me about this when you get the chance? Thanks!

@patphongs patphongs modified the milestones: Sprint 7.2, Sprint 7.3 Oct 1, 2018
@llienfec
Copy link
Contributor

llienfec commented Oct 1, 2018

Hey @pat - I think that both of those districts should say "special general." I pinged you w/ availability today. Thanks!

@patphongs
Copy link
Member Author

patphongs commented Oct 1, 2018

New issue

@patphongs researched the findings above and uncovered a new issue:
Since Gs and SGs can happen on the same day, sometimes G is populated and sometimes SG is populated. The problems are

  1. They're both right
  2. They're both in the API
  3. The results don't populate predictably - it can flip back and forth between showing the G and the SG.

Updated business rules

These 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.

  • Display should be General/Special general election within the same result item

Otherwise, just show the next upcoming election, whether it's a G or SG.

  • Display should be General election OR Special general election

@patphongs
Copy link
Member Author

New issue was created based on comments above. Closing this issue in favor of #2419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants