Skip to content

Commit

Permalink
Bump decidim from 0.27.5 to 0.28.3 (#536)
Browse files Browse the repository at this point in the history
* Upgrade to 0.28.0 disabling modules and customizations

* Enable instance modules and fix overrides from ephemeral module

* Fix CI pipelines and lint

* Add Procfile support

* Include ephemeral participation specs in the CI and fix them

* Install decidim-term_customizer

* Include census sms specs in the CI and fix them

* Include valid auth specs in the CI

* Include stats specs in the CI and fix all of them but one

* Lint

* Fix followers spec

* Split test modules in a different CI workflow

* Change array assertion methods

* Update dockerization

* Remove unused scripts

* Remove initiative header steps customization
It's not needed at all as it was changing the date separator from a dash to an arrow and the redesign uses an arrow

* Remove widget layout customization
It has been removed in the redesign

* Remove unused partial

* Rename monkey-patched views from decidim as they are pending to be reviewed

* Change workflow names

* Adapt accountability pages to redesign

* Reorder routes

* Remove decidim-dataviz from Gemfile

* Add 'rexml' gem for production

* Add 'matrix' gem for production

* Add yarn to engines

* Do not include polyfill for punycode

* Add Procfile

* Fix system specs

* Comment overrides to be reviewed

* Update user_profile_cell_override

* Add route-line icon

* Update activities override

* Lint

* Update proposal presenter override

* Update questionnaire user answers override

* Update join meeting button cell override

* Update zero duration meeting agenda items override

* Update BCN meeting iframe height override

* Update initiatives admin permission override

* Update permission to view not published meetings for space admins override

* Update custom initiatives supports required for specific ones override

* Update search resource fields mapper override

* Remove initiative card override to hide support button
The support button is not present in the redesigned cards

* Update accountability customization overrides

* Update join meeting button override

* Update form questionnaire answer index override

* Update initiative fill personal data override

* Exclude file from codeclimate

* Run workflow from module only on change

* Make modules compatible only to instance decidim version

* Update email override

* Remove project list item overrides
The cell has been replaced in 0.28.0 and now it shows the project budget amount in mobile by default so the override functionality is not needed anymore

* Update import results views

* Remove app.json as it's no longer needed

* Update and install decidim-dataviz

* Fix status cell error
'undefined local variable or method current_scope for Decidim::Accountability::StatusCell'

* Cleanup gems

* Cleanup styles

* Remove carrierwave initializer

* Downgrade wicked_pdf
See: mileszs/wicked_pdf#1102

* Install decidim-kids module

* Install decidim-decidim_awesome module (beta)

* Install decidim-navigation_maps module (beta)

* Add extra argument to SMS gateway

* Show 20 assemblies per page

* Lint

* Fix tests

* Use main branch of decidim-navigation_maps module

* Bump decidim from 0.28.0 to 0.28.1

* Remove workflow for decidim ephemeral participation module

* Run all workflows always

* Fix append stylesheet

* Skip tests failing because of Capybara driver

* Bump decidim from 0.28.1 to 0.28.2

* Specify zeitwerk autoloader

* Bump decidim-decidim_awesome version

* Add .node-version

* Bump decidim-decidim_awesome version

* Bump decidim from 0.28.2 to 0.28.3

* Fix overrides spec and lint erb files

* Update overrides_spec.rb

* Force cell cache expiration time

* Decrease cache expiry time to match the one provided by AWS

* Avoid segmentation fault from PostgreSQL on MacOS

* Script to populate hero images from scoped resources banner images

* Rescue error in content block hero image migration script
  • Loading branch information
fblupi authored Sep 24, 2024
1 parent a8981fa commit 759c49d
Show file tree
Hide file tree
Showing 414 changed files with 24,202 additions and 12,179 deletions.
1 change: 1 addition & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ exclude_paths:
- "config/initializers/decidim.rb"
- "decidim-ephemeral_participation/app/permissions/decidim/ephemeral_participation/ephemeral_participation_permissions.rb"
- "app/services/decidim_legacy_routes.rb"
- "app/helpers/concerns/decidim/paginate_helper_override.rb"
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Lint
on: [push]

env:
RUBY_VERSION: 3.0.2
NODE_VERSION: 16.9.1
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1

jobs:
lint:
name: Lint code
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Test
on: [push]

env:
RUBY_VERSION: 3.0.2
NODE_VERSION: 16.9.1
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1

jobs:
test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
Expand Down Expand Up @@ -37,20 +37,13 @@ jobs:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: 119.0.6045.105
- name: List Chrome
run: apt list --installed | grep chrome
- name: Remove Chrome
run: sudo apt remove google-chrome-stable
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 119.0.6045.105
- run: bundle exec rake db:test:prepare
name: Setup database
- name: Precompile assets
run: |
npm install
bundle exec rake assets:precompile
- run: bundle exec rspec
- run: |
mkdir node_modules
bundle exec rspec
name: Run specs
49 changes: 49 additions & 0 deletions .github/workflows/test_census_sms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test Census SMS
on: [push]

env:
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1

jobs:
test:
name: Test Census SMS
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
redis:
image: redis:3.2-alpine
ports: ["6379:6379"]
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
RAILS_ENV: test
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- uses: nanasess/setup-chromedriver@v2
- run: bundle exec rake db:test:prepare
name: Setup database
- name: Precompile assets
run: |
npm install
bundle exec rake assets:precompile
- run: |
mkdir node_modules
bundle exec rspec decidim-census_sms
name: Run specs
49 changes: 49 additions & 0 deletions .github/workflows/test_stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test Stats
on: [push]

env:
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1

jobs:
test:
name: Test Stats
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
redis:
image: redis:3.2-alpine
ports: ["6379:6379"]
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
RAILS_ENV: test
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- uses: nanasess/setup-chromedriver@v2
- run: bundle exec rake db:test:prepare
name: Setup database
- name: Precompile assets
run: |
npm install
bundle exec rake assets:precompile
- run: |
mkdir node_modules
bundle exec rspec decidim-stats
name: Run specs
49 changes: 49 additions & 0 deletions .github/workflows/test_valid_auth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test Valid Auth
on: [push]

env:
RUBY_VERSION: 3.1.1
NODE_VERSION: 18.17.1

jobs:
test:
name: Test Valid Auth
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
redis:
image: redis:3.2-alpine
ports: ["6379:6379"]
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
RAILS_ENV: test
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- uses: nanasess/setup-chromedriver@v2
- run: bundle exec rake db:test:prepare
name: Setup database
- name: Precompile assets
run: |
npm install
bundle exec rake assets:precompile
- run: |
mkdir node_modules
bundle exec rspec decidim-valid_auth
name: Run specs
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ yarn-debug.log*
.yarn-integrity
.rbenv-vars

public/sw.js
public/sw.js.map
public/sw.js.br
public/sw.js.map.br
public/sw.js.gz
public/sw.js.map.gz
public/sw.js*

coverage/

.nvmrc
tailwind.config.js
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.17.1
29 changes: 26 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
inherit_from:
- .rubocop_ruby.yml
- .rubocop_rails.yml
inherit_from: .rubocop_todo.yml

inherit_gem:
decidim-dev: rubocop-decidim.yml

inherit_mode:
merge:
- Exclude

AllCops:
Include:
- "**/*.rb"
- "**/*.rake"
- "**/*.ru"
- "**/Gemfile"
- "**/Rakefile"
Exclude:
- "spec/decidim_dummy_app/**/*"
- "**/spec/decidim_dummy_app/**/*"
- "bin/**/*"
- "node_modules/**/*"
- "**/node_modules/**/*"
- "db/schema.rb"
- "db/migrate/*"
- "vendor/**/*"
- "**/vendor/**/*"
87 changes: 0 additions & 87 deletions .rubocop_rails.yml

This file was deleted.

Loading

0 comments on commit 759c49d

Please sign in to comment.