Skip to content

Commit

Permalink
Use internal census system (#71)
Browse files Browse the repository at this point in the history
* add census type radio buttons

* fix lint

* fix transformLocales

* createion elections with cencus permissions

* add batch queue

* add verification methods for voting

* remove whenever, add info to readme

* update the vocdoni census after delete authorization

* add internal_census field

* change readme

* change views vote

* add helper method

* add modal window, add internal census logic to voting

* add loginModal

* fix login modal, fix wallet generation

* create election without verification_types

* create election without voters

* fix erb linter

* refactoring, add system tests for internsl census

* change titles in census form

* fix preview, fix tests

* fix missink keys

* fix use doublequote  quotes

* add spec for job

* fic create internal command, add tests

* add spec for cell

* add spec for form

* add spec for controller

* add spec for AuthorizationsData model

* add spec for AuthorizationExtensions

* add system test for vote online

* fix lint

* add spec for voter model

* remove the unnecessary method

* fix new-vote.js

* fix CensusPermissionsForm

* update ruby

* add wrapper for node

* Use a Sdk service for running sdk actions

* clean js

* add election to sdk runner

* fix create wallet test

* update create census test

* create an election from the backend

* Create the election using node

* normalize locales

* fix wizard test

* make tests deterministic

* fix factories

* start elections

* use values for results

* remove unused test

* fix erb file

* fix unit tests

* fix syntac error

* fix more tests

* fix tests

* fix tests

* fix tests

* fix wrong method for translated

* avoid external library

* better management of the case auto_start

* fix test

* debug sdk

* prevent comunitaction with api

* add the test log to artifacts

* use expect to wait for ajax

* handle & update results

* message acording election start mode

* linting

* Merge node-wrapper branch

* remove js

* fix npm lint

* fix rubocop

* fix census controller

* fix test

* change census view

* change voter_verified?

* change voter_verified?

* fix  voter_verified? for empty required_authorizations

* update sdk

* Refactor deterministicWallet method to align with JS implementation and enhance security

* fix tests

* fix test

* fix updating of voting statistics

* change logic: creating technical_voter when no one is authorized for selected authorization types; add spec

* fix test

* Update README.md

Co-authored-by: Ivan Vergés <ivan@pokecode.net>

* Update README.md

Co-authored-by: Ivan Vergés <ivan@pokecode.net>

* fix translata of authorizations handler_name

* Save the census wallet for later use. Allow to send updated census

* test script for census change

* fix test using mjs for node wrapper

* fix script

* script working

* update census job, add information on the need to update the census

* add census traking

* fix non_voters method, fix job

* fix job

* refactor the job, add new services

* fix rubocop, locale

* npm update, fix BigInt

* fix erblint

* refactor steps controller, add flash, permissions

* change chrome version for test

* change chrome version for test

* change chrome version for test

* change chrome version for test

* change chromedriver version for test

* change chromedriver version 121 for test

* change chromedriver version 121 for test

* fix tests

* add tests

* fix locale keys

* update chromedriver config

* add ajax for update census info

* Add text to the voting page when the voter is not yet listed in the census

* fix translate missing

* fix tests

* delete test

* fix erb lint

* remove the code

* fix ajax

* add tests

* improve census view

* fix tests

* fix tests

* change massage in the setup form for internal census

* improve the census update view

* replace flash message to ajax

* change texts for check census

* add helpers

* add helper methods

* remove code

* remove code

* remove migration, remove AuthorizationsData

* delete override

* destroy tech voter after census update

* fix test

* fix ajax: update census

* fix erb linter

* ensure user is redirected to where the action started

* change the users context for the internal census form

Co-authored-by: Ivan Vergés <ivan@pokecode.net>

* refactoring VotesController

* change text for update census result

* remove cron task

* Update README.md

Co-authored-by: Ivan Vergés <ivan@pokecode.net>

* add DECIDIM_COMPAT_VERSION

Co-authored-by: Ivan Vergés <ivan@pokecode.net>

* update gemspec

* refactoring: dynamic_census attribute is not used

* add custom version number, add info to readme

* bundle

* Apply suggestions from code review

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

* fix npm lint

* change form, fix tests

* change update census button

* fix translate, move closing tag

* fix translate

* fix test

* Added changes after the review

* remove code

* fix npm linter

* fix migrations file name

* migrate selectors to use the data selectors

* Apply suggestions from code review

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

* delete space

* fix manual node run test

---------

Co-authored-by: Ivan Vergés <ivan@pokecode.net>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 11, 2024
1 parent 35136d6 commit 1b907ea
Show file tree
Hide file tree
Showing 86 changed files with 4,755 additions and 8,244 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,16 @@
"rules": {
"no-process-env": "off",
"valid-jsdoc": "off"
},
"settings": {
"react": {
"version": "17.0.2"
}
},
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"es2020": true
}
}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
lint-report:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
test-report:
name: Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 30
services:
postgres:
Expand Down Expand Up @@ -45,6 +45,13 @@ jobs:
with:
chromedriver-version: 119.0.6045.105

- name: Remove Chrome
run: sudo apt remove google-chrome-stable

- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 119.0.6045.105

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source "https://rubygems.org"

ruby RUBY_VERSION

DECIDIM_VERSION = "0.27.1"
DECIDIM_VERSION = "0.27.5"

gem "decidim", DECIDIM_VERSION
gem "decidim-vocdoni", path: "."
Expand Down
Loading

0 comments on commit 1b907ea

Please sign in to comment.