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

Differentiate between no contests and not processed #2

Open
chiuki opened this issue Jun 1, 2018 · 0 comments
Open

Differentiate between no contests and not processed #2

chiuki opened this issue Jun 1, 2018 · 0 comments
Labels
firebase question Further information is requested

Comments

@chiuki
Copy link
Contributor

chiuki commented Jun 1, 2018

Since we are adding election information to Firebase gradually, how do we indicate that a division has no contests in a particular election?

Scenarios

No upcoming election node under any of the divisions

Display "We could not find any election information"

Some divisions have an upcoming election node

Display information from the election nodes found, plus "Election information not complete"

All divisions have an upcoming election node

Information is complete. Election node will have an empty list of contests if there are no contest

Example

Say a voter belongs to the following divisions:

  • ocd-division,country:us
  • ocd-division,country:us,state:ca
  • ocd-division,country:us,state:ca/place:palo_alto

If the upcoming election only has state contests, the country and place nodes will still have an election node, with empty contests. The UI will show just the state contests. However, say the place node does not have any upcoming election nodes, the warning "Election information not complete" will be added.

❓ Does Firebase allow empty lists? Or is it better to have a boolean noContests and set it to true?

@chiuki chiuki added question Further information is requested firebase labels Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
firebase question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant