-
Notifications
You must be signed in to change notification settings - Fork 30
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
Linking Precinct object to BallotStyle #94
Comments
@Josh-LACRRCC Did this question get answered yesterday at the spec clean-up session? I want to make sure this didn't fall through the cracks. /cc @pstenbjorn @jdmgoogle |
@jungshadow Yes. Revisit after further 1622.2 integration. |
I sat down and discussed this with @jktomer, and here's the situation: right now we (Google) figure out the ballot contests by (a) getting the list of electoral districts associated with a precinct from the Precinct object, (b) getting the list of contests associated with an electoral district from the Contest object, and (c) doing a join on those two lists. These linkages are all still present in the most recent draft of VIP 5. However there are also BallotStyle objects in the VIP 5 spec, but currently they are not referenced by anything. There are four options we considered:
We shot down (1) as being pointless since BallotStyle and OrderedContest would be of no use and just take up space in the feed. We would prefer to not remove ElectoralDistrict from Precincts, since this information is useful in many ways and improves the search experience (this removes option (4)). We suspect that removing BallotStyle and OrderedContest from the schema would be less-than-desirable since it's a superior and more direct way to indicate ballot layout than our join-through-ElectoralDistrict heuristic (this removes option (2)). Now we're left with option 3) Keep ElectoralDistrict in Precinct and add a BallotStyleId field. If such a field is present then we'd use the referenced BallotStyle, but if it isn't then we can fall back on our joining heuristic. Comments? |
@jdmgoogle let me see if I can trace the chain of data in your suggestion 3 [data entry - valid address] -> StreetSegment-> PrecinctId -> If this is what you are proposing, I think it provides reasonable options and enough reverse compatibility with existing csv structures. |
@pstenbjorn, that is how I envision it chaining as well. Option 3 offers the least amount of design changes, with existing compatibility, while providing the increased ability to support "candidate rotation" between Precincts. |
Option (3) strikes me as the right choice. |
@pstenbjorn and @Josh-LACRRCC Address but if there is no BallotStyleId present in the Precinct object, we'll fall back on the current model, which is (Preprocessing) (Serving) I'll put together the PR for the schema change. |
Reopening this based on conversations with Louisiana during the 5.2 discussion on April 16. |
Acknowledged. I'd still like to better understand the hurdles to regular 5.x implementation. |
Since the restructuring of the schema to better follow 1622.2, I no longer see a method of connecting a Precinct to a BallotStyle.
The Precinct's "BallotStyleImageUrl" function appears be taken care of by the BallotStyle's "InfoUrl".
The "BallotStyleImageUrl" element could then be replaced by
or be added following if the image url needs to remain in that location.
Other ideas?
The text was updated successfully, but these errors were encountered: