Open masiarek opened 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:
Or, at least allow uploading the parameters to CREATE an Election - assuming it is a Demo Election mode.
Similar idea: https://github.com/Equal-Vote/star-server/issues/90
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.
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).