decidim-debates 0.26.10 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/debates/debate_m_cell.rb +1 -1
  3. data/app/commands/decidim/debates/admin/close_debate.rb +1 -1
  4. data/app/commands/decidim/debates/admin/create_debate.rb +1 -1
  5. data/app/commands/decidim/debates/admin/update_debate.rb +1 -1
  6. data/app/commands/decidim/debates/close_debate.rb +1 -1
  7. data/app/commands/decidim/debates/create_debate.rb +1 -1
  8. data/app/commands/decidim/debates/update_debate.rb +1 -1
  9. data/app/controllers/decidim/debates/admin/debate_closes_controller.rb +0 -1
  10. data/app/controllers/decidim/debates/debates_controller.rb +8 -18
  11. data/app/controllers/decidim/debates/orderable.rb +3 -3
  12. data/app/forms/decidim/debates/admin/close_debate_form.rb +4 -2
  13. data/app/forms/decidim/debates/admin/debate_form.rb +2 -3
  14. data/app/forms/decidim/debates/close_debate_form.rb +4 -2
  15. data/app/forms/decidim/debates/debate_form.rb +6 -5
  16. data/app/helpers/decidim/debates/application_helper.rb +5 -14
  17. data/app/models/decidim/debates/debate.rb +16 -2
  18. data/app/presenters/decidim/debates/debate_presenter.rb +8 -3
  19. data/app/serializers/decidim/debates/{data_portability_debate_serializer.rb → download_your_data_debate_serializer.rb} +2 -2
  20. data/app/services/decidim/debates/debate_search.rb +13 -24
  21. data/app/views/decidim/debates/admin/debates/edit.html.erb +0 -1
  22. data/app/views/decidim/debates/admin/debates/index.html.erb +0 -1
  23. data/app/views/decidim/debates/admin/debates/new.html.erb +0 -1
  24. data/app/views/decidim/debates/debates/_filters.html.erb +5 -5
  25. data/app/views/decidim/debates/debates/show.html.erb +2 -2
  26. data/config/locales/am-ET.yml +1 -0
  27. data/config/locales/ar.yml +2 -2
  28. data/config/locales/bg.yml +1 -2
  29. data/config/locales/ca.yml +3 -3
  30. data/config/locales/cs.yml +3 -3
  31. data/config/locales/da.yml +1 -0
  32. data/config/locales/de.yml +2 -6
  33. data/config/locales/el.yml +1 -88
  34. data/config/locales/en.yml +1 -2
  35. data/config/locales/eo.yml +1 -0
  36. data/config/locales/es-MX.yml +2 -2
  37. data/config/locales/es-PY.yml +2 -2
  38. data/config/locales/es.yml +2 -2
  39. data/config/locales/et.yml +1 -0
  40. data/config/locales/eu.yml +53 -56
  41. data/config/locales/fi-plain.yml +3 -3
  42. data/config/locales/fi.yml +3 -3
  43. data/config/locales/fr-CA.yml +3 -3
  44. data/config/locales/fr.yml +2 -2
  45. data/config/locales/ga-IE.yml +1 -1
  46. data/config/locales/gl.yml +2 -1
  47. data/config/locales/hr.yml +1 -0
  48. data/config/locales/hu.yml +2 -66
  49. data/config/locales/id-ID.yml +1 -1
  50. data/config/locales/is-IS.yml +5 -2
  51. data/config/locales/it.yml +4 -3
  52. data/config/locales/ja.yml +3 -3
  53. data/config/locales/ko.yml +1 -0
  54. data/config/locales/lb.yml +1 -5
  55. data/config/locales/lt.yml +1 -244
  56. data/config/locales/lv.yml +1 -1
  57. data/config/locales/mt.yml +1 -0
  58. data/config/locales/nl.yml +3 -3
  59. data/config/locales/no.yml +3 -2
  60. data/config/locales/om-ET.yml +1 -0
  61. data/config/locales/pl.yml +2 -5
  62. data/config/locales/pt-BR.yml +2 -4
  63. data/config/locales/pt.yml +2 -2
  64. data/config/locales/ro-RO.yml +2 -2
  65. data/config/locales/ru.yml +1 -1
  66. data/config/locales/si-LK.yml +1 -0
  67. data/config/locales/sk.yml +1 -1
  68. data/config/locales/sl.yml +1 -0
  69. data/config/locales/so-SO.yml +1 -0
  70. data/config/locales/sr-CS.yml +1 -0
  71. data/config/locales/sv.yml +2 -2
  72. data/config/locales/sw-KE.yml +1 -0
  73. data/config/locales/ti-ER.yml +1 -0
  74. data/config/locales/tr-TR.yml +3 -3
  75. data/config/locales/uk.yml +1 -1
  76. data/config/locales/val-ES.yml +1 -0
  77. data/config/locales/vi.yml +1 -0
  78. data/config/locales/zh-CN.yml +1 -1
  79. data/config/locales/zh-TW.yml +1 -238
  80. data/db/migrate/20181003081235_fix_user_groups_ids_on_debates.rb +2 -13
  81. data/db/migrate/20181016132850_add_organization_as_author_to_debates.rb +3 -0
  82. data/lib/decidim/debates/test/factories.rb +1 -1
  83. data/lib/decidim/debates/version.rb +1 -1
  84. metadata +15 -24
  85. data/config/environment.rb +0 -3
  86. data/config/locales/fa-IR.yml +0 -1
  87. data/config/locales/gn-PY.yml +0 -1
  88. data/config/locales/ka-GE.yml +0 -1
  89. data/config/locales/kaa.yml +0 -1
  90. data/config/locales/lo-LA.yml +0 -1
  91. data/config/locales/oc-FR.yml +0 -1
  92. data/config/locales/sq-AL.yml +0 -1
  93. data/config/locales/th-TH.yml +0 -1
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pl:
2
3
  activemodel:
3
4
  attributes:
@@ -10,7 +11,6 @@ pl:
10
11
  end_time: Skończy się
11
12
  information_updates: Aktualizacje informacji
12
13
  instructions: Instrukcje uczestnictwa
13
- scope_id: Zakres
14
14
  start_time: Zaczyna się
15
15
  title: Tytuł
16
16
  user_group_id: Utwórz debatę jako
@@ -18,7 +18,6 @@ pl:
18
18
  decidim/debates/close_debate_event: Debata zamknięta
19
19
  decidim/debates/create_debate_event: Debata
20
20
  decidim/debates/creation_disabled_event: Debaty wyłączone
21
- decidim/debates/creation_enabled_event: Tworzenie debat włączone
22
21
  activerecord:
23
22
  models:
24
23
  decidim/debates/debate:
@@ -44,7 +43,6 @@ pl:
44
43
  step:
45
44
  announcement: Ogłoszenie
46
45
  comments_blocked: Komentarze zablokowane
47
- creation_enabled: Uczestnicy mogą tworzyć debaty
48
46
  endorsements_blocked: Rekomendacje zablokowane
49
47
  endorsements_enabled: Rekomendacje włączone
50
48
  debates:
@@ -122,7 +120,6 @@ pl:
122
120
  all: Wszystkie
123
121
  category: Kategoria
124
122
  category_prompt: Wybierz kategorię
125
- citizens: Obywatele
126
123
  commented: Skomentowano
127
124
  my_debates: Moje debaty
128
125
  official: Urzędnik
@@ -133,7 +130,7 @@ pl:
133
130
  state_values:
134
131
  closed: Zakończone
135
132
  open: Otwarte
136
- user_groups: Grupy
133
+ user_groups: Grupy użytkowników
137
134
  filters_small_view:
138
135
  close_modal: Zamknij okno
139
136
  filter: Filtr
@@ -1,4 +1,5 @@
1
- pt-BR:
1
+ ---
2
+ pt:
2
3
  activemodel:
3
4
  attributes:
4
5
  debate:
@@ -17,7 +18,6 @@ pt-BR:
17
18
  decidim/debates/close_debate_event: Debate encerrado
18
19
  decidim/debates/create_debate_event: Debate
19
20
  decidim/debates/creation_disabled_event: Debates desativados
20
- decidim/debates/creation_enabled_event: Criação de debates ativada
21
21
  activerecord:
22
22
  models:
23
23
  decidim/debates/debate:
@@ -40,7 +40,6 @@ pt-BR:
40
40
  step:
41
41
  announcement: Anúncio
42
42
  comments_blocked: Comentários bloqueados
43
- creation_enabled: Os participantes podem criar debates
44
43
  endorsements_blocked: Endossos bloqueados
45
44
  endorsements_enabled: Endossos habilitados
46
45
  debates:
@@ -116,7 +115,6 @@ pt-BR:
116
115
  all: Todos
117
116
  category: Categoria
118
117
  category_prompt: Selecione uma categoria
119
- citizens: Cidadãos
120
118
  commented: Comentado
121
119
  my_debates: Meus debates
122
120
  official: Oficial
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt:
2
3
  activemodel:
3
4
  attributes:
@@ -96,7 +97,7 @@ pt:
96
97
  close: Fechar
97
98
  description: Qual é o sumário ou conclusão para este debate?
98
99
  send: Fechar debate
99
- closed: Fechar
100
+ closed: Fechado
100
101
  count:
101
102
  debates_count:
102
103
  one: "%{count} debate"
@@ -115,7 +116,6 @@ pt:
115
116
  all: Todos
116
117
  category: Categoria
117
118
  category_prompt: Selecione uma categoria
118
- citizens: Cidadãos
119
119
  commented: Comentários
120
120
  my_debates: Os meus debates
121
121
  official: Oficial
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ro:
2
3
  activemodel:
3
4
  attributes:
@@ -10,7 +11,6 @@ ro:
10
11
  end_time: Se termină la
11
12
  information_updates: Actualizări informații
12
13
  instructions: Instrucţiuni de participare
13
- scope_id: Domeniu de interes
14
14
  start_time: Începe la
15
15
  title: Titlu
16
16
  user_group_id: Creați o dezbatere în calitate de
@@ -120,11 +120,11 @@ ro:
120
120
  all: Toate
121
121
  category: Categorie
122
122
  category_prompt: Selectați o categorie
123
- citizens: Cetățeni
124
123
  commented: Comentat
125
124
  my_debates: Dezbaterile mele
126
125
  official: Oficial
127
126
  origin: Origine
127
+ participants: Participanți
128
128
  scope: Domeniu de interes
129
129
  search: Caută
130
130
  state: Stare
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ru:
2
3
  activemodel:
3
4
  attributes:
@@ -82,7 +83,6 @@ ru:
82
83
  all: Все
83
84
  category: Категория
84
85
  category_prompt: Выберите категорию
85
- citizens: Граждане
86
86
  official: Служебные
87
87
  origin: Источник
88
88
  search: Поиск
@@ -1 +1,2 @@
1
+ ---
1
2
  si:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sk:
2
3
  activemodel:
3
4
  attributes:
@@ -82,7 +83,6 @@ sk:
82
83
  all: Všetko
83
84
  category: Kategória
84
85
  category_prompt: Vyberte kategóriu
85
- citizens: Občania
86
86
  official: Oficiálni
87
87
  origin: Pôvod
88
88
  search: Vyhľadávanie
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sl:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  so:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sr:
2
3
  decidim:
3
4
  debates:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sv:
2
3
  activemodel:
3
4
  attributes:
@@ -10,7 +11,6 @@ sv:
10
11
  end_time: Slutar vid
11
12
  information_updates: Informationsuppdateringar
12
13
  instructions: Deltagaranvisningar
13
- scope_id: Omfång
14
14
  start_time: Börjar vid
15
15
  title: Titel
16
16
  user_group_id: Skapa debatt som
@@ -116,11 +116,11 @@ sv:
116
116
  all: Alla
117
117
  category: Kategori
118
118
  category_prompt: Välj en kategori
119
- citizens: Medborgare
120
119
  commented: Kommenterade
121
120
  my_debates: Mina debatter
122
121
  official: Officiell
123
122
  origin: Ursprung
123
+ participants: Deltagare
124
124
  scope: Omfång
125
125
  search: Sök
126
126
  state: Status
@@ -1 +1,2 @@
1
+ ---
1
2
  sw:
@@ -1 +1,2 @@
1
+ ---
1
2
  ti:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  tr:
2
3
  activemodel:
3
4
  attributes:
@@ -79,7 +80,7 @@ tr:
79
80
  comments: Yorumlar
80
81
  models:
81
82
  debate:
82
- name: tartışma
83
+ name: Tartışma
83
84
  admin_log:
84
85
  debate:
85
86
  close: "%{user_name}, %{space_name} alanındaki %{resource_name} tartışmasını kapattı"
@@ -95,7 +96,7 @@ tr:
95
96
  close: Kapat
96
97
  description: Bu tartışmanın özeti veya sonucu nedir?
97
98
  send: Tartışmayı kapat
98
- closed: Kapalı
99
+ closed: Kapat
99
100
  count:
100
101
  debates_count:
101
102
  one: "%{count} tartışma"
@@ -114,7 +115,6 @@ tr:
114
115
  all: Tümü
115
116
  category: Kategori
116
117
  category_prompt: Bir kategori seç
117
- citizens: Vatandaşlar
118
118
  commented: Yorum yaptı
119
119
  my_debates: Tartışmalarım
120
120
  official: Resmi
@@ -1,3 +1,4 @@
1
+ ---
1
2
  uk:
2
3
  activemodel:
3
4
  attributes:
@@ -82,7 +83,6 @@ uk:
82
83
  all: Усі
83
84
  category: Категорія
84
85
  category_prompt: Оберіть категорію
85
- citizens: Громадяни
86
86
  official: Службове
87
87
  origin: Джерело
88
88
  search: Шукати
@@ -1 +1,2 @@
1
+ ---
1
2
  val:
@@ -1 +1,2 @@
1
+ ---
1
2
  vi:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  zh-CN:
2
3
  activemodel:
3
4
  attributes:
@@ -106,7 +107,6 @@ zh-CN:
106
107
  all: 所有的
107
108
  category: 类别
108
109
  category_prompt: 选择一个类别
109
- citizens: Citizens
110
110
  commented: 已评论
111
111
  my_debates: 我的辩论
112
112
  official: 官方的
@@ -1,239 +1,2 @@
1
+ ---
1
2
  zh-TW:
2
- activemodel:
3
- attributes:
4
- debate:
5
- category_id: 類別
6
- closed_at: 關閉於
7
- conclusions: 結論
8
- decidim_category_id: 類別
9
- description: 說明
10
- end_time: 結束於
11
- information_updates: 資訊更新
12
- instructions: 參加指南
13
- scope_id: 範圍
14
- start_time: 開始於
15
- title: 標題
16
- user_group_id: 建立辯論為
17
- models:
18
- decidim/debates/close_debate_event: 辯論功能已關閉
19
- decidim/debates/create_debate_event: 辯論
20
- decidim/debates/creation_disabled_event: 辯論功能已禁用
21
- decidim/debates/creation_enabled_event: 辯論創建已啟用
22
- activerecord:
23
- models:
24
- decidim/debates/debate:
25
- other: 辯論
26
- decidim:
27
- components:
28
- debates:
29
- actions:
30
- comment: 留言
31
- create: 建立
32
- endorse: 連署
33
- name: 辯論
34
- settings:
35
- global:
36
- announcement: 公告
37
- comments_enabled: 啟用評論功能
38
- comments_max_length: 評論字數最大長度(若要使用預設值請輸入0)
39
- scope_id: 範圍
40
- scopes_enabled: 啟用範圍
41
- step:
42
- announcement: 公告
43
- comments_blocked: 留言已封鎖
44
- creation_enabled: 參與者可以建立辯論
45
- endorsements_blocked: 連署已封鎖
46
- endorsements_enabled: 連署已封鎖
47
- debates:
48
- actions:
49
- close: 關閉
50
- confirm_destroy: 您確定嗎?
51
- destroy: 刪除
52
- edit: 編輯
53
- new: 新增 %{name}
54
- title: 操作
55
- admin:
56
- debate_closes:
57
- edit:
58
- close: 關閉
59
- title: 關閉辯論
60
- debates:
61
- create:
62
- invalid: 建立辯論時出現問題。
63
- success: 辯論建立成功。
64
- destroy:
65
- success: 辯論已成功刪除。
66
- edit:
67
- title: 編輯辯論
68
- update: 更新辯論
69
- form:
70
- debate_type: 辯論類型
71
- finite: 有限期 (設定開始和結束時間)
72
- open: 開放式 (沒有開始或結束時間)
73
- index:
74
- title: 辯論
75
- new:
76
- create: 建立辯論
77
- title: 新辯論
78
- update:
79
- invalid: 更新此辯論時發生問題。
80
- success: 辯論已成功更新
81
- exports:
82
- comments: 評論
83
- models:
84
- debate:
85
- name: 辯論
86
- admin_log:
87
- debate:
88
- close: "%{user_name} 在 %{space_name} 空間關閉了 %{resource_name} 辯論。"
89
- create: "%{user_name} 在%{space_name} 空間中創建了%{resource_name} 辯論"
90
- update: "%{user_name} 更新了 %{space_name} 空間中的 %{resource_name} 辯論"
91
- debate_m:
92
- commented_time_ago: 在 %{time} 前評論
93
- debates:
94
- close:
95
- invalid: 關閉辯論時出現問題
96
- success: 辯論成功關閉
97
- close_debate_modal:
98
- close: 關閉
99
- description: 這場辯論的總結或結論是什麼?
100
- send: 關閉辯論
101
- closed: 關閉
102
- count:
103
- debates_count:
104
- other: "%{count} 場辯論"
105
- create:
106
- invalid: 建立辯論時出現問題。
107
- success: 辯論建立成功。
108
- debate:
109
- participate: 參與
110
- edit:
111
- back: 返回
112
- save: 保存更改
113
- title: 編輯辯論
114
- filters:
115
- activity: 我的活動
116
- all: 全部
117
- category: 類別
118
- category_prompt: 選擇一個類別
119
- citizens: 公民
120
- commented: 已回應
121
- my_debates: 我的辯論
122
- official: 官方
123
- origin: 起源
124
- scope: 範圍
125
- search: 搜尋
126
- state: 狀態
127
- state_values:
128
- closed: 關閉
129
- open: 開啟
130
- user_groups: 群組
131
- filters_small_view:
132
- close_modal: 關閉視窗
133
- filter: 篩選
134
- filter_by: 篩選條件
135
- unfold: 展開
136
- form:
137
- select_a_category: 請選擇一個類別
138
- index:
139
- new_debate: 新辯論
140
- new:
141
- back: 返回
142
- create: 建立
143
- title: 新辯論
144
- orders:
145
- commented: 最多評論
146
- label: 依序排列辯論
147
- random: 隨機順序
148
- recent: 最近
149
- updated: 最近更新
150
- show:
151
- back: 返回列表
152
- close_debate: 關閉辯論
153
- date: 日期
154
- debate_closed: 關閉
155
- debate_conclusions_are: '此辯論已於 %{date} 結束,以下是總結結論:'
156
- edit_conclusions: 修改結論
157
- edit_debate: 編輯辯論
158
- groups_count: 群組
159
- last_comment_by: 最後評論
160
- no_comments_yet: 尚無留言
161
- open: 開放性辯論
162
- participants_count: 參與者
163
- update:
164
- invalid: 更新此辯論時發生問題。
165
- success: 辯論已成功更新
166
- versions:
167
- debates:
168
- back_to_resource: 返回辯論
169
- index:
170
- title: 版本
171
- versions_list:
172
- back_to_resource: 返回辯論
173
- last_activity:
174
- debate_updated_at_html: "<span>辯論已更新,連結網址為 %{link}</span>"
175
- new_debate_at_html: "<span>新的辯論,連結網址為 %{link}</span>"
176
- models:
177
- debate:
178
- fields:
179
- end_time: 結束日期
180
- official_debate: 正式辯論
181
- start_time: 開始日期
182
- title: 標題
183
- events:
184
- debates:
185
- create_debate_event:
186
- space_followers:
187
- email_intro: |-
188
- 你好,
189
- 一個新的辯論「%{resource_title}」已經在 %{space_title} 參與空間中建立,請查看並參與:
190
- email_outro: 您收到此通知,是因為您正在追蹤 %{space_title} 參與空間。您可以按照上述連結停止接收通知。
191
- email_subject: '%{space_title} 參與空間上有新辯論主題%{resource_title}'
192
- notification_title: 在<a href="%{space_path}">%{space_title}</a>上建立了辯論主題<a href="%{resource_path}">%{resource_title}</a>。
193
- user_followers:
194
- email_intro: |-
195
- 嗨,
196
- 你正在追蹤的 %{author_name} %{author_nickname} 創建了一個新辯論主題 "%{resource_title}"。點擊下方連結查看並參與辯論:
197
- email_outro: 您收到此通知,是因為您正在關注 %{author_nickname}。您可以使用上面的連結停止接收通知。
198
- email_subject: 新辯論主題「%{resource_title}」,由 %{author_nickname} 建立
199
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 建立了 <a href="%{resource_path}">%{resource_title}</a> 辯論。
200
- creation_disabled:
201
- email_intro: '在 %{participatory_space_title} 中不再開放建立辯論。您仍可在此頁面參與開放辯論:'
202
- email_outro: 你收到此通知是因為你正在追蹤 %{participatory_space_title}。你可以透過前面的連結停止接收通知。
203
- email_subject: 在 %{participatory_space_title} 中已停用辯論建立
204
- notification_title: 辯論建立現在在<a href="%{participatory_space_url}">%{participatory_space_title}</a>已被停用
205
- creation_enabled:
206
- email_intro: '現在您可以在 %{participatory_space_title} 開始新的辯論!在此頁面開始參與:'
207
- email_outro: 你收到此通知是因為你正在追蹤 %{participatory_space_title}。你可以透過前面的連結停止接收通知。
208
- email_subject: 在 %{participatory_space_title} 現在可以開始新的辯論!
209
- notification_title: 您現在可以在<a href="%{participatory_space_url}">%{participatory_space_title}</a>中<a href="%{resource_path}">開始新的辯論</a>。
210
- debate_closed:
211
- affected_user:
212
- email_intro: '在 "%{resource_title}" 辯論中已經關閉。您可以在其頁面上閱讀結論:'
213
- email_outro: 您收到此通知是因為您正在追蹤「%{resource_title}」辯論。您可以透過上方的連結取消追蹤。
214
- email_subject: '%{resource_title} 辯論已結束'
215
- notification_title: 這個<a href="%{resource_path}">%{resource_title}</a>辯論已經結束。
216
- follower:
217
- email_intro: '在 "%{resource_title}" 辯論中已經關閉。您可以在其頁面上閱讀結論:'
218
- email_outro: 您收到此通知是因為您正在追蹤「%{resource_title}」辯論。您可以透過上方的連結取消追蹤。
219
- email_subject: '%{resource_title} 辯論已結束'
220
- notification_title: 這個<a href="%{resource_path}">%{resource_title}</a>辯論已經結束。
221
- gamification:
222
- badges:
223
- commented_debates:
224
- conditions:
225
- - 選擇一個開放辯論加入
226
- description: 當你在不同辯論中發表評論時,會被授予此徽章。
227
- description_another: 此參與者已參與了 %{score} 個辯論。
228
- description_own: 您已經參與了 %{score} 場辯論
229
- name: 辯論
230
- next_level_in: 再參與 %{score} 個辯論,即可達成下一等級!
231
- unearned_another: 這位參與者尚未參與任何辯論。
232
- unearned_own: 您尚未參與任何辯論。
233
- metrics:
234
- debates:
235
- description: 建立的辯論次數
236
- object: 辯論
237
- title: 辯論
238
- statistics:
239
- debates_count: 辯論
@@ -1,24 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class FixUserGroupsIdsOnDebates < ActiveRecord::Migration[5.2]
4
- class UserGroup < ApplicationRecord
5
- self.table_name = :decidim_users
6
- self.inheritance_column = nil # disable the default inheritance
7
-
8
- default_scope { where(type: "Decidim::UserGroup") }
9
- end
10
-
11
- class Debate < ApplicationRecord
12
- self.table_name = :decidim_debates_debates
13
- end
14
-
15
4
  # rubocop:disable Rails/SkipsModelValidations
16
5
  def change
17
- UserGroup.find_each do |group|
6
+ Decidim::UserGroup.find_each do |group|
18
7
  old_id = group.extended_data["old_user_group_id"]
19
8
  next unless old_id
20
9
 
21
- Debate
10
+ Decidim::Debates::Debate
22
11
  .where(decidim_user_group_id: old_id)
23
12
  .update_all(decidim_user_group_id: group.id)
24
13
  end
@@ -5,12 +5,15 @@ class AddOrganizationAsAuthorToDebates < ActiveRecord::Migration[5.2]
5
5
  self.table_name = :decidim_debates_debates
6
6
  include Decidim::HasComponent
7
7
  end
8
+
8
9
  class User < ApplicationRecord
9
10
  self.table_name = :decidim_users
10
11
  end
12
+
11
13
  def change
12
14
  add_column :decidim_debates_debates, :decidim_author_type, :string
13
15
 
16
+ Debate.reset_column_information
14
17
  Debate.find_each do |debate|
15
18
  if debate.decidim_author_id.present?
16
19
  debate.decidim_author_type = "Decidim::UserBaseEntity"
@@ -28,7 +28,7 @@ FactoryBot.define do
28
28
  end_time { 1.day.from_now }
29
29
  end
30
30
 
31
- trait :citizen_author do
31
+ trait :participant_author do
32
32
  start_time { nil }
33
33
  end_time { nil }
34
34
  author do
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-debates version.
5
5
  module Debates
6
6
  def self.version
7
- "0.26.10"
7
+ "0.27.0.rc1"
8
8
  end
9
9
  end
10
10
  end