Skip to content

Commit 87c1a4c

Browse files
authored
Merge branch 'develop' into fix/footer_menu_attributes
2 parents 27d5c84 + c523c61 commit 87c1a4c

118 files changed

Lines changed: 674 additions & 1023 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/spelling/expect.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ sereneinserenade
845845
serializeds
846846
setseed
847847
sgid
848+
Shakacode
848849
shakapacker
849850
sharedapp
850851
shellcheckrc

.github/workflows/ci_core.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
name: "System specs"
3737
- command: bundle exec parallel_test --type rspec --pattern spec/ --exclude-pattern 'spec/(system|lib|tasks)'
3838
name: "Tests without system, lib and tasks specs"
39-
- command: bundle exec parallel_test --type rspec --pattern spec/tasks --exclude-pattern 'spec/tasks/decidim_tasks_webpacker_spec.rb'
39+
- command: bundle exec parallel_test --type rspec --pattern spec/tasks --exclude-pattern 'spec/tasks/decidim_tasks_shakapacker_spec.rb'
4040
name: "Tasks specs"
41-
- command: bundle exec rspec spec/tasks/decidim_tasks_webpacker_spec.rb
42-
name: "Webpacker tasks specs"
41+
- command: bundle exec rspec spec/tasks/decidim_tasks_shakapacker_spec.rb
42+
name: "Shakapacker tasks specs"
4343
name: ${{ matrix.test.name }}
4444
uses: ./.github/workflows/test_app.yml
4545
secrets: inherit

.gitpod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ ports:
4040
port: 3000
4141
onOpen: open-preview
4242
visibility: public
43-
- name: Webpacker
44-
description: The webpacker dev server for asset reloading
43+
- name: Shakapacker
44+
description: The shakapacker dev server for asset reloading
4545
port: 3035
4646
onOpen: ignore
4747
visibility: public

Gemfile.lock

