decidim-participatory_processes 0.29.5 → 0.30.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 (114) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/participatory_process_groups/process_filters_cell.rb +4 -5
  3. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb +1 -1
  4. data/app/cells/decidim/participatory_processes/process_dropdown_metadata_cell.rb +7 -0
  5. data/app/cells/decidim/participatory_processes/process_filters/show.erb +0 -1
  6. data/app/cells/decidim/participatory_processes/process_filters_cell.rb +6 -32
  7. data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +2 -57
  8. data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +3 -3
  9. data/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb +0 -1
  10. data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +3 -3
  11. data/app/controllers/decidim/participatory_processes/admin/component_share_tokens_controller.rb +18 -0
  12. data/app/controllers/decidim/participatory_processes/admin/participatory_process_share_tokens_controller.rb +16 -0
  13. data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +15 -3
  14. data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +2 -4
  15. data/app/controllers/decidim/participatory_processes/participatory_space_private_users_controller.rb +27 -0
  16. data/app/forms/decidim/participatory_processes/admin/participatory_process_copy_form.rb +0 -2
  17. data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -33
  18. data/app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb +0 -1
  19. data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +28 -20
  20. data/app/jobs/decidim/participatory_processes/change_active_step_job.rb +1 -1
  21. data/app/models/decidim/participatory_process.rb +19 -3
  22. data/app/permissions/decidim/participatory_processes/permissions.rb +18 -21
  23. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_presenter.rb +1 -1
  24. data/app/queries/decidim/participatory_processes/metrics/participatory_process_followers_metric_measure.rb +2 -2
  25. data/app/queries/decidim/participatory_processes/metrics/participatory_processes_metric_manage.rb +2 -2
  26. data/app/serializers/decidim/participatory_processes/open_data_participatory_process_serializer.rb +47 -0
  27. data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +4 -49
  28. data/app/serializers/decidim/participatory_processes/participatory_process_serializer.rb +17 -126
  29. data/app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb +0 -8
  30. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +0 -1
  31. data/app/views/decidim/participatory_processes/admin/participatory_process_imports/_form.html.erb +0 -3
  32. data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +25 -60
  33. data/app/views/decidim/participatory_processes/admin/participatory_processes/_process_row.html.erb +83 -0
  34. data/app/views/decidim/participatory_processes/admin/participatory_processes/_processes_thead.html.erb +19 -0
  35. data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +16 -84
  36. data/app/views/decidim/participatory_processes/admin/participatory_processes/manage_trash.html.erb +20 -0
  37. data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +3 -1
  38. data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +3 -1
  39. data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +6 -6
  40. data/app/views/decidim/participatory_processes/participatory_space_private_users/index.html.erb +22 -0
  41. data/config/assets.rb +1 -2
  42. data/config/locales/ar.yml +6 -17
  43. data/config/locales/bg.yml +6 -36
  44. data/config/locales/bs-BA.yml +0 -9
  45. data/config/locales/ca.yml +63 -41
  46. data/config/locales/cs.yml +63 -41
  47. data/config/locales/de.yml +72 -50
  48. data/config/locales/el.yml +6 -37
  49. data/config/locales/en.yml +60 -38
  50. data/config/locales/es-MX.yml +65 -43
  51. data/config/locales/es-PY.yml +65 -43
  52. data/config/locales/es.yml +64 -42
  53. data/config/locales/eu.yml +144 -122
  54. data/config/locales/fi-plain.yml +63 -41
  55. data/config/locales/fi.yml +60 -38
  56. data/config/locales/fr-CA.yml +26 -40
  57. data/config/locales/fr.yml +26 -40
  58. data/config/locales/ga-IE.yml +0 -14
  59. data/config/locales/gl.yml +6 -19
  60. data/config/locales/hu.yml +6 -37
  61. data/config/locales/id-ID.yml +6 -17
  62. data/config/locales/is-IS.yml +2 -16
  63. data/config/locales/it.yml +6 -37
  64. data/config/locales/ja.yml +62 -40
  65. data/config/locales/lb.yml +2 -21
  66. data/config/locales/lt.yml +6 -36
  67. data/config/locales/lv.yml +6 -20
  68. data/config/locales/nl.yml +6 -22
  69. data/config/locales/no.yml +6 -36
  70. data/config/locales/pl.yml +7 -37
  71. data/config/locales/pt-BR.yml +6 -34
  72. data/config/locales/pt.yml +6 -22
  73. data/config/locales/ro-RO.yml +7 -39
  74. data/config/locales/ru.yml +6 -17
  75. data/config/locales/sk.yml +7 -21
  76. data/config/locales/sr-CS.yml +0 -9
  77. data/config/locales/sv.yml +57 -41
  78. data/config/locales/tr-TR.yml +6 -22
  79. data/config/locales/uk.yml +6 -17
  80. data/config/locales/zh-CN.yml +6 -20
  81. data/config/locales/zh-TW.yml +6 -37
  82. data/db/migrate/20210310120750_add_followable_counter_cache_to_participatory_processes.rb +1 -1
  83. data/db/migrate/20240822161355_add_deleted_at_to_decidim_participatory_processes.rb +8 -0
  84. data/db/migrate/20241108141423_remove_column_show_metrics_from_participatory_processes.rb +7 -0
  85. data/db/migrate/20241108141514_remove_column_banner_image_from_participatory_processes.rb +7 -0
  86. data/db/migrate/20241108141605_remove_column_show_statistics_from_participatory_processes.rb +7 -0
  87. data/decidim-participatory_processes.gemspec +1 -1
  88. data/lib/decidim/api/participatory_process_group_type.rb +3 -3
  89. data/lib/decidim/api/participatory_process_step_type.rb +7 -9
  90. data/lib/decidim/api/participatory_process_type.rb +18 -23
  91. data/lib/decidim/api/participatory_process_type_type.rb +3 -3
  92. data/lib/decidim/participatory_processes/admin_engine.rb +85 -59
  93. data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +11 -0
  94. data/lib/decidim/participatory_processes/engine.rb +7 -0
  95. data/lib/decidim/participatory_processes/menu.rb +9 -17
  96. data/lib/decidim/participatory_processes/participatory_space.rb +5 -2
  97. data/lib/decidim/participatory_processes/seeds.rb +8 -16
  98. data/lib/decidim/participatory_processes/test/factories.rb +14 -14
  99. data/lib/decidim/participatory_processes/version.rb +1 -1
  100. metadata +24 -26
  101. data/app/cells/decidim/participatory_processes/process_filters/type_filter.erb +0 -17
  102. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_type.rb +0 -17
  103. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_type.rb +0 -13
  104. data/app/controllers/decidim/participatory_processes/admin/categories_controller.rb +0 -13
  105. data/app/controllers/decidim/participatory_processes/admin/participatory_process_types_controller.rb +0 -117
  106. data/app/forms/decidim/participatory_processes/admin/participatory_process_type_form.rb +0 -20
  107. data/app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb +0 -24
  108. data/app/packs/entrypoints/decidim_participatory_processes_admin.js +0 -1
  109. data/app/packs/src/decidim/participatory_processes/admin/participatory_processes.js +0 -18
  110. data/app/views/decidim/participatory_processes/admin/participatory_process_types/_form.html.erb +0 -9
  111. data/app/views/decidim/participatory_processes/admin/participatory_process_types/edit.html.erb +0 -18
  112. data/app/views/decidim/participatory_processes/admin/participatory_process_types/index.html.erb +0 -58
  113. data/app/views/decidim/participatory_processes/admin/participatory_process_types/new.html.erb +0 -18
  114. data/config/locales/ca-IT.yml +0 -524
@@ -23,9 +23,6 @@ tr:
23
23
  promoted: Tanıtılan
24
24
  published_at: Yayınlandı
25
25
  related_process_ids: İlgili süreçler
26
- scope_id: Kapsam
27
- scope_type_max_depth_id: Kapsam filtre derinliği
28
- scopes_enabled: Kapsamlar etkin
29
26
  short_description: Kısa Açıklama
30
27
  slug: URL özel bilgisi
31
28
  start_date: Başlangıç tarihi
@@ -53,8 +50,6 @@ tr:
53
50
  short_description: Kısa Açıklama
54
51
  start_date: Başlangıç tarihi
55
52
  title: Başlık
56
- participatory_process_type:
57
- title: Başlık
58
53
  participatory_process_user_role:
59
54
  email: E-posta
60
55
  name: isim
@@ -102,12 +97,9 @@ tr:
102
97
  attachment_collections: Klasörler
103
98
  attachment_files: Dosyalar
104
99
  attachments: Ekler
105
- categories: Kategoriler
106
100
  components: Bileşenler
107
101
  info: Süreç Hakkında
108
- landing_page: Açılış sayfası
109
102
  moderations: Denetimler
110
- private_users: Özel Kullanıcılar
111
103
  process_admins: İşlemi gerçekleştiren kullanıcılar
112
104
  steps: adımlar
113
105
  models:
@@ -129,10 +121,6 @@ tr:
129
121
  start_date: Başlangıç tarihi
130
122
  title: Başlık
131
123
  name: Katılımcı süreç adımı
132
- participatory_process_type:
133
- fields:
134
- created_at: Düzenlendi
135
- title: Başlık
136
124
  participatory_process_user_role:
137
125
  fields:
138
126
  email: E-posta
@@ -151,9 +139,10 @@ tr:
151
139
  participatory_process_copies:
152
140
  new:
153
141
  copy: kopya
142
+ select: Çoğaltmak istediğiniz verileri seçin
143
+ title: Yinelenen katılımcı süreç
154
144
  participatory_process_groups:
155
145
  destroy:
156
- error: Katılımcı süreç grubu yok edilirken bir hata oluştu.
157
146
  success: Katılımcı süreç grubu başarıyla silindi.
158
147
  edit:
159
148
  title: İşlem grubunu düzenle
@@ -203,11 +192,6 @@ tr:
203
192
  update:
204
193
  error: Bu katılımcı süreç adımı güncellenirken bir hata oluştu.
205
194
  success: Katılımcı süreç adımı başarıyla güncellendi.
206
- participatory_process_types:
207
- edit:
208
- update: Güncelleştirme
209
- new:
210
- create: yaratmak
211
195
  participatory_process_user_roles:
212
196
  create:
213
197
  error: Bu katılımcı süreç için bir kullanıcı eklenirken bir hata oluştu.
@@ -242,6 +226,10 @@ tr:
242
226
  update:
243
227
  error: Bu katılımcı süreci güncellerken bir hata oluştu.
244
228
  success: Katılımcı süreç başarıyla güncellendi.
229
+ participatory_processes_copies:
230
+ create:
231
+ error: Bu katılımcı süreci çoğaltırken bir hata oluştu.
232
+ success: Katılımcı süreç başarıyla kopyalandı.
245
233
  participatory_processes_group:
246
234
  create:
247
235
  error: Yeni bir katılımcı süreç grubu oluştururken bir hata oluştu.
@@ -346,13 +334,9 @@ tr:
346
334
  form:
347
335
  announcement_help: Buraya girdiğiniz metin, işlem bilgilerinin hemen altındaki kullanıcıya gösterilecektir.
348
336
  duration: süre
349
- filters: Filtreler
350
337
  images: Görüntüler
351
338
  metadata: Meta veri
352
- other: Diğer
353
339
  related_processes: İlgili süreçler
354
- scope_type_max_depth_help: Kapsam filtresi derinliğini sınırlayın; Filtre genelden seçilen kapsam türüne kadar gösterilecektir.
355
- select_an_area: Bir alan seçin
356
340
  select_process_group: Bir işlem grubu seçin
357
341
  title: Genel bilgi
358
342
  content_blocks:
@@ -21,7 +21,6 @@ uk:
21
21
  promoted: Висвітлено
22
22
  published_at: 'Оприлюднено:'
23
23
  related_process_ids: Супутні рухи
24
- scopes_enabled: Обсяги увімкнено
25
24
  short_description: Стислий опис
26
25
  slug: Скорочена веб-адреса
27
26
  start_date: Дата початку
@@ -38,8 +37,6 @@ uk:
38
37
  short_description: Стислий опис
39
38
  start_date: Дата початку
40
39
  title: Назва
41
- participatory_process_type:
42
- title: Назва
43
40
  participatory_process_user_role:
44
41
  email: Адреса електронної пошти
45
42
  name: Ім'я
@@ -88,10 +85,8 @@ uk:
88
85
  attachment_collections: Теки
89
86
  attachment_files: Вкладені файли
90
87
  attachments: Вкладені файли
91
- categories: Категорії
92
88
  components: Складові
93
89
  moderations: Дії з модерації
94
- private_users: Приватні учасники
95
90
  process_admins: Учасники руху
96
91
  steps: Кроки
97
92
  models:
@@ -110,10 +105,6 @@ uk:
110
105
  start_date: Дата початку
111
106
  title: Назва
112
107
  name: Крок руху співучасті
113
- participatory_process_type:
114
- fields:
115
- created_at: 'Додано:'
116
- title: Назва
117
108
  participatory_process_user_role:
118
109
  fields:
119
110
  email: Адреса електронної пошти
@@ -131,6 +122,8 @@ uk:
131
122
  participatory_process_copies:
132
123
  new:
133
124
  copy: Скопіювати
125
+ select: Оберіть відомості, копію яких ви хотіли б створити
126
+ title: Створити копію руху співучасті
134
127
  participatory_process_groups:
135
128
  destroy:
136
129
  success: Сукупність рухів співучасті успішно видалено.
@@ -174,11 +167,6 @@ uk:
174
167
  update:
175
168
  error: При спробі оновити цей крок руху співучасті сталася помилка.
176
169
  success: Крок руху співучасті успішно оновлено.
177
- participatory_process_types:
178
- edit:
179
- update: Оновити
180
- new:
181
- create: Створити
182
170
  participatory_process_user_roles:
183
171
  create:
184
172
  error: При спробі додати учасника в цей рух співучасті сталася помилка.
@@ -210,6 +198,10 @@ uk:
210
198
  update:
211
199
  error: При спробі оновити цей рух співучасті сталася помилка.
212
200
  success: Рух співучасті успішно оновлено.
201
+ participatory_processes_copies:
202
+ create:
203
+ error: При спробі створити копію цього руху співучасті сталася помилка.
204
+ success: Успішно створено копію руху співучасті.
213
205
  participatory_processes_group:
214
206
  create:
215
207
  error: При спробі створити нову сукупність рухів співучасті сталася помилка.
@@ -250,9 +242,6 @@ uk:
250
242
  notification_title: Дати для кроку <a href="%{resource_path}">%{resource_title}</a> у <a href="%{participatory_space_url}">%{participatory_space_title}</a> були оновлені.
251
243
  menu:
252
244
  processes: Рухи
253
- metrics:
254
- participatory_processes:
255
- title: Рухи співучасті
256
245
  participatory_process_groups:
257
246
  content_blocks:
258
247
  stats:
@@ -23,8 +23,6 @@ zh-CN:
23
23
  promoted: 已升级
24
24
  published_at: 发布于
25
25
  related_process_ids: 相关进程
26
- scope_type_max_depth_id: 范围过滤器深度:
27
- scopes_enabled: 范围已启用
28
26
  short_description: 简短描述
29
27
  slug: URL 名称
30
28
  start_date: 开始日期
@@ -43,8 +41,6 @@ zh-CN:
43
41
  short_description: 简短描述
44
42
  start_date: 开始日期
45
43
  title: 标题
46
- participatory_process_type:
47
- title: 标题
48
44
  participatory_process_user_role:
49
45
  email: 电子邮件地址
50
46
  name: 名称
@@ -85,10 +81,8 @@ zh-CN:
85
81
  attachment_collections: 文件夹
86
82
  attachment_files: 文件
87
83
  attachments: 附件
88
- categories: 类别管理
89
84
  components: 组件
90
85
  moderations: 版面
91
- private_users: 私人参与者
92
86
  process_admins: 进程管理员
93
87
  steps: 阶段
94
88
  models:
@@ -107,10 +101,6 @@ zh-CN:
107
101
  start_date: 开始日期
108
102
  title: 标题
109
103
  name: 参与进程阶段
110
- participatory_process_type:
111
- fields:
112
- created_at: 创建于
113
- title: 标题
114
104
  participatory_process_user_role:
115
105
  fields:
116
106
  email: 电子邮件地址
@@ -129,9 +119,10 @@ zh-CN:
129
119
  participatory_process_copies:
130
120
  new:
131
121
  copy: 复制
122
+ select: 选择要重复的数据
123
+ title: 重复的参与进程
132
124
  participatory_process_groups:
133
125
  destroy:
134
- error: 销毁参与性进程小组时出错。
135
126
  success: 参与进程组已成功删除。
136
127
  edit:
137
128
  title: 编辑流程组
@@ -181,11 +172,6 @@ zh-CN:
181
172
  update:
182
173
  error: 在更新这一阶段的参与进程时遇到了问题。
183
174
  success: 参与阶段更新成功。
184
- participatory_process_types:
185
- edit:
186
- update: 更新
187
- new:
188
- create: 创建
189
175
  participatory_process_user_roles:
190
176
  create:
191
177
  error: 在这个参与进程中增加参与者时遇到了问题。
@@ -219,6 +205,10 @@ zh-CN:
219
205
  update:
220
206
  error: 在更新这一参与进程方面存在问题。
221
207
  success: 参与进程已成功更新。
208
+ participatory_processes_copies:
209
+ create:
210
+ error: 出现了重复这一参与进程的问题。
211
+ success: 参与进程成功地重复。
222
212
  participatory_processes_group:
223
213
  create:
224
214
  error: 建立一个新的参与性进程小组存在问题。
@@ -302,13 +292,9 @@ zh-CN:
302
292
  form:
303
293
  announcement_help: 您在此输入的文本将会显示给流程信息下方的用户。
304
294
  duration: 期限
305
- filters: 筛选器
306
295
  images: 图像
307
296
  metadata: 元数据
308
- other: 其他
309
297
  related_processes: 相关进程
310
- scope_type_max_depth_help: 限制范围过滤器深度; 过滤器将从一般到所选范围类型显示。
311
- select_an_area: 选择区域
312
298
  select_process_group: 选择一个流程组
313
299
  title: 一般信息
314
300
  content_blocks:
@@ -23,16 +23,12 @@ zh-TW:
23
23
  local_area: 組織區域
24
24
  meta_scope: 元數據範圍
25
25
  participatory_process_group_id: 程序群組
26
- participatory_process_type_id: 處理類型
27
26
  participatory_scope: 決定了什麼
28
27
  participatory_structure: 如何決定
29
28
  private_space: 私有程序
30
29
  promoted: 推廣
31
30
  published_at: 發佈於
32
31
  related_process_ids: 相關程序
33
- scope_id: 範圍
34
- scope_type_max_depth_id: 範圍篩選深度
35
- scopes_enabled: 啟用範圍
36
32
  short_description: 簡短說明
37
33
  slug: URL網址
38
34
  start_date: 開始日期
@@ -61,8 +57,6 @@ zh-TW:
61
57
  short_description: 簡短說明
62
58
  start_date: 開始日期
63
59
  title: 標題
64
- participatory_process_type:
65
- title: 標題
66
60
  participatory_process_user_role:
67
61
  email: 電子郵件
68
62
  name: 名稱
@@ -98,7 +92,6 @@ zh-TW:
98
92
  new_process: 新的程序
99
93
  new_process_group: 新的程序群組
100
94
  new_process_step: 新階段
101
- new_process_type: 新的處理類型
102
95
  new_process_user_role: 新程序管理員
103
96
  preview: 預覽
104
97
  publish: 發布
@@ -109,17 +102,13 @@ zh-TW:
109
102
  participatory_process_groups_submenu:
110
103
  info: 資訊
111
104
  landing_page: 登陸頁面
112
- participatory_process_types: 處理類型
113
105
  participatory_processes: 程序
114
106
  participatory_processes_submenu:
115
107
  attachment_collections: 資料夾
116
108
  attachment_files: 檔案
117
109
  attachments: 附件
118
- categories: 類別
119
110
  components: 组件
120
- landing_page: 登陸頁面
121
111
  moderations: 版主
122
- private_users: 私人參與者
123
112
  process_admins: 程序管理員
124
113
  steps: 分類
125
114
  models:
@@ -140,11 +129,6 @@ zh-TW:
140
129
  start_date: 開始日期
141
130
  title: 標題
142
131
  name: 參與式過程階段
143
- participatory_process_type:
144
- fields:
145
- created_at: 建立於
146
- title: 標題
147
- name: 處理類型
148
132
  participatory_process_user_role:
149
133
  fields:
150
134
  email: 電子郵件
@@ -163,9 +147,10 @@ zh-TW:
163
147
  participatory_process_copies:
164
148
  new:
165
149
  copy: 複製
150
+ select: 請選擇您想要複製的資料
151
+ title: 重複的參與性流程
166
152
  participatory_process_groups:
167
153
  destroy:
168
- error: 刪除參與性流程群組時發生錯誤。
169
154
  success: 參與式流程組成功刪除。
170
155
  edit:
171
156
  title: 編輯程序群組
@@ -218,21 +203,6 @@ zh-TW:
218
203
  update:
219
204
  error: 更新參與程序階段時出現問題。
220
205
  success: 參與式階段成功更新。
221
- participatory_process_types:
222
- create:
223
- error: 新增程序類型時發生錯誤
224
- success: 程序類型已成功創建
225
- destroy:
226
- success: 程序類型已成功刪除。
227
- edit:
228
- title: 編輯程序類型
229
- update: 更新
230
- new:
231
- create: 建立
232
- title: 新的處理類型
233
- update:
234
- error: 更新這個程序類型時發生錯誤
235
- success: 程序類型成功更新。
236
206
  participatory_process_user_roles:
237
207
  create:
238
208
  error: 新增參與者至此參與式過程時發生問題。
@@ -266,6 +236,10 @@ zh-TW:
266
236
  update:
267
237
  error: 更新此參與程序時出現問題。
268
238
  success: 參與程序已成功更新。
239
+ participatory_processes_copies:
240
+ create:
241
+ error: 複製參與流程時發生問題。
242
+ success: 成功複製參與過程。
269
243
  participatory_processes_group:
270
244
  create:
271
245
  error: 創建新參與程序群組時出現問題。
@@ -380,14 +354,9 @@ zh-TW:
380
354
  form:
381
355
  announcement_help: 您在此處輸入的文字將顯示至使用者的正下方程序信息
382
356
  duration: 持續時間
383
- filters: 過濾器
384
357
  images: 圖片
385
358
  metadata: 元數據
386
- other: 其他
387
359
  related_processes: 相關程序
388
- scope_type_max_depth_help: 限制範圍過濾器深度;過濾器將會從一般範圍到所選範圍層級進行顯示。
389
- select_an_area: 選擇一個地區
390
- select_participatory_process_type: 選擇一個程序類型
391
360
  select_process_group: 選擇一個程序群組
392
361
  title: 基本資訊
393
362
  content_blocks:
@@ -7,7 +7,7 @@ class AddFollowableCounterCacheToParticipatoryProcesses < ActiveRecord::Migratio
7
7
  reversible do |dir|
8
8
  dir.up do
9
9
  Decidim::ParticipatoryProcess.reset_column_information
10
- Decidim::ParticipatoryProcess.find_each do |record|
10
+ Decidim::ParticipatoryProcess.unscoped.find_each do |record|
11
11
  record.class.reset_counters(record.id, :follows)
12
12
  end
13
13
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddDeletedAtToDecidimParticipatoryProcesses < ActiveRecord::Migration[7.0]
4
+ def change
5
+ add_column :decidim_participatory_processes, :deleted_at, :datetime
6
+ add_index :decidim_participatory_processes, :deleted_at
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RemoveColumnShowMetricsFromParticipatoryProcesses < ActiveRecord::Migration[7.0]
4
+ def change
5
+ remove_column :decidim_participatory_processes, :show_metrics, :boolean
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RemoveColumnBannerImageFromParticipatoryProcesses < ActiveRecord::Migration[7.0]
4
+ def change
5
+ remove_column :decidim_participatory_processes, :banner_image, :string
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RemoveColumnShowStatisticsFromParticipatoryProcesses < ActiveRecord::Migration[7.0]
4
+ def change
5
+ remove_column :decidim_participatory_processes, :show_statistics, :string
6
+ end
7
+ end
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  "homepage_uri" => "https://decidim.org",
18
18
  "source_code_uri" => "https://github.com/decidim/decidim"
19
19
  }
20
- s.required_ruby_version = "~> 3.2.0"
20
+ s.required_ruby_version = "~> 3.3.0"
21
21
 
22
22
  s.name = "decidim-participatory_processes"
23
23
  s.summary = "Decidim participatory processes module"
@@ -6,12 +6,12 @@ module Decidim
6
6
  class ParticipatoryProcessGroupType < Decidim::Api::Types::BaseObject
7
7
  description "A participatory process group"
8
8
 
9
- field :id, GraphQL::Types::ID, "ID of this participatory process group", null: false
10
- field :title, Decidim::Core::TranslatedFieldType, "The title of this participatory process group", null: true
11
9
  field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process group", null: true
