decidim 0.28.5 → 0.29.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/decidim-core/lib/decidim/webpacker/esbuild.config.js +14 -0
  3. data/decidim-core/lib/decidim/webpacker/shakapacker.yml +2 -2
  4. data/decidim-core/lib/decidim/webpacker/tsconfig.json +11 -0
  5. data/decidim-core/lib/decidim/webpacker/webpack/custom.js +13 -35
  6. data/decidim.gemspec +3 -2
  7. data/docs/README.adoc +2 -2
  8. data/docs/antora.yml +1 -1
  9. data/docs/modules/configure/pages/environment_variables.adoc +6 -102
  10. data/docs/modules/configure/pages/index.adoc +1 -1
  11. data/docs/modules/configure/pages/initializer.adoc +1 -1
  12. data/docs/modules/customize/pages/admin_filters.adoc +32 -0
  13. data/docs/modules/customize/pages/data_consent.adoc +1 -1
  14. data/docs/modules/customize/pages/index.adoc +2 -1
  15. data/docs/modules/customize/pages/javascript.adoc +2 -2
  16. data/docs/modules/customize/pages/logic.adoc +1 -1
  17. data/docs/modules/customize/pages/social_shares.adoc +2 -2
  18. data/docs/modules/customize/pages/styles.adoc +3 -3
  19. data/docs/modules/customize/pages/views.adoc +1 -1
  20. data/docs/modules/develop/pages/authorable.adoc +3 -3
  21. data/docs/modules/develop/pages/backports.adoc +6 -5
  22. data/docs/modules/develop/pages/c4_component.adoc +2 -7
  23. data/docs/modules/develop/pages/c4_container.adoc +1 -3
  24. data/docs/modules/develop/pages/c4_context.adoc +0 -2
  25. data/docs/modules/develop/pages/classes/commands.adoc +204 -25
  26. data/docs/modules/develop/pages/classes/jobs.adoc +1 -1
  27. data/docs/modules/develop/pages/components.adoc +5 -5
  28. data/docs/modules/develop/pages/custom_seed_data.adoc +1 -1
  29. data/docs/modules/develop/pages/embeddable.adoc +1 -1
  30. data/docs/modules/develop/pages/endorsable.adoc +2 -2
  31. data/docs/modules/develop/pages/guide_conventions.adoc +6 -6
  32. data/docs/modules/develop/pages/guide_development_app.adoc +2 -1
  33. data/docs/modules/develop/pages/guide_example_apps.adoc +1 -1
  34. data/docs/modules/develop/pages/guide_github_projects.adoc +1 -1
  35. data/docs/modules/develop/pages/guide_migrate_webpacker_app.adoc +2 -2
  36. data/docs/modules/develop/pages/guide_migrate_webpacker_module.adoc +1 -1
  37. data/docs/modules/develop/pages/maintainers/releases.adoc +2 -4
  38. data/docs/modules/develop/pages/managing_translations_i18n.adoc +2 -2
  39. data/docs/modules/develop/pages/maps.adoc +5 -5
  40. data/docs/modules/develop/pages/metrics.adoc +1 -1
  41. data/docs/modules/develop/pages/modules.adoc +1 -1
  42. data/docs/modules/develop/pages/newsletter_templates.adoc +2 -2
  43. data/docs/modules/develop/pages/notifications.adoc +124 -1
  44. data/docs/modules/develop/pages/reminders.adoc +2 -2
  45. data/docs/modules/develop/pages/reportable.adoc +1 -1
  46. data/docs/modules/develop/pages/testing.adoc +2 -2
  47. data/docs/modules/develop/pages/troubleshooting_metrics.adoc +2 -2
  48. data/docs/modules/develop/pages/view_models_aka_cells.adoc +1 -1
  49. data/docs/modules/install/pages/checklist.adoc +3 -2
  50. data/docs/modules/install/pages/empty-database.adoc +3 -3
  51. data/docs/modules/install/pages/index.adoc +5 -5
  52. data/docs/modules/install/pages/manual.adoc +3 -2
  53. data/docs/modules/install/pages/update.adoc +2 -2
  54. data/docs/modules/install/partials/version_matrix.adoc +2 -4
  55. data/docs/modules/services/pages/activestorage.adoc +1 -1
  56. data/docs/modules/services/pages/index.adoc +0 -1
  57. data/docs/modules/services/pages/maps.adoc +2 -2
  58. data/docs/modules/services/pages/sms.adoc +1 -1
  59. data/docs/modules/services/pages/social_providers.adoc +3 -3
  60. data/lib/decidim/gem_manager.rb +2 -0
  61. data/lib/decidim/version.rb +1 -1
  62. data/package-lock.json +6372 -19624
  63. data/package.json +4 -6
  64. data/packages/browserslist-config/package.json +2 -2
  65. data/packages/core/package.json +13 -13
  66. data/packages/dev/package.json +2 -2
  67. data/packages/eslint-config/index.js +58 -82
  68. data/packages/eslint-config/package.json +2 -2
  69. data/packages/prettier-config/package.json +2 -2
  70. data/packages/stylelint-config/package.json +2 -2
  71. data/packages/webpacker/index.js +2 -1
  72. data/packages/webpacker/package.json +6 -12
  73. metadata +62 -62
  74. data/babel.config.json +0 -25
  75. data/docs/modules/develop/pages/consulations_removal.bash +0 -117
  76. data/docs/modules/services/pages/elections_bulletin_board.adoc +0 -55
  77. data/lib/decidim/backporter.rb +0 -98
  78. data/lib/decidim/backports_reporter/cli_report.rb +0 -44
  79. data/lib/decidim/backports_reporter/csv_report.rb +0 -32
  80. data/lib/decidim/backports_reporter/report.rb +0 -46
  81. data/lib/decidim/git_backport_checker.rb +0 -70
  82. data/lib/decidim/git_backport_manager.rb +0 -179
  83. data/lib/decidim/github_manager/poster.rb +0 -70
  84. data/lib/decidim/github_manager/querier/base.rb +0 -78
  85. data/lib/decidim/github_manager/querier/by_issue_id.rb +0 -46
  86. data/lib/decidim/github_manager/querier/by_label.rb +0 -95
  87. data/lib/decidim/github_manager/querier/related_issues.rb +0 -51
  88. data/lib/decidim/github_manager/querier.rb +0 -20
  89. data/packages/elections/package.json +0 -17
  90. data/packages/webpacker/package-lock.json +0 -18045
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.5
4
+ version: 0.29.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-02-12 00:00:00.000000000 Z
13
+ date: 2024-07-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-accountability
@@ -18,266 +18,280 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.28.5
21
+ version: 0.29.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.28.5
28
+ version: 0.29.0.rc1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-admin
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.28.5
35
+ version: 0.29.0.rc1
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.28.5
42
+ version: 0.29.0.rc1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-api
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.28.5
49
+ version: 0.29.0.rc1
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.28.5
56
+ version: 0.29.0.rc1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-assemblies
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.28.5
63
+ version: 0.29.0.rc1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.28.5
70
+ version: 0.29.0.rc1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-blogs
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.28.5
77
+ version: 0.29.0.rc1
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.28.5
84
+ version: 0.29.0.rc1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-budgets
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.28.5
91
+ version: 0.29.0.rc1
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.28.5
98
+ version: 0.29.0.rc1
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-comments
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.28.5
105
+ version: 0.29.0.rc1
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.28.5
112
+ version: 0.29.0.rc1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-core
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.28.5
119
+ version: 0.29.0.rc1
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 0.28.5
126
+ version: 0.29.0.rc1
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-debates
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.28.5
133
+ version: 0.29.0.rc1
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.28.5
140
+ version: 0.29.0.rc1
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: decidim-forms
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - '='
146
146
  - !ruby/object:Gem::Version
147
- version: 0.28.5
147
+ version: 0.29.0.rc1
148
148
  type: :runtime
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - '='
153
153
  - !ruby/object:Gem::Version
154
- version: 0.28.5
154
+ version: 0.29.0.rc1
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: decidim-generators
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - '='
160
160
  - !ruby/object:Gem::Version
161
- version: 0.28.5
161
+ version: 0.29.0.rc1
162
162
  type: :runtime
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - '='
167
167
  - !ruby/object:Gem::Version
168
- version: 0.28.5
168
+ version: 0.29.0.rc1
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: decidim-meetings
171
171
  requirement: !ruby/object:Gem::Requirement
172
172
  requirements:
173
173
  - - '='
174
174
  - !ruby/object:Gem::Version
175
- version: 0.28.5
175
+ version: 0.29.0.rc1
176
176
  type: :runtime
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - '='
181
181
  - !ruby/object:Gem::Version
182
- version: 0.28.5
182
+ version: 0.29.0.rc1
183
183
  - !ruby/object:Gem::Dependency
184
184
  name: decidim-pages
185
185
  requirement: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - '='
188
188
  - !ruby/object:Gem::Version
189
- version: 0.28.5
189
+ version: 0.29.0.rc1
190
190
  type: :runtime
191
191
  prerelease: false
192
192
  version_requirements: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - '='
195
195
  - !ruby/object:Gem::Version
196
- version: 0.28.5
196
+ version: 0.29.0.rc1
197
197
  - !ruby/object:Gem::Dependency
198
198
  name: decidim-participatory_processes
199
199
  requirement: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - '='
202
202
  - !ruby/object:Gem::Version
203
- version: 0.28.5
203
+ version: 0.29.0.rc1
204
204
  type: :runtime
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - '='
209
209
  - !ruby/object:Gem::Version
210
- version: 0.28.5
210
+ version: 0.29.0.rc1
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: decidim-proposals
213
213
  requirement: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - '='
216
216
  - !ruby/object:Gem::Version
217
- version: 0.28.5
217
+ version: 0.29.0.rc1
218
218
  type: :runtime
219
219
  prerelease: false
220
220
  version_requirements: !ruby/object:Gem::Requirement
221
221
  requirements:
222
222
  - - '='
223
223
  - !ruby/object:Gem::Version
224
- version: 0.28.5
224
+ version: 0.29.0.rc1
225
225
  - !ruby/object:Gem::Dependency
226
226
  name: decidim-sortitions
227
227
  requirement: !ruby/object:Gem::Requirement
228
228
  requirements:
229
229
  - - '='
230
230
  - !ruby/object:Gem::Version
231
- version: 0.28.5
231
+ version: 0.29.0.rc1
232
232
  type: :runtime
233
233
  prerelease: false
234
234
  version_requirements: !ruby/object:Gem::Requirement
235
235
  requirements:
236
236
  - - '='
237
237
  - !ruby/object:Gem::Version
238
- version: 0.28.5
238
+ version: 0.29.0.rc1
239
239
  - !ruby/object:Gem::Dependency
240
240
  name: decidim-surveys
241
241
  requirement: !ruby/object:Gem::Requirement
242
242
  requirements:
243
243
  - - '='
244
244
  - !ruby/object:Gem::Version
245
- version: 0.28.5
245
+ version: 0.29.0.rc1
246
246
  type: :runtime
247
247
  prerelease: false
248
248
  version_requirements: !ruby/object:Gem::Requirement
249
249
  requirements:
250
250
  - - '='
251
251
  - !ruby/object:Gem::Version
252
- version: 0.28.5
252
+ version: 0.29.0.rc1
253
253
  - !ruby/object:Gem::Dependency
254
254
  name: decidim-system
255
255
  requirement: !ruby/object:Gem::Requirement
256
256
  requirements:
257
257
  - - '='
258
258
  - !ruby/object:Gem::Version
259
- version: 0.28.5
259
+ version: 0.29.0.rc1
260
260
  type: :runtime
261
261
  prerelease: false
262
262
  version_requirements: !ruby/object:Gem::Requirement
