Skip to content

Commit

Permalink
Upgrade 0.28 (#78)
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 <[email protected]>

* Update README.md

Co-authored-by: Ivan Vergés <[email protected]>

* 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 <[email protected]>

* refactoring VotesController

* change text for update census result

* remove cron task

* Update README.md

Co-authored-by: Ivan Vergés <[email protected]>

* add DECIDIM_COMPAT_VERSION

Co-authored-by: Ivan Vergés <[email protected]>

* update gemspec

* refactoring: dynamic_census attribute is not used

* add custom version number, add info to readme

* bundle

* add credit renewal flow, add tests

* add comments

* fix erb linter, fix test

* add test

* initial upgrade

* fix icons: elections index page

* register new icons, change buttons, titles

* redesign the setup election page

* tabs, tables

* change styles for elections, questions, answers

* shange census page

* change calendar page

* change publish page, forms

* fix buttons for steps

* change cells, elections index public page (processing)

* merge main, resolve conflicts

* chanfe show election page

* change election show page - questions

* change election results

* fix babel error: remove webpacker override from Rakefile

* cp babel.config.json

* change census-authorization-modal

* change check census, new question

* change elections -> new vote

* change Real-time voting results

* change preview

* change results table

* change vote statistics

* change published results

* fix rubocop

* fix erblint

* fix some tests

* fix admin tests

* fix cells, tests

* fix rubocop

* upgrade vocdoni version to 0.8

* fix serching, fix filtering

* fis tabs styles

* update lock file

* update lock file

* Add Linux platform to Gemfile.lock

* fix rubocop

* fix results online spec

* fix append_stylesheet_pack_tag

* fix selected answers

* add ContentSecurityPolicy

* fix tests

* fix versions

* fix vote without a user

* fix bullet errors

* fix rubocop

* fix i18n

* fix test

* fix wallet inpet

* fix time format in the test

* fix button text

* fix test

* fix accordion

* fix npm lint

* fix erb lint

* Update README.md

Co-authored-by: Ivan Vergés <[email protected]>

* Update package.json

Co-authored-by: Ivan Vergés <[email protected]>

* styles for election aside

* i18n-tasks

* remove extra code

* fix tests

* remove empty link

* add comment to Rakefile

* fix rubocop

* add null: false to migration

---------

Co-authored-by: Ivan Vergés <[email protected]>
  • Loading branch information
antopalidi and microstudi authored May 22, 2024
1 parent 7b49435 commit 029cc01
Show file tree
Hide file tree
Showing 209 changed files with 6,005 additions and 3,752 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
pull_request:

env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1

jobs:
lint-report:
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
name: Lint Ruby files

- run: bundle exec erblint app/**/*.erb
name: Lint ERB files
name: Lint ERB files
4 changes: 2 additions & 2 deletions .github/workflows/test-rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:

env:
CI: "true"
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1
CODECOV_TOKEN: 3dc89116-a8ed-4df4-bf06-812fc0d8854d

jobs:
Expand Down
3 changes: 1 addition & 2 deletions .rubocop_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ AllCops:
# If a value is specified for TargetRubyVersion then it is used.
# Else if .ruby-version exists and it contains an MRI version it is used.
# Otherwise we fallback to the oldest officially supported Ruby version (2.0).
TargetRubyVersion: 3.0
TargetRubyVersion: 3.1

# RSpec:
# Patterns:
Expand Down Expand Up @@ -1762,4 +1762,3 @@ Faker/DeprecatedArguments:
questions:
- number
- supplemental

2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.6
3.1.1
19 changes: 14 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,32 @@ source "https://rubygems.org"

ruby RUBY_VERSION

DECIDIM_VERSION = "0.27.6"
# Inside the development app, the relative require has to be one level up, as
# the Gemfile is copied to the development_app folder (almost) as is.
base_path = ""
base_path = "../" if File.basename(__dir__) == "development_app"
require_relative "#{base_path}lib/decidim/vocdoni/version"

DECIDIM_VERSION = Decidim::Vocdoni::DECIDIM_VERSION

gem "decidim", DECIDIM_VERSION
gem "decidim-vocdoni", path: "."

gem "bootsnap", "~> 1.7"
gem "faker", "~> 2.14"
gem "puma", "~> 5.6.2"
gem "faker", "~> 3.2"
gem "puma", "~> 6.3.1"

group :development, :test do
gem "byebug", "~> 11.0", platform: :mri

# se if we can skip this version lock in the future, related to this
# https://github.com/decidim/decidim/pull/12629
gem "bullet", "~> 7.0", "< 7.1.0"
gem "decidim-dev", DECIDIM_VERSION
end

group :development do
gem "i18n-tasks", "~> 0.9.37"
gem "i18n-tasks", "~> 1.0"
gem "letter_opener_web", "~> 2.0"
gem "listen", "~> 3.1"
gem "rubocop-faker", "~> 1.1"
Expand All @@ -30,5 +39,5 @@ group :development do
end

group :test do
gem "codecov", "~> 0.6.0", require: false
gem "codecov", require: false
end
Loading

0 comments on commit 029cc01

Please sign in to comment.