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

Display all polls for current booth #1919

Merged
merged 3 commits into from
Mar 13, 2019
Merged

Conversation

voodoorai2000
Copy link
Member

Context

Polls that were not votable by a user were not being displayed in the officing interface. Creating a confusing situation for officers.

Objectives

Polls that are not votable by a user should be displayed and a corresponding message displayed explaining that a poll can only be voted by residents of a certain geozone.

Visual Changes

unvotable polls

Does this PR need a Backport to CONSUL?

Yes, officers should see polls that are not votable by a user in CONSUL too.

spec/features/officing/voters_spec.rb Outdated Show resolved Hide resolved
spec/features/officing/voters_spec.rb Outdated Show resolved Hide resolved
spec/features/officing/voters_spec.rb Show resolved Hide resolved
spec/features/officing/voters_spec.rb Show resolved Hide resolved
spec/features/officing/voters_spec.rb Show resolved Hide resolved
spec/features/officing/voters_spec.rb Show resolved Hide resolved
spec/features/officing/voters_spec.rb Show resolved Hide resolved
spec/features/officing/voters_spec.rb Show resolved Hide resolved
spec/features/officing/voters_spec.rb Show resolved Hide resolved
Polls that were not votable by a user were not being displayed in the officing interface. Creating a confusing situation for officers.

With this commit polls that are not votable by a user will be displayed, with the corresponding message explaining that that poll can only be voted by residents of a certain geozone.
Budget polls behave slightly differently to non-budget polls.

In budget polls we use Budget::Ballot::Lines to verify if a user has already voted online. In non-budget polls we use Poll::Voter to verify this.

In this commit we are adding an extra check to make sure that the correct message is displayed if the user has already voted online for a budget poll[1]

[1] https://github.com/AyuntamientoMadrid/consul/blob/master/spec/features/budget_polls/voter_spec.rb#L122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
Backport
Development

Successfully merging this pull request may close these issues.

None yet

5 participants