10
+ field :hero_image, GraphQL::Types::String, "The hero image for this participatory process group", null: true
11
+ field :id, GraphQL::Types::ID, "ID of this participatory process group", null: false
12
12
  field :participatory_processes, [Decidim::ParticipatoryProcesses::ParticipatoryProcessType, { null: true }],
13
13
  description: "Lists all the participatory processes belonging to this group", null: false
14
- field :hero_image, GraphQL::Types::String, "The hero image for this participatory process group", null: true
14
+ field :title, Decidim::Core::TranslatedFieldType, "The title of this participatory process group", null: true
15
15
 
16
16
  def hero_image
17
17
  object.attached_uploader(:hero_image).url
@@ -6,18 +6,16 @@ module Decidim
6
6
  class ParticipatoryProcessStepType < Decidim::Api::Types::BaseObject
7
7
  description "A participatory process step"
8
8
 
9
- field :id, GraphQL::Types::ID, "The unique ID of this step.", null: false
10
-
11
- field :participatory_process, ParticipatoryProcessType, description: "The participatory process in which this step belongs to.", null: false
12
-
13
- field :title, Decidim::Core::TranslatedFieldType, "The title of this step", null: false
14
- field :description, Decidim::Core::TranslatedFieldType, "The description of this step", null: true
15
- field :start_date, Decidim::Core::DateTimeType, "This step's start date", null: true
16
- field :end_date, Decidim::Core::DateTimeType, "This step's end date", null: true
9
+ field :active, GraphQL::Types::Boolean, "If this step is the active one", null: true
17
10
  field :call_to_action_path, GraphQL::Types::String, "A call to action URL for this step", method: :cta_path, null: true
18
11
  field :call_to_action_text, Decidim::Core::TranslatedFieldType, "The call to action text for this step", method: :cta_text, null: true
19
- field :active, GraphQL::Types::Boolean, "If this step is the active one", null: true
12
+ field :description, Decidim::Core::TranslatedFieldType, "The description of this step", null: true
13
+ field :end_date, Decidim::Core::DateTimeType, "This step's end date", null: true
14
+ field :id, GraphQL::Types::ID, "The unique ID of this step.", null: false
15
+ field :participatory_process, ParticipatoryProcessType, description: "The participatory process in which this step belongs to.", null: false
20
16
  field :position, GraphQL::Types::Int, "Ordering position among all the steps", null: true
17
+ field :start_date, Decidim::Core::DateTimeType, "This step's start date", null: true
18
+ field :title, Decidim::Core::TranslatedFieldType, "The title of this step", null: false
21
19
  end
22
20
  end
23
21
  end
@@ -6,42 +6,37 @@ module Decidim
6
6
  class ParticipatoryProcessType < Decidim::Api::Types::BaseObject
7
7
  implements Decidim::Core::ParticipatorySpaceInterface
8
8
  implements Decidim::Core::ParticipatorySpaceResourceableInterface
9
- implements Decidim::Core::ScopableInterface
9
+ implements Decidim::Core::TaxonomizableInterface
10
+ implements Decidim::Core::TimestampsInterface
10
11
  implements Decidim::Core::AttachableInterface
11
12
  implements Decidim::Core::CategoriesContainerInterface
12
13
 
13
14
  description "A participatory process"
14
15
 
15
- field :id, GraphQL::Types::ID, "The internal ID for this participatory process", null: false
16
- field :slug, GraphQL::Types::String, null: false
17
- field :hashtag, GraphQL::Types::String, "The hashtag for this participatory process", null: true
18
- field :created_at, Decidim::Core::DateTimeType, "The time this page was created", null: false
19
- field :updated_at, Decidim::Core::DateTimeType, "The time this page was updated", null: false
20
- field :published_at, Decidim::Core::DateTimeType, "The time this page was published", null: false
21
- field :subtitle, Decidim::Core::TranslatedFieldType, "The subtitle of this participatory process.", null: true
16
+ field :announcement, Decidim::Core::TranslatedFieldType, "Highlighted announcement for this participatory process.", null: true
22
17
  field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process.", null: true
23
- field :short_description, Decidim::Core::TranslatedFieldType, "The short description of this participatory process.", null: true
24
- field :start_date, Decidim::Core::DateType, "This participatory process' start date.", null: true
18
+ field :developer_group, Decidim::Core::TranslatedFieldType, "The promoter group of this participatory process.", null: true
25
19
  field :end_date, Decidim::Core::DateType, "This participatory process' end date.", null: true
