decidim-accountability 0.26.8 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/accountability/highlighted_results_for_component_cell.rb +13 -1
  3. data/app/commands/decidim/accountability/admin/create_imported_result.rb +1 -1
  4. data/app/commands/decidim/accountability/admin/create_result.rb +1 -1
  5. data/app/commands/decidim/accountability/admin/create_status.rb +6 -3
  6. data/app/commands/decidim/accountability/admin/create_timeline_entry.rb +11 -7
  7. data/app/commands/decidim/accountability/admin/destroy_result.rb +1 -1
  8. data/app/commands/decidim/accountability/admin/update_imported_result.rb +1 -1
  9. data/app/commands/decidim/accountability/admin/update_result.rb +1 -1
  10. data/app/commands/decidim/accountability/admin/update_status.rb +6 -3
  11. data/app/commands/decidim/accountability/admin/update_timeline_entry.rb +9 -5
  12. data/app/controllers/decidim/accountability/admin/statuses_controller.rb +5 -3
  13. data/app/controllers/decidim/accountability/admin/timeline_entries_controller.rb +5 -3
  14. data/app/controllers/decidim/accountability/results_controller.rb +12 -12
  15. data/app/forms/decidim/accountability/admin/result_form.rb +2 -2
  16. data/app/forms/decidim/accountability/admin/timeline_entry_form.rb +2 -1
  17. data/app/helpers/decidim/accountability/breadcrumb_helper.rb +2 -2
  18. data/app/models/decidim/accountability/result.rb +9 -5
  19. data/app/models/decidim/accountability/status.rb +6 -2
  20. data/app/models/decidim/accountability/timeline_entry.rb +6 -0
  21. data/app/permissions/decidim/accountability/admin/permissions.rb +1 -7
  22. data/app/presenters/decidim/accountability/admin_log/status_presenter.rb +38 -0
  23. data/app/presenters/decidim/accountability/admin_log/timeline_entry_presenter.rb +37 -0
  24. data/app/services/decidim/accountability/results_calculator.rb +10 -6
  25. data/app/views/decidim/accountability/admin/import_results/new.html.erb +3 -8
  26. data/app/views/decidim/accountability/admin/results/edit.html.erb +0 -1
  27. data/app/views/decidim/accountability/admin/results/index.html.erb +1 -2
  28. data/app/views/decidim/accountability/admin/results/new.html.erb +0 -1
  29. data/app/views/decidim/accountability/admin/statuses/edit.html.erb +0 -1
  30. data/app/views/decidim/accountability/admin/statuses/index.html.erb +0 -1
  31. data/app/views/decidim/accountability/admin/statuses/new.html.erb +0 -1
  32. data/app/views/decidim/accountability/admin/timeline_entries/_form.html.erb +5 -1
  33. data/app/views/decidim/accountability/admin/timeline_entries/index.html.erb +3 -3
  34. data/app/views/decidim/accountability/results/_home_categories.html.erb +2 -2
  35. data/app/views/decidim/accountability/results/_nav_breadcrumb.html.erb +3 -3
  36. data/app/views/decidim/accountability/results/_results_leaf.html.erb +3 -3
  37. data/app/views/decidim/accountability/results/_results_parent.html.erb +1 -1
  38. data/app/views/decidim/accountability/results/_scope_filters.html.erb +3 -3
  39. data/app/views/decidim/accountability/results/_search.html.erb +1 -1
  40. data/app/views/decidim/accountability/results/_show_leaf.html.erb +2 -2
  41. data/app/views/decidim/accountability/results/_timeline.html.erb +8 -2
  42. data/app/views/decidim/accountability/results/home.html.erb +3 -1
  43. data/app/views/decidim/accountability/versions/show.html.erb +3 -1
  44. data/app/views/decidim/participatory_spaces/_result.html.erb +2 -2
  45. data/config/locales/am-ET.yml +1 -0
  46. data/config/locales/ar.yml +24 -41
  47. data/config/locales/bg.yml +3 -1
  48. data/config/locales/ca.yml +13 -23
  49. data/config/locales/cs.yml +13 -23
  50. data/config/locales/da.yml +3 -1
  51. data/config/locales/de.yml +13 -23
  52. data/config/locales/el.yml +3 -2
  53. data/config/locales/en.yml +12 -23
  54. data/config/locales/eo.yml +1 -0
  55. data/config/locales/es-MX.yml +13 -23
  56. data/config/locales/es-PY.yml +13 -23
  57. data/config/locales/es.yml +13 -23
  58. data/config/locales/et.yml +1 -0
  59. data/config/locales/eu.yml +43 -63
  60. data/config/locales/fi-plain.yml +13 -23
  61. data/config/locales/fi.yml +19 -29
  62. data/config/locales/fr-CA.yml +13 -23
  63. data/config/locales/fr.yml +13 -23
  64. data/config/locales/ga-IE.yml +2 -0
  65. data/config/locales/gl.yml +3 -1
  66. data/config/locales/hr.yml +1 -0
  67. data/config/locales/hu.yml +12 -32
  68. data/config/locales/id-ID.yml +1 -1
  69. data/config/locales/is-IS.yml +3 -2
  70. data/config/locales/it.yml +3 -1
  71. data/config/locales/ja.yml +13 -23
  72. data/config/locales/ko.yml +1 -0
  73. data/config/locales/lb.yml +3 -1
  74. data/config/locales/lt.yml +13 -1
  75. data/config/locales/lv.yml +3 -1
  76. data/config/locales/mt.yml +1 -0
  77. data/config/locales/nl.yml +2 -1
  78. data/config/locales/no.yml +5 -3
  79. data/config/locales/om-ET.yml +1 -0
  80. data/config/locales/pl.yml +13 -2
  81. data/config/locales/pt-BR.yml +4 -5
  82. data/config/locales/pt.yml +3 -1
  83. data/config/locales/ro-RO.yml +9 -8
  84. data/config/locales/ru.yml +1 -1
  85. data/config/locales/si-LK.yml +2 -1
  86. data/config/locales/sk.yml +2 -1
  87. data/config/locales/sl.yml +2 -1
  88. data/config/locales/so-SO.yml +1 -0
  89. data/config/locales/sr-CS.yml +1 -1
  90. data/config/locales/sv.yml +5 -23
  91. data/config/locales/sw-KE.yml +1 -0
  92. data/config/locales/ti-ER.yml +1 -0
  93. data/config/locales/tr-TR.yml +3 -25
  94. data/config/locales/uk.yml +1 -1
  95. data/config/locales/val-ES.yml +1 -0
  96. data/config/locales/vi.yml +1 -0
  97. data/config/locales/zh-CN.yml +2 -1
  98. data/config/locales/zh-TW.yml +1 -267
  99. data/db/migrate/20220331150008_add_title_to_timeline_entries.rb +7 -0
  100. data/db/migrate/20220331150155_move_legacy_description_to_title_of_timeline_entries.rb +13 -0
  101. data/lib/decidim/accountability/component.rb +2 -1
  102. data/lib/decidim/accountability/test/factories.rb +1 -0
  103. data/lib/decidim/accountability/version.rb +1 -1
  104. data/lib/decidim/api/timeline_entry_type.rb +1 -0
  105. metadata +28 -32
  106. data/app/services/decidim/accountability/result_search.rb +0 -48
  107. data/config/environment.rb +0 -0
  108. data/config/locales/fa-IR.yml +0 -1
  109. data/config/locales/gn-PY.yml +0 -15
  110. data/config/locales/ka-GE.yml +0 -1
  111. data/config/locales/kaa.yml +0 -63
  112. data/config/locales/lo-LA.yml +0 -1
  113. data/config/locales/oc-FR.yml +0 -1
@@ -1,268 +1,2 @@
1
+ ---
1
2
  zh-TW:
2
- activemodel:
3
- attributes:
4
- result:
5
- decidim_accountability_status_id: 狀態
6
- decidim_category_id: 類別
7
- decidim_scope_id: 範圍
8
- description: 說明
9
- end_date: 結束日期
10
- progress: 進度
11
- project_ids: 包含的專案
12
- proposals: 包含的建議
13
- start_date: 開始日期
14
- title: 標題
15
- updated_at: 更新時間
16
- status:
17
- description: 說明
18
- key: 金鑰
19
- name: 名稱
20
- progress: 進度
21
- timeline_entry:
22
- description: 說明
23
- entry_date: 日期
24
- models:
25
- decidim/accountability/proposal_linked_event: 在結果的建議
26
- decidim/accountability/result_progress_updated_event: 結果程序已更新
27
- activerecord:
28
- models:
29
- decidim/accountability/result:
30
- other: 結果
31
- decidim:
32
- accountability:
33
- actions:
34
- attachment_collections: 資料夾
35
- attachments: 附件
36
- confirm_destroy: 確定要刪除 %{name} ?
37
- destroy: 刪除
38
- edit: 編輯
39
- import_csv: 匯入CSV
40
- new: 新增 %{name}
41
- preview: 預覽
42
- timeline_entries: 專案評估
43
- title: 操作
44
- admin:
45
- exports:
46
- result_comments: 評論
47
- results: 結果
48
- import_results:
49
- new:
50
- download_export: 匯出成 CSV
51
- import: 匯入
52
- info: |
53
- <p>建議依照下面步驟:</p>
54
- <ol>
55
- <li><a href='%{link_new_status}' target='_blank'>為結果建立狀態</a> 到你想要新增的</li>
56
- <li>在管理介面匯入前 <a href='%{link_new_result}' target='_blank'>至少手動建立一個結果</a> ,這樣才能確認要填寫的資料格式。</li>
57
- <li>%{link_export_csv}</li>
58
- <li>在自己電腦編輯,只能夠異動下面欄位:
59
- <ul>
60
- <li><b>category/id:</b> 類別代號</li>
61
- <li><b>scope/id:</b> 範圍代號</li>
62
- <li><b>parent/id:</b> 上一層代號 (相關結果),選擇性的</li>
63
- <li><b>title/en:</b> 英文標題,這要看你的平台語言設定。</li>
64
- <li><b>description/en:</b> 英文介紹,這要看你的平台語言設定。</li>
65
- <li><b>start_date:</b> 結果開始執行的日期 (格式 YYYY-MM-DD)</li>
66
- <li><b>end_date:</b> 結果結束執行的日期 (格式 YYYY-MM-DD)</li>
67
- <li><b>status/id:</b> 這個結果的狀態代號</li>
68
- <li><b>progress:</b> 這次執行的比率 ( 0 到 100) </li>
69
- <li><b>proposals_ids:</b> 相關建議的內部代號 (半形逗點分隔),會自動轉換為 <span class='attribute-name'>proposal_url</span></li>
70
- </ul>
71
- </li>
72
- </ol>
73
- title: 從 CSV 匯入結果
74
- imports:
75
- create:
76
- success: 檔案開始匯入,執行完成後會寄發 email 說明匯入結果
77
- models:
78
- result:
79
- name: 結果
80
- status:
81
- name: 狀態
82
- timeline_entry:
83
- name: 輸入時間線
84
- results:
85
- create:
86
- invalid: 建立結果時發生錯誤
87
- success: 結果成功建立
88
- destroy:
89
- success: 結果成功刪除
90
- edit:
91
- title: 編輯結果
92
- update: 更新結果
93
- index:
94
- title: 結果
95
- new:
96
- create: 建立結果
97
- title: 新增結果
98
- update:
99
- invalid: 更新結果時發生錯誤
100
- success: 結果成功更新
101
- shared:
102
- subnav:
103
- statuses: 狀態
104
- statuses:
105
- create:
106
- invalid: 建立狀態時發生錯誤
107
- success: 狀態成功建立
108
- destroy:
109
- success: 狀態成功刪除
110
- edit:
111
- title: 編輯狀態
112
- update: 更新狀態
113
- index:
114
- title: 狀態
115
- new:
116
- create: 新增狀態
117
- title: 新狀態
118
- update:
119
- invalid: 更新狀態時發生錯誤
120
- success: 狀態成功更新
121
- timeline_entries:
122
- create:
123
- invalid: 建立資料時發生錯誤
124
- success: 資料成功建立
125
- destroy:
126
- success: 資料成功刪除
127
- edit:
128
- title: 編輯資料
129
- update: 更新資料
130
- index:
131
- title: 專案時程資料
132
- new:
133
- create: 建立資料
134
- title: 新資料
135
- update:
136
- invalid: 更新資料時發生錯誤
137
- success: 資料成功更新
138
- admin_log:
139
- result:
140
- create: "%{user_name} 建立結果 %{resource_name} 在 %{space_name}"
141
- delete: "%{user_name} 刪除了 %{resource_name} 在 %{space_name} 的結果"
142
- update: "%{user_name} 更新了 %{resource_name} 在 %{space_name} 的結果"
143
- value_types:
144
- parent_presenter:
145
- not_found: '資料庫中找不到上一層 (ID: %{id})'
146
- content_blocks:
147
- highlighted_results:
148
- dates: 日期
149
- results: 結果
150
- unspecified: 未指定
151
- import_mailer:
152
- import:
153
- errors: 錯誤
154
- errors_present: 匯入結果時發生錯誤
155
- row_number: 列
156
- subject: 結果匯入成功
157
- success: 結果匯入成功,在管理介面可以檢視。
158
- last_activity:
159
- new_result_at_html: "<span>在 %{link} 有新的結果</span>"
160
- models:
161
- result:
162
- fields:
163
- category: 類別
164
- created_at: 建立時間
165
- end_date: 結束日期
166
- id: 編號
167
- progress: 進度
168
- scope: 範圍
169
- start_date: 開始日期
170
- status: 狀態
171
- title: 標題
172
- status:
173
- fields:
174
- description: 說明
175
- key: 金鑰
176
- name: 名稱
177
- progress: 進度
178
- timeline_entry:
179
- fields:
180
- description: 說明
181
- entry_date: 日期
182
- result_m:
183
- executed: 已執行
184
- view: 檢視
185
- results:
186
- count:
187
- results_count:
188
- other: "%{count} 個結果"
189
- filters:
190
- all: 全部
191
- scopes: 範圍
192
- home:
193
- categories_label: 類別
194
- subcategories_label: 子類別
195
- home_header:
196
- global_status: 全域執行狀態
197
- nav_breadcrumb:
198
- global: 全域執行
199
- search:
200
- search: 搜尋操作
201
- show:
202
- stats:
203
- attendees: 與會者
204
- back_to_resource: 返回至結果
205
- comments: 評論
206
- contributions: 貢獻
207
- last_edited_by: 最後編輯者
208
- last_updated_at: 更新時間
209
- meetings: 會議
210
- proposals: 提案
211
- votes: 支援
212
- timeline:
213
- title: 專案評估
214
- admin:
215
- filters:
216
- results:
217
- category_id_eq:
218
- label: 類別
219
- scope_id_eq:
220
- label: 範圍
221
- status_id_eq:
222
- label: 狀態
223
- components:
224
- accountability:
225
- actions:
226
- comment: 評論
227
- name: 問責
228
- settings:
229
- global:
230
- categories_label: 類別名稱
231
- comments_enabled: 已啟用留言
232
- comments_max_length: 留言字數上限 (0 表示使用預設)
233
- display_progress_enabled: 顯示進度
234
- heading_leaf_level_results: 專案名稱
235
- heading_parent_level_results: 結果名稱
236
- intro: 介紹
237
- scope_id: 範圍
238
- scopes_enabled: 啟用的範圍
239
- subcategories_label: 子類別名稱
240
- step:
241
- comments_blocked: 留言已封鎖
242
- events:
243
- accountability:
244
- proposal_linked:
245
- email_intro: '提案 "%{proposal_title}" 已經包含在結果,可以在這個頁面檢視:'
246
- email_outro: 收到這個提醒是因為訂閱了 "%{proposal_title}" ,透過上面連結可以停止訂閱。
247
- email_subject: '%{proposal_title} 的更新'
248
- notification_title: 這個提案 <a href="%{proposal_path}">%{proposal_title}</a> 已經包含在 <a href="%{resource_path}">%{resource_title}</a> 結果
249
- result_progress_updated:
250
- email_intro: '這個結果 "%{resource_title}" 包含提案 "%{proposal_title}" 現在完成 %{progress}% ,可以透過網頁檢視:'
251
- email_outro: 收到這個通知表示正在訂閱 "%{proposal_title}" ,而這個提案包含在結果 "%{resource_title}" ,透過下面連結可以停止接收通知。
252
- email_subject: '%{resource_title} 的更新進度'
253
- notification_title: 這個結果 <a href="%{resource_path}">%{resource_title}</a> 包含提案 <a href="%{proposal_path}">%{proposal_title}</a>,現在完成 %{progress}% 。
254
- metrics:
255
- results:
256
- description: 產生的結果數量
257
- object: 結果
258
- title: 結果
259
- participatory_spaces:
260
- highlighted_results:
261
- see_all: 檢視所有結果 (%{count})
262
- resource_links:
263
- included_projects:
264
- result_project: 這個結果包含的專案
265
- included_proposals:
266
- result_proposal: 這個結果包含的提案
267
- statistics:
268
- results_count: 結果
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddTitleToTimelineEntries < ActiveRecord::Migration[6.1]
4
+ def change
5
+ add_column :decidim_accountability_timeline_entries, :title, :jsonb
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class MoveLegacyDescriptionToTitleOfTimelineEntries < ActiveRecord::Migration[6.1]
4
+ class TimelineEntry < ApplicationRecord
5
+ self.table_name = :decidim_accountability_timeline_entries
6
+ end
7
+
8
+ def up
9
+ TimelineEntry.find_each do |timeline_entry|
10
+ timeline_entry.update!(title: timeline_entry.description, description: nil)
11
+ end
12
+ end
13
+ end
@@ -159,7 +159,8 @@ Decidim.register_component(:accountability) do |component|
159
159
  rand(0..5).times do |i|
160
160
  child_result.timeline_entries.create!(
161
161
  entry_date: child_result.start_date + i.days,
162
- description: Decidim::Faker::Localized.sentence(word_count: 2)
162
+ title: Decidim::Faker::Localized.sentence(word_count: 2),
163
+ description: Decidim::Faker::Localized.paragraph(sentence_count: 1)
163
164
  )
164
165
  end
165
166
 
@@ -45,6 +45,7 @@ FactoryBot.define do
45
45
  factory :timeline_entry, class: "Decidim::Accountability::TimelineEntry" do
46
46
  result { create(:result) }
47
47
  entry_date { "12/7/2017" }
48
+ title { generate_localized_title }
48
49
  description { generate_localized_title }
49
50
  end
50
51
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-accountability version.
5
5
  module Accountability
6
6
  def self.version
7
- "0.26.8"
7
+ "0.27.0.rc1"
8
8
  end
9
9
  end
10
10
  end
@@ -7,6 +7,7 @@ module Decidim
7
7
 
8
8
  field :id, GraphQL::Types::ID, "The internal ID for this timeline entry", null: false
9
9
  field :entry_date, Decidim::Core::DateType, "The entry date for this timeline entry", null: true
10
+ field :title, Decidim::Core::TranslatedFieldType, "The title for this timeline entry", null: true
10
11
  field :description, Decidim::Core::TranslatedFieldType, "The description for this timeline entry", null: true
11
12
  field :created_at, Decidim::Core::DateTimeType, "When this timeline entry was created", null: true
12
13
  field :updated_at, Decidim::Core::DateTimeType, "When this timeline entry was updated", null: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-accountability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.8
4
+ version: 0.27.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: 2023-07-27 00:00:00.000000000 Z
13
+ date: 2022-06-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-comments
@@ -18,126 +18,126 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.26.8
21
+ version: 0.27.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.26.8
28
+ version: 0.27.0.rc1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-core
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.26.8
35
+ version: 0.27.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.26.8
42
+ version: 0.27.0.rc1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-admin
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.26.8
49
+ version: 0.27.0.rc1
50
50
  type: :development
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.26.8
56
+ version: 0.27.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.26.8
63
+ version: 0.27.0.rc1
64
64
  type: :development
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.26.8
70
+ version: 0.27.0.rc1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-comments
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.26.8
77
+ version: 0.27.0.rc1
78
78
  type: :development
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.26.8
84
+ version: 0.27.0.rc1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-dev
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.26.8
91
+ version: 0.27.0.rc1
92
92
  type: :development
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.26.8
98
+ version: 0.27.0.rc1
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-meetings
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.26.8
105
+ version: 0.27.0.rc1
106
106
  type: :development
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.26.8
112
+ version: 0.27.0.rc1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-participatory_processes
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.26.8
119
+ version: 0.27.0.rc1
120
120
  type: :development
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.26.8
126
+ version: 0.27.0.rc1
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-proposals
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.26.8
133
+ version: 0.27.0.rc1
134
134
  type: :development
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.26.8
140
+ version: 0.27.0.rc1
141
141
  description: An accountability component for decidim's participatory spaces.
142
142
  email:
143
143
  - josepjaume@gmail.com
@@ -212,10 +212,11 @@ files:
212
212
  - app/permissions/decidim/accountability/admin/permissions.rb
213
213
  - app/permissions/decidim/accountability/permissions.rb
214
214
  - app/presenters/decidim/accountability/admin_log/result_presenter.rb
215
+ - app/presenters/decidim/accountability/admin_log/status_presenter.rb
216
+ - app/presenters/decidim/accountability/admin_log/timeline_entry_presenter.rb
215
217
  - app/presenters/decidim/accountability/admin_log/value_types/parent_presenter.rb
216
218
  - app/queries/decidim/accountability/metrics/results_metric_manage.rb
217
219
  - app/services/decidim/accountability/diff_renderer.rb
218
- - app/services/decidim/accountability/result_search.rb
219
220
  - app/services/decidim/accountability/result_stats_calculator.rb
220
221
  - app/services/decidim/accountability/results_calculator.rb
221
222
  - app/services/decidim/accountability/results_csv_importer.rb
@@ -257,7 +258,6 @@ files:
257
258
  - app/views/decidim/accountability/versions/show.html.erb
258
259
  - app/views/decidim/participatory_spaces/_result.html.erb
259
260
  - config/assets.rb
260
- - config/environment.rb
261
261
  - config/locales/am-ET.yml
262
262
  - config/locales/ar-SA.yml
263
263
  - config/locales/ar.yml
@@ -280,7 +280,6 @@ files:
280
280
  - config/locales/et-EE.yml
281
281
  - config/locales/et.yml
282
282
  - config/locales/eu.yml
283
- - config/locales/fa-IR.yml
284
283
  - config/locales/fi-pl.yml
285
284
  - config/locales/fi-plain.yml
286
285
  - config/locales/fi.yml
@@ -289,7 +288,6 @@ files:
289
288
  - config/locales/fr.yml
290
289
  - config/locales/ga-IE.yml
291
290
  - config/locales/gl.yml
292
- - config/locales/gn-PY.yml
293
291
  - config/locales/hr-HR.yml
294
292
  - config/locales/hr.yml
295
293
  - config/locales/hu.yml
@@ -298,13 +296,10 @@ files:
298
296
  - config/locales/is.yml
299
297
  - config/locales/it.yml
300
298
  - config/locales/ja.yml
301
- - config/locales/ka-GE.yml
302
- - config/locales/kaa.yml
303
299
  - config/locales/ko-KR.yml
304
300
  - config/locales/ko.yml
305
301
  - config/locales/lb-LU.yml
306
302
  - config/locales/lb.yml
307
- - config/locales/lo-LA.yml
308
303
  - config/locales/lt-LT.yml
309
304
  - config/locales/lt.yml
310
305
  - config/locales/lv.yml
@@ -312,7 +307,6 @@ files:
312
307
  - config/locales/mt.yml
313
308
  - config/locales/nl.yml
314
309
  - config/locales/no.yml
315
- - config/locales/oc-FR.yml
316
310
  - config/locales/om-ET.yml
317
311
  - config/locales/pl.yml
318
312
  - config/locales/pt-BR.yml
@@ -347,6 +341,8 @@ files:
347
341
  - db/migrate/20180508170647_add_external_id_to_results.rb
348
342
  - db/migrate/20200320105903_index_foreign_keys_in_decidim_accountability_results.rb
349
343
  - db/migrate/20200827154103_add_commentable_counter_cache_to_results.rb
344
+ - db/migrate/20220331150008_add_title_to_timeline_entries.rb
345
+ - db/migrate/20220331150155_move_legacy_description_to_title_of_timeline_entries.rb
350
346
  - lib/decidim/accountability.rb
351
347
  - lib/decidim/accountability/admin.rb
352
348
  - lib/decidim/accountability/admin_engine.rb
@@ -372,14 +368,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
372
368
  requirements:
373
369
  - - ">="
374
370
  - !ruby/object:Gem::Version
375
- version: '2.7'
371
+ version: '3.0'
376
372
  required_rubygems_version: !ruby/object:Gem::Requirement
377
373
  requirements:
378
- - - ">="
374
+ - - ">"
379
375
  - !ruby/object:Gem::Version
380
- version: '0'
376
+ version: 1.3.1
381
377
  requirements: []
382
- rubygems_version: 3.1.6
378
+ rubygems_version: 3.2.22
383
379
  signing_key:
384
380
  specification_version: 4
385
381
  summary: Decidim accountability module
@@ -1,48 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Accountability
5
- # This class handles search and filtering of results. Needs a
6
- # `current_component` param with a `Decidim::Component` in order to
7
- # find the results.
8
- class ResultSearch < ResourceSearch
9
- text_search_fields :title, :description
10
-
11
- # Public: Initializes the service.
12
- #
13
- # options - A hash of options to modify the search. These options will be
14
- # converted to methods by SearchLight so they can be used on filter
15
- # methods. (Default {})
16
- # * component - A Decidim::Component to get the results from.
17
- # * organization - A Decidim::Organization object.
18
- # * parent_id - The parent ID of the result. The value is forced to false to force
19
- # the filter execution when the value is nil
20
- # * deep_search - Whether to perform the search on all children levels or just the
21
- # first one. True by default.
22
- def initialize(options = {})
23
- options = options.dup
24
- options[:deep_search] = true if options[:deep_search].nil?
25
- options[:parent_id] = "root" if options[:parent_id].nil?
26
- super(Result.all, options)
27
- end
28
-
29
- # Handle parent_id filter
30
- def search_parent_id
31
- parent_id = options[:parent_id]
32
- parent_id = nil if parent_id == "root"
33
-
34
- if options[:deep_search]
35
- query.where(parent_id: [parent_id] + children_ids(parent_id))
36
- else
37
- query.where(parent_id: parent_id)
38
- end
39
- end
40
-
41
- private
42
-
43
- def children_ids(parent_id)
44
- Result.where(parent_id: parent_id).pluck(:id)
45
- end
46
- end
47
- end
48
- end
File without changes
@@ -1 +0,0 @@
1
- fa:
@@ -1,15 +0,0 @@
1
- gn:
2
- activemodel:
3
- attributes:
4
- result:
5
- decidim_accountability_status_id: Tetã
6
- decidim_category_id: Hendápe
7
- description: Techaukaha
8
- timeline_entry:
9
- entry_date: Fecha
10
- decidim:
11
- accountability:
12
- models:
13
- timeline_entry:
14
- fields:
15
- description: Techaukaha
@@ -1 +0,0 @@
1
- ka: