Equal-Vote / star-server

STAR Voting is an upgrade to our current way of voting that allows voters to score candidates from 0 to 5. Ultimately, STAR Voting elects candidates who better represent the whole of the electorate. We are building a site that lets everyone from individuals to organizations use STAR Voting to host simple polls or run secure elections.
GNU Affero General Public License v3.0
17 stars 21 forks source link

1) upload Parameters to create Election and later 2) upload Ballots for a given Election #616

Open masiarek opened 1 month ago

masiarek commented 1 month ago

Here is an example: https://www.rankedvote.co/csv-import https://www.rankedvote.co/guides/using-rankedvote/import-csv-for-ranked-choice-voting-calculation

Open questions: What file upload format to use (YAML, TOML, JSON, etc).

masiarek commented 1 month ago

Would this upload file format work - with two sections in one file:

Obviously - we would need some kind of a script to validate the plausibility of all elements of the file, cross check verification, logical consistency (point out formatting errors, logical errors, consistency errors, etc).

However, assuming that the file is clean - validated and ready for upload - would it be possible to parse the file and eventually upload the file?

Here are the step - process flow: First - parse the Election Parameters section Second - Finalize the Election Third load the Ballots section Forth - output the results (either online or to a file - e.g. "HOA Election 20xx.out"

Example file: Import Election.txt

Election Parameters example:

image
masiarek commented 1 month ago

Or, at least allow uploading the parameters to CREATE an Election - assuming it is a Demo Election mode.

masiarek commented 1 month ago

Similar idea: https://github.com/Equal-Vote/star-server/issues/90

masiarek commented 1 month ago

Why we need this: we have a bug in "copy an election" - we do not copy Voters - see issue https://github.com/Equal-Vote/star-server/issues/630

There are other reasons why it would be helpful though - e.g.