-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from votinginfoproject/Bug/Cherry-Pick-Issues…
…-324-379 Bug/cherry pick issues 324 379
- Loading branch information
Showing
113 changed files
with
8,482 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.. This file is auto-generated. Do not edit it by hand! | ||
.. _multi-csv-ballot-measure-selection: | ||
|
||
ballot_measure_selection | ||
======================== | ||
|
||
Represents the possible selection (e.g. yes/no, recall/do not recall, et al) for a | ||
:ref:`multi-csv-ballot-measure-contest` that would appear on the ballot. | ||
BallotMeasureSelection extends :ref:`multi-csv-ballot-selection-base`. | ||
|
||
+--------------+---------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| Tag | Data Type | Required? | Repeats? | Description | Error Handling | | ||
+==============+===============+==============+==============+==========================================+==========================================+ | ||
| selection | ``xs:string`` | **Required** | Single | Selection text for a | If the element is invalid or not | | ||
| | | | | :ref:`multi-csv-ballot-measure-contest` | present, the implementation is required | | ||
| | | | | | to ignore the BallotMeasureSelection | | ||
| | | | | | containing it. | | ||
+--------------+---------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
|
||
.. code-block:: csv-table | ||
:linenos: | ||
id,sequence_order,selection | ||
bms001,1,Proposition A | ||
bms002,2,Proposition B | ||
.. _multi-csv-ballot-selection-base: | ||
|
||
ballot_selection_base | ||
--------------------- | ||
|
||
A base model for all ballot selection types: | ||
:ref:`multi-csv-ballot-measure-selection`, | ||
:ref:`multi-csv-candidate-selection`, and :ref:`multi-csv-party-selection`. | ||
|
||
+----------------+----------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| Tag | Data Type | Required? | Repeats? | Description | Error Handling | | ||
+================+================+==============+==============+==========================================+==========================================+ | ||
| sequence_order | ``xs:integer`` | Optional | Single | The order in which a selection can be | If the field is invalid or not present, | | ||
| | | | | listed on the ballot or in results. This | then the implementation is required to | | ||
| | | | | is the default ordering, and can be | ignore it. | | ||
| | | | | overridden by `OrderedBallotSlectionIds` | | | ||
| | | | | in :ref:`multi-csv-ordered-contest`. | | | ||
+----------------+----------------+--------------+--------------+------------------------------------------+------------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.. This file is auto-generated. Do not edit it by hand! | ||
.. _multi-csv-ballot-style: | ||
|
||
ballot_style | ||
============ | ||
|
||
A container for the contests/measures on the ballot. | ||
|
||
+----------------------+---------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| Tag | Data Type | Required? | Repeats? | Description | Error Handling | | ||
+======================+===============+==============+==============+==========================================+==========================================+ | ||
| image_uri | ``xs:anyURI`` | Optional | Single | Specifies a URI that returns an image of | If the field is invalid or not present, | | ||
| | | | | the sample ballot. | then the implementation is required to | | ||
| | | | | | ignore it. | | ||
+----------------------+---------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| ordered_contests_ids | ``xs:IDREFS`` | Optional | Single | Reference to a set of | If the field is invalid or not present, | | ||
| | | | | :ref:`multi-csv-ordered-contest` | then the implementation is required to | | ||
| | | | | | ignore it. | | ||
+----------------------+---------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| party_ids | ``xs:IDREFS`` | Optional | Single | Reference to a set of | If the field is invalid or not present, | | ||
| | | | | :ref:`multi-csv-party`s. | then the implementation is required to | | ||
| | | | | | ignore it. | | ||
+----------------------+---------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
|
||
.. code-block:: csv-table | ||
:linenos: | ||
id,image_uri,ordered_contest_ids,party_ids | ||
bs00010,http://i.giphy.com/26BoCh3PgT8ai45ji.gif,oc2025,par02 | ||
bs00011,http://i.giphy.com/3oEjHYDWEICgEpAOjK.gif,oc3000 oc2025,par01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
.. This file is auto-generated. Do not edit it by hand! | ||
.. _multi-csv-candidate: | ||
|
||
candidate | ||
========= | ||
|
||
The Candidate object represents a candidate in a contest. If a candidate is | ||
running in multiple contests, each contest **must** have its own Candidate | ||
object. Candidate objects may **not** be reused between Contests. | ||
|
||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| Tag | Data Type | Required? | Repeats? | Description | Error Handling | | ||
+======================+=================================================+==============+==============+==========================================+==========================================+ | ||
| ballot_name | ``xs:string`` | **Required** | Single | The candidate's name as it will be | If the element is invalid or not | | ||
| | | | | displayed on the official ballot (e.g. | present, then the implementation is | | ||
| | | | | "Ken T. Cuccinelli II"). | required to ignore the Candidate element | | ||
| | | | | | containing it. | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| contact_information | ``xs:string`` | Optional | Single | Contact and physical address information | If the element is invalid or not | | ||
| | | | | for this Candidate and/or their campaign | present, then the implementation is | | ||
| | | | | (see | required to ignore it. | | ||
| | | | | :ref:`multi-csv-contact-information`). | | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| external_identifiers | :ref:`multi-csv-external-identifiers` | Optional | Single | Another identifier for a candidate that | If the element is invalid or not | | ||
| | | | | links to another source of information | present, then the implementation is | | ||
| | | | | (e.g. a campaign committee ID that links | required to ignore it. | | ||
| | | | | to a campaign finance system). | | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| file_date | ``xs:date`` | Optional | Single | Date when the candidate filed for the | If the field is invalid or not present, | | ||
| | | | | contest. | then the implementation is required to | | ||
| | | | | | ignore it. | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| is_incumbent | ``xs:boolean`` | Optional | Single | Indicates whether the candidate is the | If the field is invalid or not present, | | ||
| | | | | incumbent for the office associated with | then the implementation is required to | | ||
| | | | | the contest. | ignore it. | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| is_top_ticket | ``xs:boolean`` | Optional | Single | Indicates whether the candidate is the | If the field is invalid or not present, | | ||
| | | | | top of a ticket that includes multiple | then the implementation is required to | | ||
| | | | | candidates. | ignore it. | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| party_id | ``xs:IDREF`` | Optional | Single | Reference to a :ref:`multi-csv-party` | If the field is invalid or not present, | | ||
| | | | | element with additional information | then the implementation is required to | | ||
| | | | | about the candidate's affiliated party. | ignore it. | | ||
| | | | | This is the party affiliation that is | | | ||
| | | | | intended to be presented as part of | | | ||
| | | | | ballot information. | | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| person_id | ``xs:IDREF`` | Optional | Single | Reference to a :ref:`multi-csv-person` | If the field is invalid or not present, | | ||
| | | | | element with additional information | then the implementation is required to | | ||
| | | | | about the candidate. | ignore it. | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| post_election_status | :ref:`multi-csv-candidate-post-election-status` | Optional | Single | Final status of the candidate (e.g. | If the field is invalid or not present, | | ||
| | | | | winner, withdrawn, etc...). | then the implementation is required to | | ||
| | | | | | ignore it. | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
| pre_election_status | :ref:`multi-csv-candidate-pre-election-status` | Optional | Single | Registration status of the candidate | If the field is invalid or not present, | | ||
| | | | | (e.g. filed, qualified, etc...). | then the implementation is required to | | ||
| | | | | | ignore it. | | ||
+----------------------+-------------------------------------------------+--------------+--------------+------------------------------------------+------------------------------------------+ | ||
|
||
.. code-block:: csv-table | ||
:linenos: | ||
id,ballot_name,external_identifier_type,external_identifier_othertype,external_identifier_value,file_date,is_incumbent,is_top_ticket,party_id,person_id,post_election_status,pre_election_status | ||
can001,Jude Fawley,,,,2016-12-01,true,false,par01,per50001,,filed | ||
can002,Arabella Donn,,,,2016-12-01,false,false,par02,per50002,,qualified | ||
can003,John Coltrane,,,,2016-09-23,false,false,par02,per50003,,qualified | ||
can004,Miles Davis,,,,2016-05-26,false,false,par01,per50004,,qualified |
Oops, something went wrong.