Lines changed: 60 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ PATH
9797
premailer-rails (~> 1.10)
9898
rack (~> 2.2, >= 2.2.8.1)
9999
rack-attack (~> 6.0)
100-
rails (~> 7.2.0)
100+
rails (~> 7.2.0, >= 7.2.2.2)
101101
rails-i18n (~> 7.0)
102102
ransack (~> 4.2.0)
103103
redis (~> 4.1)
104104
request_store (~> 1.7.0)
105105
rqrcode (~> 2.2.0)
106106
rubyXL (~> 3.4)
107107
rubyzip (~> 2.0)
108-
shakapacker (~> 7.1.0)
108+
shakapacker (~> 8.3.0)
109109
valid_email2 (~> 7.0)
110110
web-push (~> 3.0)
111111
wisper (~> 3.0)
@@ -208,29 +208,29 @@ PATH
208208
GEM
209209
remote: https://rubygems.org/
210210
specs:
211-
actioncable (7.2.2.1)
212-
actionpack (= 7.2.2.1)
213-
activesupport (= 7.2.2.1)
211+
actioncable (7.2.2.2)
212+
actionpack (= 7.2.2.2)
213+
activesupport (= 7.2.2.2)
214214
nio4r (~> 2.0)
215215
websocket-driver (>= 0.6.1)
216216
zeitwerk (~> 2.6)
217-
actionmailbox (7.2.2.1)
218-
actionpack (= 7.2.2.1)
219-
activejob (= 7.2.2.1)
220-
activerecord (= 7.2.2.1)
221-
activestorage (= 7.2.2.1)
222-
activesupport (= 7.2.2.1)
217+
actionmailbox (7.2.2.2)
218+
actionpack (= 7.2.2.2)
219+
activejob (= 7.2.2.2)
220+
activerecord (= 7.2.2.2)
221+
activestorage (= 7.2.2.2)
222+
activesupport (= 7.2.2.2)
223223
mail (>= 2.8.0)
224-
actionmailer (7.2.2.1)
225-
actionpack (= 7.2.2.1)
226-
actionview (= 7.2.2.1)
227-
activejob (= 7.2.2.1)
228-
activesupport (= 7.2.2.1)
224+
actionmailer (7.2.2.2)
225+
actionpack (= 7.2.2.2)
226+
actionview (= 7.2.2.2)
227+
activejob (= 7.2.2.2)
228+
activesupport (= 7.2.2.2)
229229
mail (>= 2.8.0)
230230
rails-dom-testing (~> 2.2)
231-
actionpack (7.2.2.1)
232-
actionview (= 7.2.2.1)
233-
activesupport (= 7.2.2.1)
231+
actionpack (7.2.2.2)
232+
actionview (= 7.2.2.2)
233+
activesupport (= 7.2.2.2)
234234
nokogiri (>= 1.8.5)
235235
racc
236236
rack (>= 2.2.4, < 3.2)
@@ -239,38 +239,38 @@ GEM
239239
rails-dom-testing (~> 2.2)
240240
rails-html-sanitizer (~> 1.6)
241241
useragent (~> 0.16)
242-
actiontext (7.2.2.1)
243-
actionpack (= 7.2.2.1)
244-
activerecord (= 7.2.2.1)
245-
activestorage (= 7.2.2.1)
246-
activesupport (= 7.2.2.1)
242+
actiontext (7.2.2.2)
243+
actionpack (= 7.2.2.2)
244+
activerecord (= 7.2.2.2)
245+
activestorage (= 7.2.2.2)
246+
activesupport (= 7.2.2.2)
247247
globalid (>= 0.6.0)
248248
nokogiri (>= 1.8.5)
249-
actionview (7.2.2.1)
250-
activesupport (= 7.2.2.1)
249+
actionview (7.2.2.2)
250+
activesupport (= 7.2.2.2)
251251
builder (~> 3.1)
252252
erubi (~> 1.11)
253253
rails-dom-testing (~> 2.2)
254254
rails-html-sanitizer (~> 1.6)
255255
active_link_to (1.0.5)
256256
actionpack
257257
addressable
258-
activejob (7.2.2.1)
259-
activesupport (= 7.2.2.1)
258+
activejob (7.2.2.2)
259+
activesupport (= 7.2.2.2)
260260
globalid (>= 0.3.6)
261-
activemodel (7.2.2.1)
262-
activesupport (= 7.2.2.1)
263-
activerecord (7.2.2.1)
264-
activemodel (= 7.2.2.1)
265-
activesupport (= 7.2.2.1)
261+
activemodel (7.2.2.2)
262+
activesupport (= 7.2.2.2)
263+
activerecord (7.2.2.2)
264+
activemodel (= 7.2.2.2)
265+
activesupport (= 7.2.2.2)
266266
timeout (>= 0.4.0)
267-
activestorage (7.2.2.1)
268-
actionpack (= 7.2.2.1)
269-
activejob (= 7.2.2.1)
270-
activerecord (= 7.2.2.1)
271-
activesupport (= 7.2.2.1)
267+
activestorage (7.2.2.2)
268+
actionpack (= 7.2.2.2)
269+
activejob (= 7.2.2.2)
270+
activerecord (= 7.2.2.2)
271+
activesupport (= 7.2.2.2)
272272
marcel (~> 1.0)
273-
activesupport (7.2.2.1)
273+
activesupport (7.2.2.2)
274274
base64
275275
benchmark (>= 0.3)
276276
bigdecimal
@@ -342,7 +342,7 @@ GEM
342342
cmdparse (3.0.7)
343343
commonmarker (0.23.11)
344344
concurrent-ruby (1.3.5)
345-
connection_pool (2.5.3)
345+
connection_pool (2.5.4)
346346
crack (1.0.0)
347347
bigdecimal
348348
rexml
@@ -555,7 +555,7 @@ GEM
555555
bigdecimal (~> 3.1)
556556
net-http (0.6.0)
557557
uri
558-
net-imap (0.5.9)
558+
net-imap (0.5.10)
559559
date
560560
net-protocol
561561
net-pop (0.1.2)
@@ -610,6 +610,7 @@ GEM
610610
openssl (3.3.0)
611611
orm_adapter (0.5.0)
612612
ostruct (0.6.3)
613+
package_json (0.1.0)
613614
paper_trail (16.0.0)
614615
activerecord (>= 6.1)
615616
request_store (~> 1.4)
@@ -661,20 +662,20 @@ GEM
661662
rackup (1.0.1)
662663
rack (< 3)
663664
webrick
664-
rails (7.2.2.1)
665-
actioncable (= 7.2.2.1)
666-
actionmailbox (= 7.2.2.1)
667-
actionmailer (= 7.2.2.1)
668-
actionpack (= 7.2.2.1)
669-
actiontext (= 7.2.2.1)
670-
actionview (= 7.2.2.1)
671-
activejob (= 7.2.2.1)
672-
activemodel (= 7.2.2.1)
673-
activerecord (= 7.2.2.1)
674-
activestorage (= 7.2.2.1)
675-
activesupport (= 7.2.2.1)
665+
rails (7.2.2.2)
666+
actioncable (= 7.2.2.2)
667+
actionmailbox (= 7.2.2.2)
668+
actionmailer (= 7.2.2.2)
669+
actionpack (= 7.2.2.2)
670+
actiontext (= 7.2.2.2)
671+
actionview (= 7.2.2.2)
672+
activejob (= 7.2.2.2)
673+
activemodel (= 7.2.2.2)
674+
activerecord (= 7.2.2.2)
675+
activestorage (= 7.2.2.2)
676+
activesupport (= 7.2.2.2)
676677
bundler (>= 1.15.0)
677-
railties (= 7.2.2.1)
678+
railties (= 7.2.2.2)
678679
rails-controller-testing (1.0.5)
679680
actionpack (>= 5.0.1.rc1)
680681
actionview (>= 5.0.1.rc1)
@@ -689,9 +690,9 @@ GEM
689690
rails-i18n (7.0.10)
690691
i18n (>= 0.7, < 2)
691692
railties (>= 6.0.0, < 8)
692-
railties (7.2.2.1)
693-
actionpack (= 7.2.2.1)
694-
activesupport (= 7.2.2.1)
693+
railties (7.2.2.2)
694+
actionpack (= 7.2.2.2)
695+
activesupport (= 7.2.2.2)
695696
irb (~> 1.13)
696697
rackup (>= 1.0.0)
697698
rake (>= 12.2)
@@ -822,8 +823,9 @@ GEM
822823
rubyzip (>= 1.2.2, < 3.0)
823824
websocket (~> 1.0)
824825
semantic_range (3.1.0)
825-
shakapacker (7.1.0)
826+
shakapacker (8.3.0)
826827
activesupport (>= 5.2)
828+
package_json
827829
rack-proxy (>= 0.6.1)
828830
railties (>= 5.2)
829831
semantic_range (>= 2.3.0)

