decidim-vocdoni / decidim-module-vocdoni

(WIP) A module for Decidim that brings an elections component based on the Vocdoni SDK and API
GNU Affero General Public License v3.0
7 stars 0 forks source link

Vote statistics polling on Vote step #25

Closed andreslucena closed 1 year ago

andreslucena commented 1 year ago

This PR implements the polling on Admin's panel during the Vote step.

It also introduces multiple fixes that were mentioned in other reviews:

Decidim::Vocdoni.configure do |config|
  config.api_endpoint_env = "stg"
end

Screenshot

image

Testing

  1. Set up an Election
  2. Vote on it
  3. Run the bin/rails decidim_vocdoni:change_election_status task so it changes the step
  4. Go to the steps
  5. See that you have 1 vote
  6. On another tab, vote again with other participant in census
  7. See that in less than 30 seconds you have the new vote on this page
andreslucena commented 1 year ago

This in decidim side, the command bin/rails decidim_vocdoni:change_election_status should improved, probably should be a job too. It should echo information about what elections are change the status. In my case I forgot to run this command after setting up the election, the status didn't change to "vote" (but I could vote anyway) but then it wasn't changing to the "voted_ended" status.

Yes, this is being improved on #40