263
263
  requirements:
264
264
  - - '='
265
265
  - !ruby/object:Gem::Version
266
- version: 0.28.5
266
+ version: 0.29.0.rc1
267
+ - !ruby/object:Gem::Dependency
268
+ name: decidim-templates
269
+ requirement: !ruby/object:Gem::Requirement
270
+ requirements:
271
+ - - '='
272
+ - !ruby/object:Gem::Version
273
+ version: 0.29.0.rc1
274
+ type: :runtime
275
+ prerelease: false
276
+ version_requirements: !ruby/object:Gem::Requirement
277
+ requirements:
278
+ - - '='
279
+ - !ruby/object:Gem::Version
280
+ version: 0.29.0.rc1
267
281
  - !ruby/object:Gem::Dependency
268
282
  name: decidim-verifications
269
283
  requirement: !ruby/object:Gem::Requirement
270
284
  requirements:
271
285
  - - '='
272
286
  - !ruby/object:Gem::Version
273
- version: 0.28.5
287
+ version: 0.29.0.rc1
274
288
  type: :runtime
275
289
  prerelease: false
276
290
  version_requirements: !ruby/object:Gem::Requirement
277
291
  requirements:
278
292
  - - '='
279
293
  - !ruby/object:Gem::Version
280
- version: 0.28.5
294
+ version: 0.29.0.rc1
281
295
  - !ruby/object:Gem::Dependency
282
296
  name: bundler
283
297
  requirement: !ruby/object:Gem::Requirement
@@ -337,11 +351,12 @@ extra_rdoc_files: []
337
351
  files:
338
352
  - LICENSE-AGPLv3.txt
339
353
  - Rakefile
340
- - babel.config.json
341
354
  - decidim-core/lib/decidim/webpacker/configuration.rb
355
+ - decidim-core/lib/decidim/webpacker/esbuild.config.js
342
356
  - decidim-core/lib/decidim/webpacker/postcss.config.js
343
357
  - decidim-core/lib/decidim/webpacker/runner.rb
344
358
  - decidim-core/lib/decidim/webpacker/shakapacker.yml
359
+ - decidim-core/lib/decidim/webpacker/tsconfig.json
345
360
  - decidim-core/lib/decidim/webpacker/webpack/.modernizrrc
346
361
  - decidim-core/lib/decidim/webpacker/webpack/custom.js
347
362
  - decidim-core/lib/decidim/webpacker/webpack/webpack.config.js
@@ -359,6 +374,7 @@ files:
359
374
  - docs/modules/customize/assets/images/organization-colors.png
360
375
  - docs/modules/customize/assets/images/original_user_menu.png
361
376
  - docs/modules/customize/assets/images/social-share-modal-default.png
377
+ - docs/modules/customize/pages/admin_filters.adoc
362
378
  - docs/modules/customize/pages/authorizations.adoc
363
379
  - docs/modules/customize/pages/code.adoc
364
380
  - docs/modules/customize/pages/content_security_policy.adoc
@@ -398,7 +414,6 @@ files:
398
414
  - docs/modules/develop/pages/classes/presenters.adoc
399
415
  - docs/modules/develop/pages/classes/queries.adoc
400
416
  - docs/modules/develop/pages/components.adoc
401
- - docs/modules/develop/pages/consulations_removal.bash
402
417
  - docs/modules/develop/pages/content_blocks.adoc
403
418
  - docs/modules/develop/pages/content_processors.adoc
404
419
  - docs/modules/develop/pages/custom_seed_data.adoc
@@ -453,7 +468,6 @@ files:
453
468
  - docs/modules/install/partials/version_matrix.adoc
454
469
  - docs/modules/services/pages/activejob.adoc
455
470
  - docs/modules/services/pages/activestorage.adoc
456
- - docs/modules/services/pages/elections_bulletin_board.adoc
457
471
  - docs/modules/services/pages/etherpad.adoc
458
472
  - docs/modules/services/pages/index.adoc
459
473
  - docs/modules/services/pages/maps.adoc