RELEASE_NOTES.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ You can read more about the Rails upgrade process on the following PRs:
110110

111111
### 1.5. Run these commands
112112

113+
Shakapacker has been upgraded to the latest version. See section 3.10 for troubleshooting errors.
114+
113115
```console
114116
bundle update decidim
115117
bin/rails decidim:upgrade
@@ -422,7 +424,31 @@ This also includes renderers and parsers which used the hashtag object to render
422424

423425
You can read more about this change on PR [#14803](https://github.com/decidim/decidim/pull/14803) and [#14868](https://github.com/decidim/decidim/pull/14868)
424426

425-
### 3.9. [[TITLE OF THE ACTION]]
427+
### 3.10. Shakapacker upgrade
428+
429+
In our efforts to continuously upgrade the platform, we are upgrading Shakapacker to the latest version available. That is v8.3.0 at the time of this release. If you encounter any error similar to this one:
430+
431+
```console
432+
**ERROR** Shakapacker: Shakapacker gem and node package versions do not match
433+
Detected: 7.x.x
434+
gem: 8.3.0
435+
Ensure the installed version of the gem is the same as the version of
436+
your installed node package.
437+
Do not use >= or ~> in your Gemfile for shakapacker without a lockfile.
438+
Do not use ^ or ~ in your package.json for shakapacker without a lockfile.
439+
```
440+
441+
Please check if you have the following file `package.json`, and edit the version:
442+
443+
```json
444+
"shakapacker": "~8.3.0",
445+
```
446+
447+
If the file does not exist, check and perform the same changes in the `packages/webpacker/package.json`
448+
449+
You can read more about this change on PR [#15016](https://github.com/decidim/decidim/pull/15016).
450+
451+
### 3.11. [[TITLE OF THE ACTION]]
426452

427453
You can read more about this change on PR [#XXXX](https://github.com/decidim/decidim/pull/XXXX).
428454

decidim-accountability/config/assets.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
base_path = File.expand_path("..", __dir__)
44

5-
Decidim::Webpacker.register_path("#{base_path}/app/packs")
6-
Decidim::Webpacker.register_entrypoints(
5+
Decidim::Shakapacker.register_path("#{base_path}/app/packs")
6+
Decidim::Shakapacker.register_entrypoints(
77
decidim_accountability: "#{base_path}/app/packs/entrypoints/decidim_accountability.js",
88
decidim_accountability_admin_form: "#{base_path}/app/packs/entrypoints/decidim_accountability_admin_form.js",
99
decidim_accountability_admin_imports: "#{base_path}/app/packs/entrypoints/decidim_accountability_admin_imports.js",

decidim-accountability/lib/decidim/accountability/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Engine < ::Rails::Engine
4242
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Accountability::Engine.root}/app/views")
4343
end
4444

45-
initializer "decidim_accountability.webpacker.assets_path" do
45+
initializer "decidim_accountability.shakapacker.assets_path" do
4646
Decidim.register_assets_path File.expand_path("app/packs", root)
4747
end
4848
end

decidim-admin/config/assets.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
base_path = File.expand_path("..", __dir__)
44

5-
Decidim::Webpacker.register_path("#{base_path}/app/packs")
6-
Decidim::Webpacker.register_entrypoints(
5+
Decidim::Shakapacker.register_path("#{base_path}/app/packs")
6+
Decidim::Shakapacker.register_entrypoints(
77
decidim_admin_overrides: "#{base_path}/app/packs/entrypoints/decidim_admin_overrides.scss",
88
decidim_admin: "#{base_path}/app/packs/entrypoints/decidim_admin.js"
99
)

decidim-admin/lib/decidim/admin/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Engine < ::Rails::Engine
8080
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Admin::Engine.root}/app/views") # for partials
8181
end
8282

83-
initializer "decidim_admin.webpacker.assets_path" do
83+
initializer "decidim_admin.shakapacker.assets_path" do
8484
Decidim.register_assets_path File.expand_path("app/packs", root)
8585
end
8686

decidim-ai/lib/decidim/ai/spam_detection/resource/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def error_message(klass, method_name)
4040
end
4141

4242
def resource_hidden?(resource)
43-
resource.class.included_modules.include?(Decidim::Reportable) && resource.hidden? && report_reasons.exclude?(resource.reports&.last&.reason)
43+
resource.class.included_modules.include?(Decidim::Reportable) && resource.hidden? && report_reasons.include?(resource.reports&.last&.reason)
4444
end
4545

4646
def report_reasons

0 commit comments

Comments
 (0)