26
-
20
+ field :hashtag, GraphQL::Types::String, "The hashtag for this participatory process", null: true
27
21
  field :hero_image, GraphQL::Types::String, "The hero image for this participatory process", null: true
28
- field :promoted, GraphQL::Types::Boolean, "If this participatory process is promoted (therefore in the homepage)", null: true
29
- field :developer_group, Decidim::Core::TranslatedFieldType, "The promoter group of this participatory process.", null: true
30
- field :meta_scope, Decidim::Core::TranslatedFieldType, "The scope metadata of this participatory process.", null: true
22
+ field :id, GraphQL::Types::ID, "The internal ID for this participatory process", null: false
31
23
  field :local_area, Decidim::Core::TranslatedFieldType, "The organization area of this participatory process.", null: true
32
- field :target, Decidim::Core::TranslatedFieldType, "Who participates in this participatory process.", null: true
24
+ field :meta_scope, Decidim::Core::TranslatedFieldType, "The scope metadata of this participatory process.", null: true
25
+ field :participatory_process_group, Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupType,
26
+ null: true,
27
+ description: "The participatory process group in which this process belong to"
33
28
  field :participatory_scope, Decidim::Core::TranslatedFieldType, "What is decided on this participatory process.", null: true
34
29
  field :participatory_structure, Decidim::Core::TranslatedFieldType, "How it is decided on this participatory process.", null: true
35
- field :scopes_enabled, GraphQL::Types::Boolean, "If this participatory process has scopes enabled", null: true
36
-
37
- field :announcement, Decidim::Core::TranslatedFieldType, "Highlighted announcement for this participatory process.", null: true
38
-
30
+ field :promoted, GraphQL::Types::Boolean, "If this participatory process is promoted (therefore in the homepage)", null: true
31
+ field :published_at, Decidim::Core::DateTimeType, "The time this page was published", null: false
39
32
  field :reference, GraphQL::Types::String, "Reference prefix for this participatory process", null: true
33
+ field :scopes_enabled, GraphQL::Types::Boolean, "If this participatory process has scopes enabled", null: true
34
+ field :short_description, Decidim::Core::TranslatedFieldType, "The short description of this participatory process.", null: true
35
+ field :slug, GraphQL::Types::String, "The slug of the Participatory Process", null: false
36
+ field :start_date, Decidim::Core::DateType, "This participatory process' start date.", null: true
40
37
  field :steps, [Decidim::ParticipatoryProcesses::ParticipatoryProcessStepType, { null: true }], "All the steps of this process.", null: false
41
-
42
- field :participatory_process_group, Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupType,
43
- null: true,
44
- description: "The participatory process group in which this process belong to"
38
+ field :subtitle, Decidim::Core::TranslatedFieldType, "The subtitle of this participatory process.", null: true
39
+ field :target, Decidim::Core::TranslatedFieldType, "Who participates in this participatory process.", null: true
45
40
 
46
41
  def hero_image
47
42
  object.attached_uploader(:hero_image).url
@@ -4,14 +4,14 @@ module Decidim
4
4
  module ParticipatoryProcesses
5
5
  # This type represents a ParticipatoryProcessType.
6
6
  class ParticipatoryProcessTypeType < Decidim::Api::Types::BaseObject
7
+ implements Decidim::Core::TimestampsInterface
8
+
7
9
  description "A participatory process type"
8
10
 
9
11
  field :id, GraphQL::Types::ID, "Unique ID of this participatory process type", null: false
10
- field :title, Decidim::Core::TranslatedFieldType, "The title of this participatory process type", null: true
11
- field :created_at, Decidim::Core::DateTimeType, "The time this participatory process type was created", null: false
12
- field :updated_at, Decidim::Core::DateTimeType, "The time this participatory process type was updated", null: false
13
12
  field :processes, [Decidim::ParticipatoryProcesses::ParticipatoryProcessType, { null: true }],
14
13
  description: "Lists all the participatory processes belonging to this type", null: false
14
+ field :title, Decidim::Core::TranslatedFieldType, "The title of this participatory process type", null: true
15
15
  end
16
16
  end
17
17
  end