@@ -461,19 +475,7 @@ files:
461
475
  - docs/modules/services/pages/smtp.adoc
462
476
  - docs/modules/services/pages/social_providers.adoc
463
477
  - lib/decidim.rb
464
- - lib/decidim/backporter.rb
465
- - lib/decidim/backports_reporter/cli_report.rb
466
- - lib/decidim/backports_reporter/csv_report.rb
467
- - lib/decidim/backports_reporter/report.rb
468
478
  - lib/decidim/gem_manager.rb
469
- - lib/decidim/git_backport_checker.rb
470
- - lib/decidim/git_backport_manager.rb
471
- - lib/decidim/github_manager/poster.rb
472
- - lib/decidim/github_manager/querier.rb
473
- - lib/decidim/github_manager/querier/base.rb
474
- - lib/decidim/github_manager/querier/by_issue_id.rb
475
- - lib/decidim/github_manager/querier/by_label.rb
476
- - lib/decidim/github_manager/querier/related_issues.rb
477
479
  - lib/decidim/release_manager.rb
478
480
  - lib/decidim/version.rb
479
481
  - lib/tasks/common_passwords_tasks.rake
@@ -484,7 +486,6 @@ files:
484
486
  - packages/browserslist-config/package.json
485
487
  - packages/core/package.json
486
488
  - packages/dev/package.json
487
- - packages/elections/package.json
488
489
  - packages/eslint-config/index.js
489
490
  - packages/eslint-config/package.json
490
491
  - packages/prettier-config/index.js
@@ -492,13 +493,12 @@ files:
492
493
  - packages/stylelint-config/index.js
493
494
  - packages/stylelint-config/package.json
494
495
  - packages/webpacker/index.js
495
- - packages/webpacker/package-lock.json
496
496
  - packages/webpacker/package.json
497
497
  - packages/webpacker/src/loaders/decidim-sass-loader.js
498
498
  - packages/webpacker/src/override-config.js
499
499
  homepage: https://decidim.org
500
500
  licenses:
501
- - AGPL-3.0-or-later
501
+ - AGPL-3.0
502
502
  metadata:
503
503
  bug_tracker_uri: https://github.com/decidim/decidim/issues
504
504
  documentation_uri: https://docs.decidim.org/
@@ -513,14 +513,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
513
513
  requirements:
514
514
  - - "~>"
515
515
  - !ruby/object:Gem::Version
516
- version: 3.1.0
516
+ version: 3.2.0
517
517
  required_rubygems_version: !ruby/object:Gem::Requirement
518
518
  requirements:
519
- - - ">="
519
+ - - ">"
520
520
  - !ruby/object:Gem::Version
521
- version: '0'
521
+ version: 1.3.1
522
522
  requirements: []
523
- rubygems_version: 3.3.7
523
+ rubygems_version: 3.4.10
524
524
  signing_key:
525
525
  specification_version: 4
526
526
  summary: Citizen participation framework for Ruby on Rails.
data/babel.config.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env", {
5
- "forceAllTransforms": true,
6
- "useBuiltIns": "entry",
7
- "corejs": 3,
8
- "modules": false
9
- }
10
- ],
11
- ["@babel/preset-react"]
12
- ],
13
- "plugins": [
14
- "@babel/plugin-transform-classes",
15
- [
16
- "@babel/plugin-transform-runtime",
17
- {
18
- "helpers": false,
19
- "regenerator": true,
20
- "corejs": false
21
- }
22
- ],
23
- ["@babel/plugin-transform-regenerator", { "async": false }]
24
- ]
25
- }
@@ -1,117 +0,0 @@
1
- #!/usr/bin/env bash
2
- #
3
- # Script to adapt migrations after consultations removal
4
- # We did not use any of the solutions described at the "Data migrations consistency" [0] discussion,
5
- # so when we try to run a migration in a non-existing table, it blows-up.
6
- #
7
- # This script fixes those migrations so they do not need the model in your application.
8
- #
9
- # [0] https://github.com/decidim/decidim/discussions/8068
10
- #
11
-
12
- if [ -f db/migrate/*_add_end_voting_date_to_decidim_consultations.decidim_consultations.rb ] ; then
13
- cat << 'EOFILE' > db/migrate/*_add_end_voting_date_to_decidim_consultations.decidim_consultations.rb
14
- # This migration comes from decidim_consultations (originally 20180115132000)
15
- # frozen_string_literal: true
16
-
17
- class AddEndVotingDateToDecidimConsultations < ActiveRecord::Migration[5.1]
18
- class Consultation < ApplicationRecord
19
- self.table_name = :decidim_consultations
20
- end
21
-
22
- def change
23
- add_column :decidim_consultations, :end_voting_date, :date
24
-
25
- Consultation.find_each do |consultation|
26
- consultation.end_voting_date = consultation.start_voting_date + 1.month
27
- consultation.save
28
- end
29
-
30
- change_column_null :decidim_consultations, :end_voting_date, false
31
- end
32
- end
33
- EOFILE
34
- fi
35
-
36
- if [ -f db/migrate/*_add_slug_to_decidim_consultations_questions.decidim_consultations.rb ] ; then
37
- cat << EOFILE > db/migrate/*_add_slug_to_decidim_consultations_questions.decidim_consultations.rb
38
- # This migration comes from decidim_consultations (originally 20180115170933)
39
- # frozen_string_literal: true
40
-
41
- class AddSlugToDecidimConsultationsQuestions < ActiveRecord::Migration[5.1]
42
- class Question < ApplicationRecord
43
- self.table_name = :decidim_consultations_questions
44
- end
45
-
46
- def change
47
- add_column :decidim_consultations_questions,
48
- :decidim_organization_id,
49
- :integer,
50
- index: {
51
- name: 'index_decidim_questions_on_decidim_organization_id'
52
- }
53
-
54
- add_column :decidim_consultations_questions, :slug, :string
55
-
56
- Question.find_each do |question|
57
- question.decidim_organization_id = question.consultation.decidim_organization_id
58
- question.slug = "q-#{question.id}"
59
- question.save
60
- end
61
-
62
- change_column_null :decidim_consultations_questions, :decidim_organization_id, false
63
- change_column_null :decidim_consultations_questions, :slug, false
64
-
65
- add_index :decidim_consultations_questions,
66
- [:decidim_organization_id, :slug],
67
- name: "index_unique_question_slug_and_organization",
68
- unique: true
69
- end
70
- end
71
- EOFILE
72
- fi
73
-
74
- if [ -f db/migrate/*_add_commentable_counter_cache_to_consultations.decidim_consultations.rb ] ; then
75
- cat << EOFILE > db/migrate/*_add_commentable_counter_cache_to_consultations.decidim_consultations.rb
76
- # frozen_string_literal: true
77
- # This migration comes from decidim_consultations (originally 20200827154143)
78
-
79
- class AddCommentableCounterCacheToConsultations < ActiveRecord::Migration[5.2]
80
- class Question < ApplicationRecord
81
- self.table_name = :decidim_consultations_questions
82
- end
83
-
84
- def change
85
- add_column :decidim_consultations_questions, :comments_count, :integer, null: false, default: 0, index: true
86
- Question.reset_column_information
87
- Question.find_each(&:update_comments_count)
88
- end
89
- end
90
- EOFILE
91
- fi
92
-
93
- if [ -f db/migrate/*_add_followable_counter_cache_to_consultations.decidim_consultations.rb ] ; then
94
- cat << EOFILE > db/migrate/*_add_followable_counter_cache_to_consultations.decidim_consultations.rb
95
- # frozen_string_literal: true
96
- # This migration comes from decidim_consultations (originally 20210310120626)
97
-
98
- class AddFollowableCounterCacheToConsultations < ActiveRecord::Migration[5.2]
99
- class Question < ApplicationRecord
100
- self.table_name = :decidim_consultations_questions
101
- end
102
-
103
- def change
104
- add_column :decidim_consultations_questions, :follows_count, :integer, null: false, default: 0, index: true
105
-
106
- reversible do |dir|
107
- dir.up do
108
- Question.reset_column_information
109
- Question.find_each do |record|
110
- record.class.reset_counters(record.id, :follows)
111
- end
112
- end
113
- end
114
- end
115
- end
116
- EOFILE
117
- fi
@@ -1,55 +0,0 @@
1
- = Elections Bulletin Board
2
-
3
- [CAUTION]
4
- ====
5
- This is a work in progress and is not fully working yet.
6
- ====
7
-
8
- In order to celebrate https://en.wikipedia.org/wiki/End-to-end_auditable_voting_systems[End-to-end auditable votings] using the Elections module, you will need to connect your Decidim instance with an instance of the https://github.com/decidim/decidim-bulletin-board/[Decidim Bulletin Board application].
9
-
10
- *Note*: The connected Bulletin Board instance is used by all organizations, therefore it is recommended to set it up by an independent organization.
11
-
12
- == Identification pair of keys generation
13
-
14
- The first step needed to setup the connection is to generate a pair of keys to identify the application against the Bulletin Board.
15
- This can be done running the following rake task in your application environment:
16
-
17
- [source,sh]
18
- ----
19
- bundle exec rake decidim_elections:generate_identification_keys
20
- ----
21
-
22
- This task will output the generated private and public keys. You should copy the public key and send it, together with your *Authority name* to the Bulletin Board administrator through a secure channel. Together with the key, send your *Authority name* to the Bulletin Board administrator.
23
-
24
- After that, copy the private key and store that value on the environment variable `AUTHORITY_PRIVATE_KEY` and your *Authority name* on the variable `AUTHORITY_NAME`.
25
-
26
- Ensure that the private key is not lost between deployments and servers reboots and that it can only be accessed by the application.
27
-
28
- As an administrator of the Bulletin Board, you find the steps to be taken https://github.com/decidim/decidim-bulletin-board/blob/develop/decidim-bulletin_board-app/docs/setup.md#adding-an-authority-as-a-client-of-the-bulletin-board[here].
29
-
30
- == Configuration of the Bulletin Board application
31
-
32
- The Bulletin Board administrator will store the received public key in their server and will send you back an API key.
33
- To complete the setup process you should store this API key and the Bulletin Board URL address on the environment variables `AUTHORITY_API_KEY` and `BULLETIN_BOARD_SERVER`, respectively.
34
-
35
- The following YAML snippet with all the defined environment variables should be used in the `default` block of your application `config/secrets.yml` file.
36
- Maybe this is already done, as it was included in the Decidim applications generator during the development of the Elections module.
37
-
38
- [source,yaml]
39
- ----
40
- elections:
41
- bulletin_board_server: <%= ENV["BULLETIN_BOARD_SERVER"] %>
42
- bulletin_board_public_key: <%= ENV["BULLETIN_BOARD_PUBLIC_KEY"] %>
43
- authority_api_key: <%= ENV["AUTHORITY_API_KEY"] %>
44
- authority_name: <%= ENV["AUTHORITY_NAME"] %>
45
- authority_private_key: <%= ENV["AUTHORITY_PRIVATE_KEY"] %>
46
- scheme_name: <%= ENV["ELECTIONS_SCHEME_NAME"] %>
47
- number_of_trustees: <%= ENV["ELECTIONS_NUMBER_OF_TRUSTEES"] %>
48
- quorum: <%= ENV["ELECTIONS_QUORUM"] %>
49
- ----
50
-
51
- After restarting the Decidim instance, administrator users will be able to create elections on the configured Bulletin Board.
52
-
53
- == Scheduled tasks
54
-
55
- A *crontab* line must be added to your server to be able to open and close the Ballot Box for the elections automatically. You could use https://github.com/javan/whenever[Whenever] to manage it directly from the APP. You probably want to schedule a `bundle exec rake decidim_elections:scheduled_tasks` every hour.