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

Remove Poll Final Recounts, replace with Total Results #1885

Merged
merged 25 commits into from
Sep 20, 2017

Conversation

bertocq
Copy link
Collaborator

@bertocq bertocq commented Sep 18, 2017

Where

Ongoing Polls refactor effort

What

  • Poll::FinalRecount is a deprecated model, should be replaced by Poll::Recount but for now Poll::TotalResult will do

How

  • Replaced "Final Recount" usage on Admin Poll panels with Poll::TotalResult.

  • .first at total_recount = @booth_assignment.total_results.where(date: voting_date).first.amount at /app/views/admin/poll/booth_assignments/show.html.erb is not good, have to ask about scenarios where there could be more than one

  • Renamed properly some labels from "Final" to "Total"

Screenshots

Poll recounting tab

screen shot 2017-09-19 at 01 38 35

Poll officer assignment by officer details

screen shot 2017-09-19 at 01 38 13

Poll booth details

screen shot 2017-09-19 at 01 40 07

Test

  • Updated to use new Poll::TotalResult model

Deployment

  • Beware when taking this on to Madrid's fork (only known fork that have had a Poll on production). This will delete Poll::FinalRecount model and data on database! We must first backup in plain html any Poll results ‼️ ⚠️

Warnings

  • Check # Deployment ‼️

@voodoorai2000
Copy link
Member

Awesome 🎉

Senen and others added 19 commits September 19, 2017 17:30
Why:

* IDE/Text editor specific files and folders to be ignored should be on each developer's personal .gitignore_global file

How:

* If you're affected by this change, check https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
Reactivates feature setting after spec
Using correct resource in path
Visits directly the page to avoid flakiness
Maybe using `build` instead of `create` was confusing the spec
Adds random number to the proposal’s title, to avoid js popup
displaying similar proposals
Usually the first spec that visits a page fails with a timeout.
Hopefully it was due to having to compile assets at runtime and this helps to fix it
@bertocq bertocq merged commit 3456856 into master Sep 20, 2017
@bertocq bertocq deleted the chore/remove_final_recounts branch September 20, 2017 21:01
javierm pushed a commit to javierm/consul that referenced this pull request Mar 6, 2019
…alize_setting_in_development_environment

Initialize settings in development environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants