decidim-proposals 0.20.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/proposals/admin/proposals.es6 +24 -11
- data/app/cells/decidim/proposals/cost_report/show.erb +35 -0
- data/app/cells/decidim/proposals/cost_report_cell.rb +42 -0
- data/app/cells/decidim/proposals/proposal_m_cell.rb +9 -1
- data/app/cells/decidim/proposals/proposal_tags/show.erb +12 -10
- data/app/cells/decidim/proposals/proposal_tags_cell.rb +5 -0
- data/app/commands/decidim/proposals/admin/answer_proposal.rb +24 -46
- data/app/commands/decidim/proposals/admin/assign_proposals_to_valuator.rb +61 -0
- data/app/commands/decidim/proposals/admin/create_proposal.rb +5 -0
- data/app/commands/decidim/proposals/admin/notify_proposal_answer.rb +85 -0
- data/app/commands/decidim/proposals/admin/publish_answers.rb +67 -0
- data/app/commands/decidim/proposals/admin/unassign_proposals_from_valuator.rb +62 -0
- data/app/commands/decidim/proposals/admin/update_proposal_scope.rb +75 -0
- data/app/controllers/concerns/decidim/proposals/admin/filterable.rb +82 -0
- data/app/controllers/decidim/proposals/admin/proposal_answers_controller.rb +16 -6
- data/app/controllers/decidim/proposals/admin/proposal_notes_controller.rb +8 -9
- data/app/controllers/decidim/proposals/admin/proposals_controller.rb +105 -29
- data/app/controllers/decidim/proposals/admin/valuation_assignments_controller.rb +58 -0
- data/app/controllers/decidim/proposals/collaborative_drafts_controller.rb +19 -3
- data/app/controllers/decidim/proposals/proposals_controller.rb +42 -7
- data/app/controllers/decidim/proposals/versions_controller.rb +4 -1
- data/app/events/decidim/proposals/admin/update_proposal_scope_event.rb +11 -0
- data/app/forms/decidim/proposals/admin/proposal_answer_form.rb +27 -2
- data/app/forms/decidim/proposals/admin/valuation_assignment_form.rb +37 -0
- data/app/forms/decidim/proposals/proposal_wizard_create_step_form.rb +8 -0
- data/app/helpers/decidim/proposals/admin/filterable_helper.rb +17 -0
- data/app/helpers/decidim/proposals/admin/proposal_bulk_actions_helper.rb +35 -0
- data/app/helpers/decidim/proposals/admin/proposal_rankings_helper.rb +63 -0
- data/app/helpers/decidim/proposals/admin/proposals_helper.rb +122 -0
- data/app/helpers/decidim/proposals/application_helper.rb +36 -25
- data/app/helpers/decidim/proposals/collaborative_draft_helper.rb +9 -9
- data/app/helpers/decidim/proposals/proposal_cells_helper.rb +1 -1
- data/app/helpers/decidim/proposals/proposals_helper.rb +18 -0
- data/app/models/decidim/proposals/proposal.rb +163 -16
- data/app/models/decidim/proposals/valuation_assignment.rb +24 -0
- data/app/permissions/decidim/proposals/admin/permissions.rb +77 -11
- data/app/presenters/decidim/proposals/admin_log/proposal_presenter.rb +1 -1
- data/app/presenters/decidim/proposals/admin_log/valuation_assignment_presenter.rb +51 -0
- data/app/presenters/decidim/proposals/admin_log/value_types/valuator_role_user_presenter.rb +19 -0
- data/app/presenters/decidim/proposals/collaborative_draft_presenter.rb +2 -28
- data/app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb +22 -0
- data/app/presenters/decidim/proposals/proposal_presenter.rb +26 -1
- data/app/services/decidim/proposals/collaborative_draft_search.rb +18 -10
- data/app/services/decidim/proposals/proposal_search.rb +33 -40
- data/app/types/decidim/proposals/proposal_input_filter.rb +29 -0
- data/app/types/decidim/proposals/proposal_input_sort.rb +28 -0
- data/app/types/decidim/proposals/proposal_type.rb +35 -4
- data/app/types/decidim/proposals/proposals_type.rb +14 -17
- data/app/views/decidim/proposals/admin/proposal_answers/_form.html.erb +35 -0
- data/app/views/decidim/proposals/admin/proposal_notes/_form.html.erb +1 -1
- data/app/views/decidim/proposals/admin/proposal_notes/_proposal_notes.html.erb +1 -1
- data/app/views/decidim/proposals/admin/proposals/_bulk-actions.html.erb +8 -2
- data/app/views/decidim/proposals/admin/proposals/_form.html.erb +1 -1
- data/app/views/decidim/proposals/admin/proposals/_proposal-tr.html.erb +25 -17
- data/app/views/decidim/proposals/admin/proposals/bulk_actions/_assign_to_valuator.html.erb +15 -0
- data/app/views/decidim/proposals/admin/proposals/bulk_actions/_dropdown.html.erb +21 -1
- data/app/views/decidim/proposals/admin/proposals/bulk_actions/_publish_answers.html.erb +14 -0
- data/app/views/decidim/proposals/admin/proposals/bulk_actions/_scope-change.html.erb +25 -0
- data/app/views/decidim/proposals/admin/proposals/bulk_actions/_unassign_from_valuator.html.erb +15 -0
- data/app/views/decidim/proposals/admin/proposals/index.html.erb +16 -7
- data/app/views/decidim/proposals/admin/proposals/publish_answers.js.erb +12 -0
- data/app/views/decidim/proposals/admin/proposals/show.html.erb +186 -0
- data/app/views/decidim/proposals/admin/proposals/update_category.js.erb +3 -2
- data/app/views/decidim/proposals/admin/proposals/update_scope.js.erb +27 -0
- data/app/views/decidim/proposals/collaborative_drafts/_filters.html.erb +3 -3
- data/app/views/decidim/proposals/proposals/_edit_form_fields.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/_filters.html.erb +12 -12
- data/app/views/decidim/proposals/proposals/_proposal_badge.html.erb +1 -4
- data/app/views/decidim/proposals/proposals/_proposal_preview.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/_vote_button.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/index.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/new.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/show.html.erb +17 -23
- data/config/locales/ar.yml +69 -17
- data/config/locales/ca.yml +113 -18
- data/config/locales/cs.yml +123 -31
- data/config/locales/de.yml +38 -18
- data/config/locales/el.yml +1 -0
- data/config/locales/en.yml +112 -17
- data/config/locales/es-MX.yml +112 -17
- data/config/locales/es-PY.yml +112 -17
- data/config/locales/es.yml +113 -18
- data/config/locales/eu.yml +38 -18
- data/config/locales/fi-plain.yml +113 -18
- data/config/locales/fi.yml +113 -18
- data/config/locales/fr.yml +38 -18
- data/config/locales/gl.yml +38 -18
- data/config/locales/hu.yml +112 -17
- data/config/locales/id-ID.yml +38 -18
- data/config/locales/is-IS.yml +25 -15
- data/config/locales/it.yml +38 -18
- data/config/locales/nl.yml +43 -18
- data/config/locales/no.yml +66 -18
- data/config/locales/pl.yml +38 -18
- data/config/locales/pt-BR.yml +39 -19
- data/config/locales/pt.yml +39 -19
- data/config/locales/ru.yml +25 -17
- data/config/locales/sv.yml +39 -18
- data/config/locales/tr-TR.yml +38 -18
- data/config/locales/uk.yml +25 -17
- data/db/migrate/20200203111239_add_proposal_valuation_assignments.rb +12 -0
- data/db/migrate/20200210135152_add_costs_to_proposals.rb +9 -0
- data/db/migrate/20200212120110_sync_proposals_state_with_amendments_state.rb +28 -0
- data/db/migrate/20200227175922_add_state_published_at_to_proposals.rb +7 -0
- data/db/migrate/20200306123652_publish_existing_proposals_state.rb +15 -0
- data/lib/decidim/proposals.rb +1 -0
- data/lib/decidim/proposals/admin_engine.rb +7 -3
- data/lib/decidim/proposals/component.rb +39 -19
- data/lib/decidim/proposals/engine.rb +1 -1
- data/lib/decidim/proposals/test/factories.rb +55 -0
- data/lib/decidim/proposals/valuatable.rb +21 -0
- data/lib/decidim/proposals/version.rb +1 -1
- metadata +53 -36
- data/app/views/decidim/proposals/admin/proposal_answers/edit.html.erb +0 -22
- data/app/views/decidim/proposals/admin/proposal_notes/index.html.erb +0 -3
- data/app/views/decidim/proposals/admin/shared/_info_proposal.html.erb +0 -20
- data/app/views/decidim/proposals/proposal_widgets/show.html.erb +0 -4
@@ -112,7 +112,7 @@ module Decidim
|
|
112
112
|
payload = data[:this]
|
113
113
|
if payload[:from_type] == Decidim::Accountability::Result.name && payload[:to_type] == Proposal.name
|
114
114
|
proposal = Proposal.find(payload[:to_id])
|
115
|
-
proposal.update(state: "accepted")
|
115
|
+
proposal.update(state: "accepted", state_published_at: Time.current)
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
@@ -223,6 +223,14 @@ FactoryBot.define do
|
|
223
223
|
end
|
224
224
|
end
|
225
225
|
|
226
|
+
trait :with_card_image_allowed do
|
227
|
+
settings do
|
228
|
+
{
|
229
|
+
allow_card_image: true
|
230
|
+
}
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
226
234
|
trait :with_extra_hashtags do
|
227
235
|
transient do
|
228
236
|
automatic_hashtags { "AutoHashtag AnotherAutoHashtag" }
|
@@ -239,6 +247,16 @@ FactoryBot.define do
|
|
239
247
|
}
|
240
248
|
end
|
241
249
|
end
|
250
|
+
|
251
|
+
trait :without_publish_answers_immediately do
|
252
|
+
step_settings do
|
253
|
+
{
|
254
|
+
participatory_space.active_step.id => {
|
255
|
+
publish_answers_immediately: false
|
256
|
+
}
|
257
|
+
}
|
258
|
+
end
|
259
|
+
end
|
242
260
|
end
|
243
261
|
|
244
262
|
factory :proposal, class: "Decidim::Proposals::Proposal" do
|
@@ -299,26 +317,41 @@ FactoryBot.define do
|
|
299
317
|
trait :evaluating do
|
300
318
|
state { "evaluating" }
|
301
319
|
answered_at { Time.current }
|
320
|
+
state_published_at { Time.current }
|
302
321
|
end
|
303
322
|
|
304
323
|
trait :accepted do
|
305
324
|
state { "accepted" }
|
306
325
|
answered_at { Time.current }
|
326
|
+
state_published_at { Time.current }
|
307
327
|
end
|
308
328
|
|
309
329
|
trait :rejected do
|
310
330
|
state { "rejected" }
|
311
331
|
answered_at { Time.current }
|
332
|
+
state_published_at { Time.current }
|
312
333
|
end
|
313
334
|
|
314
335
|
trait :withdrawn do
|
315
336
|
state { "withdrawn" }
|
316
337
|
end
|
317
338
|
|
339
|
+
trait :accepted_not_published do
|
340
|
+
state { "accepted" }
|
341
|
+
answered_at { Time.current }
|
342
|
+
state_published_at { nil }
|
343
|
+
answer { generate_localized_title }
|
344
|
+
end
|
345
|
+
|
318
346
|
trait :with_answer do
|
319
347
|
state { "accepted" }
|
320
348
|
answer { generate_localized_title }
|
321
349
|
answered_at { Time.current }
|
350
|
+
state_published_at { Time.current }
|
351
|
+
end
|
352
|
+
|
353
|
+
trait :not_answered do
|
354
|
+
state { nil }
|
322
355
|
end
|
323
356
|
|
324
357
|
trait :draft do
|
@@ -342,6 +375,12 @@ FactoryBot.define do
|
|
342
375
|
create_list(:proposal_endorsement, 5, proposal: proposal)
|
343
376
|
end
|
344
377
|
end
|
378
|
+
|
379
|
+
trait :with_amendments do
|
380
|
+
after :create do |proposal|
|
381
|
+
create_list(:proposal_amendment, 5, amendable: proposal)
|
382
|
+
end
|
383
|
+
end
|
345
384
|
end
|
346
385
|
|
347
386
|
factory :proposal_vote, class: "Decidim::Proposals::ProposalVote" do
|
@@ -354,6 +393,13 @@ FactoryBot.define do
|
|
354
393
|
author { build(:user, organization: proposal.organization) }
|
355
394
|
end
|
356
395
|
|
396
|
+
factory :proposal_amendment, class: "Decidim::Amendment" do
|
397
|
+
amendable { build(:proposal) }
|
398
|
+
emendation { build(:proposal, component: amendable.component) }
|
399
|
+
amender { build(:user, organization: amendable.component.participatory_space.organization) }
|
400
|
+
state { Decidim::Amendment::STATES.sample }
|
401
|
+
end
|
402
|
+
|
357
403
|
factory :user_group_proposal_endorsement, class: "Decidim::Proposals::ProposalEndorsement" do
|
358
404
|
proposal { build(:proposal) }
|
359
405
|
author { build(:user, organization: proposal.organization) }
|
@@ -408,4 +454,13 @@ FactoryBot.define do
|
|
408
454
|
description { "<script>alert(\"DESCRIPTION\");</script>\n" + Faker::Lorem.sentences(3).join("\n") }
|
409
455
|
component { create(:proposal_component) }
|
410
456
|
end
|
457
|
+
|
458
|
+
factory :valuation_assignment, class: "Decidim::Proposals::ValuationAssignment" do
|
459
|
+
proposal
|
460
|
+
valuator_role do
|
461
|
+
space = proposal.component.participatory_space
|
462
|
+
organization = space.organization
|
463
|
+
build :participatory_process_user_role, role: :valuator, user: build(:user, organization: organization)
|
464
|
+
end
|
465
|
+
end
|
411
466
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Proposals
|
5
|
+
# A set of methods and features related to proposal valuations.
|
6
|
+
module Valuatable
|
7
|
+
extend ActiveSupport::Concern
|
8
|
+
include Decidim::Comments::Commentable
|
9
|
+
|
10
|
+
included do
|
11
|
+
has_many :valuation_assignments, foreign_key: "decidim_proposal_id", dependent: :destroy
|
12
|
+
|
13
|
+
def valuators
|
14
|
+
valuator_role_ids = valuation_assignments.where(proposal: self).pluck(:valuator_role_id)
|
15
|
+
user_ids = participatory_space.user_roles(:valuator).where(id: valuator_role_ids).pluck(:decidim_user_id)
|
16
|
+
participatory_space.organization.users.where(id: user_ids)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-proposals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
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: 2020-
|
13
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: acts_as_list
|
@@ -60,42 +60,28 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.21.0
|
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.
|
70
|
+
version: 0.21.0
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-core
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.21.0
|
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.
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: diffy
|
87
|
-
requirement: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - "~>"
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '3.3'
|
92
|
-
type: :runtime
|
93
|
-
prerelease: false
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - "~>"
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: '3.3'
|
84
|
+
version: 0.21.0
|
99
85
|
- !ruby/object:Gem::Dependency
|
100
86
|
name: doc2text
|
101
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,84 +144,84 @@ dependencies:
|
|
158
144
|
requirements:
|
159
145
|
- - '='
|
160
146
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
147
|
+
version: 0.21.0
|
162
148
|
type: :development
|
163
149
|
prerelease: false
|
164
150
|
version_requirements: !ruby/object:Gem::Requirement
|
165
151
|
requirements:
|
166
152
|
- - '='
|
167
153
|
- !ruby/object:Gem::Version
|
168
|
-
version: 0.
|
154
|
+
version: 0.21.0
|
169
155
|
- !ruby/object:Gem::Dependency
|
170
156
|
name: decidim-assemblies
|
171
157
|
requirement: !ruby/object:Gem::Requirement
|
172
158
|
requirements:
|
173
159
|
- - '='
|
174
160
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.
|
161
|
+
version: 0.21.0
|
176
162
|
type: :development
|
177
163
|
prerelease: false
|
178
164
|
version_requirements: !ruby/object:Gem::Requirement
|
179
165
|
requirements:
|
180
166
|
- - '='
|
181
167
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.
|
168
|
+
version: 0.21.0
|
183
169
|
- !ruby/object:Gem::Dependency
|
184
170
|
name: decidim-budgets
|
185
171
|
requirement: !ruby/object:Gem::Requirement
|
186
172
|
requirements:
|
187
173
|
- - '='
|
188
174
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.
|
175
|
+
version: 0.21.0
|
190
176
|
type: :development
|
191
177
|
prerelease: false
|
192
178
|
version_requirements: !ruby/object:Gem::Requirement
|
193
179
|
requirements:
|
194
180
|
- - '='
|
195
181
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.
|
182
|
+
version: 0.21.0
|
197
183
|
- !ruby/object:Gem::Dependency
|
198
184
|
name: decidim-dev
|
199
185
|
requirement: !ruby/object:Gem::Requirement
|
200
186
|
requirements:
|
201
187
|
- - '='
|
202
188
|
- !ruby/object:Gem::Version
|
203
|
-
version: 0.
|
189
|
+
version: 0.21.0
|
204
190
|
type: :development
|
205
191
|
prerelease: false
|
206
192
|
version_requirements: !ruby/object:Gem::Requirement
|
207
193
|
requirements:
|
208
194
|
- - '='
|
209
195
|
- !ruby/object:Gem::Version
|
210
|
-
version: 0.
|
196
|
+
version: 0.21.0
|
211
197
|
- !ruby/object:Gem::Dependency
|
212
198
|
name: decidim-meetings
|
213
199
|
requirement: !ruby/object:Gem::Requirement
|
214
200
|
requirements:
|
215
201
|
- - '='
|
216
202
|
- !ruby/object:Gem::Version
|
217
|
-
version: 0.
|
203
|
+
version: 0.21.0
|
218
204
|
type: :development
|
219
205
|
prerelease: false
|
220
206
|
version_requirements: !ruby/object:Gem::Requirement
|
221
207
|
requirements:
|
222
208
|
- - '='
|
223
209
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.
|
210
|
+
version: 0.21.0
|
225
211
|
- !ruby/object:Gem::Dependency
|
226
212
|
name: decidim-participatory_processes
|
227
213
|
requirement: !ruby/object:Gem::Requirement
|
228
214
|
requirements:
|
229
215
|
- - '='
|
230
216
|
- !ruby/object:Gem::Version
|
231
|
-
version: 0.
|
217
|
+
version: 0.21.0
|
232
218
|
type: :development
|
233
219
|
prerelease: false
|
234
220
|
version_requirements: !ruby/object:Gem::Requirement
|
235
221
|
requirements:
|
236
222
|
- - '='
|
237
223
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.
|
224
|
+
version: 0.21.0
|
239
225
|
description: A proposals component for decidim's participatory spaces.
|
240
226
|
email:
|
241
227
|
- josepjaume@gmail.com
|
@@ -266,6 +252,8 @@ files:
|
|
266
252
|
- app/cells/decidim/proposals/collaborative_draft_m/footer.erb
|
267
253
|
- app/cells/decidim/proposals/collaborative_draft_m/tags.erb
|
268
254
|
- app/cells/decidim/proposals/collaborative_draft_m_cell.rb
|
255
|
+
- app/cells/decidim/proposals/cost_report/show.erb
|
256
|
+
- app/cells/decidim/proposals/cost_report_cell.rb
|
269
257
|
- app/cells/decidim/proposals/endorsers_list/show.erb
|
270
258
|
- app/cells/decidim/proposals/endorsers_list_cell.rb
|
271
259
|
- app/cells/decidim/proposals/highlighted_proposals/show.erb
|
@@ -291,17 +279,22 @@ files:
|
|
291
279
|
- app/cells/decidim/proposals/proposal_tags_cell.rb
|
292
280
|
- app/commands/decidim/proposals/accept_access_to_collaborative_draft.rb
|
293
281
|
- app/commands/decidim/proposals/admin/answer_proposal.rb
|
282
|
+
- app/commands/decidim/proposals/admin/assign_proposals_to_valuator.rb
|
294
283
|
- app/commands/decidim/proposals/admin/create_proposal.rb
|
295
284
|
- app/commands/decidim/proposals/admin/create_proposal_note.rb
|
296
285
|
- app/commands/decidim/proposals/admin/discard_participatory_text.rb
|
297
286
|
- app/commands/decidim/proposals/admin/import_participatory_text.rb
|
298
287
|
- app/commands/decidim/proposals/admin/import_proposals.rb
|
299
288
|
- app/commands/decidim/proposals/admin/merge_proposals.rb
|
289
|
+
- app/commands/decidim/proposals/admin/notify_proposal_answer.rb
|
290
|
+
- app/commands/decidim/proposals/admin/publish_answers.rb
|
300
291
|
- app/commands/decidim/proposals/admin/publish_participatory_text.rb
|
301
292
|
- app/commands/decidim/proposals/admin/split_proposals.rb
|
293
|
+
- app/commands/decidim/proposals/admin/unassign_proposals_from_valuator.rb
|
302
294
|
- app/commands/decidim/proposals/admin/update_participatory_text.rb
|
303
295
|
- app/commands/decidim/proposals/admin/update_proposal.rb
|
304
296
|
- app/commands/decidim/proposals/admin/update_proposal_category.rb
|
297
|
+
- app/commands/decidim/proposals/admin/update_proposal_scope.rb
|
305
298
|
- app/commands/decidim/proposals/attachment_methods.rb
|
306
299
|
- app/commands/decidim/proposals/create_collaborative_draft.rb
|
307
300
|
- app/commands/decidim/proposals/create_proposal.rb
|
@@ -321,6 +314,7 @@ files:
|
|
321
314
|
- app/commands/decidim/proposals/vote_proposal.rb
|
322
315
|
- app/commands/decidim/proposals/withdraw_collaborative_draft.rb
|
323
316
|
- app/commands/decidim/proposals/withdraw_proposal.rb
|
317
|
+
- app/controllers/concerns/decidim/proposals/admin/filterable.rb
|
324
318
|
- app/controllers/concerns/decidim/proposals/collaborative_orderable.rb
|
325
319
|
- app/controllers/concerns/decidim/proposals/orderable.rb
|
326
320
|
- app/controllers/decidim/proposals/admin/application_controller.rb
|
@@ -331,6 +325,7 @@ files:
|
|
331
325
|
- app/controllers/decidim/proposals/admin/proposals_imports_controller.rb
|
332
326
|
- app/controllers/decidim/proposals/admin/proposals_merges_controller.rb
|
333
327
|
- app/controllers/decidim/proposals/admin/proposals_splits_controller.rb
|
328
|
+
- app/controllers/decidim/proposals/admin/valuation_assignments_controller.rb
|
334
329
|
- app/controllers/decidim/proposals/application_controller.rb
|
335
330
|
- app/controllers/decidim/proposals/collaborative_draft_collaborator_requests_controller.rb
|
336
331
|
- app/controllers/decidim/proposals/collaborative_drafts_controller.rb
|
@@ -341,6 +336,7 @@ files:
|
|
341
336
|
- app/controllers/decidim/proposals/versions_controller.rb
|
342
337
|
- app/events/decidim/proposals/accepted_proposal_event.rb
|
343
338
|
- app/events/decidim/proposals/admin/update_proposal_category_event.rb
|
339
|
+
- app/events/decidim/proposals/admin/update_proposal_scope_event.rb
|
344
340
|
- app/events/decidim/proposals/collaborative_draft_access_accepted_event.rb
|
345
341
|
- app/events/decidim/proposals/collaborative_draft_access_rejected_event.rb
|
346
342
|
- app/events/decidim/proposals/collaborative_draft_access_request_event.rb
|
@@ -367,11 +363,15 @@ files:
|
|
367
363
|
- app/forms/decidim/proposals/admin/proposals_import_form.rb
|
368
364
|
- app/forms/decidim/proposals/admin/proposals_merge_form.rb
|
369
365
|
- app/forms/decidim/proposals/admin/proposals_split_form.rb
|
366
|
+
- app/forms/decidim/proposals/admin/valuation_assignment_form.rb
|
370
367
|
- app/forms/decidim/proposals/collaborative_draft_form.rb
|
371
368
|
- app/forms/decidim/proposals/proposal_form.rb
|
372
369
|
- app/forms/decidim/proposals/proposal_wizard_create_step_form.rb
|
373
370
|
- app/forms/decidim/proposals/reject_access_to_collaborative_draft_form.rb
|
374
371
|
- app/forms/decidim/proposals/request_access_to_collaborative_draft_form.rb
|
372
|
+
- app/helpers/decidim/proposals/admin/filterable_helper.rb
|
373
|
+
- app/helpers/decidim/proposals/admin/proposal_bulk_actions_helper.rb
|
374
|
+
- app/helpers/decidim/proposals/admin/proposal_rankings_helper.rb
|
375
375
|
- app/helpers/decidim/proposals/admin/proposals_helper.rb
|
376
376
|
- app/helpers/decidim/proposals/application_helper.rb
|
377
377
|
- app/helpers/decidim/proposals/collaborative_draft_cells_helper.rb
|
@@ -394,14 +394,18 @@ files:
|
|
394
394
|
- app/models/decidim/proposals/proposal_endorsement.rb
|
395
395
|
- app/models/decidim/proposals/proposal_note.rb
|
396
396
|
- app/models/decidim/proposals/proposal_vote.rb
|
397
|
+
- app/models/decidim/proposals/valuation_assignment.rb
|
397
398
|
- app/permissions/decidim/proposals/admin/permissions.rb
|
398
399
|
- app/permissions/decidim/proposals/permissions.rb
|
399
400
|
- app/presenters/decidim/proposals/admin_log/proposal_note_presenter.rb
|
400
401
|
- app/presenters/decidim/proposals/admin_log/proposal_presenter.rb
|
402
|
+
- app/presenters/decidim/proposals/admin_log/valuation_assignment_presenter.rb
|
401
403
|
- app/presenters/decidim/proposals/admin_log/value_types/proposal_state_presenter.rb
|
402
404
|
- app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
|
405
|
+
- app/presenters/decidim/proposals/admin_log/value_types/valuator_role_user_presenter.rb
|
403
406
|
- app/presenters/decidim/proposals/collaborative_draft_presenter.rb
|
404
407
|
- app/presenters/decidim/proposals/log/resource_presenter.rb
|
408
|
+
- app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
|
405
409
|
- app/presenters/decidim/proposals/official_author_presenter.rb
|
406
410
|
- app/presenters/decidim/proposals/proposal_presenter.rb
|
407
411
|
- app/queries/decidim/proposals/filtered_proposals.rb
|
@@ -417,6 +421,8 @@ files:
|
|
417
421
|
- app/services/decidim/proposals/diff_renderer.rb
|
418
422
|
- app/services/decidim/proposals/proposal_builder.rb
|
419
423
|
- app/services/decidim/proposals/proposal_search.rb
|
424
|
+
- app/types/decidim/proposals/proposal_input_filter.rb
|
425
|
+
- app/types/decidim/proposals/proposal_input_sort.rb
|
420
426
|
- app/types/decidim/proposals/proposal_type.rb
|
421
427
|
- app/types/decidim/proposals/proposals_type.rb
|
422
428
|
- app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_proposals.html.erb
|
@@ -424,24 +430,29 @@ files:
|
|
424
430
|
- app/views/decidim/proposals/admin/participatory_texts/_bulk-actions.html.erb
|
425
431
|
- app/views/decidim/proposals/admin/participatory_texts/index.html.erb
|
426
432
|
- app/views/decidim/proposals/admin/participatory_texts/new_import.html.erb
|
427
|
-
- app/views/decidim/proposals/admin/proposal_answers/
|
433
|
+
- app/views/decidim/proposals/admin/proposal_answers/_form.html.erb
|
428
434
|
- app/views/decidim/proposals/admin/proposal_notes/_form.html.erb
|
429
435
|
- app/views/decidim/proposals/admin/proposal_notes/_proposal_notes.html.erb
|
430
|
-
- app/views/decidim/proposals/admin/proposal_notes/index.html.erb
|
431
436
|
- app/views/decidim/proposals/admin/proposals/_bulk-actions.html.erb
|
432
437
|
- app/views/decidim/proposals/admin/proposals/_form.html.erb
|
433
438
|
- app/views/decidim/proposals/admin/proposals/_js-callout.html.erb
|
434
439
|
- app/views/decidim/proposals/admin/proposals/_proposal-tr.html.erb
|
440
|
+
- app/views/decidim/proposals/admin/proposals/bulk_actions/_assign_to_valuator.html.erb
|
435
441
|
- app/views/decidim/proposals/admin/proposals/bulk_actions/_dropdown.html.erb
|
436
442
|
- app/views/decidim/proposals/admin/proposals/bulk_actions/_merge.html.erb
|
443
|
+
- app/views/decidim/proposals/admin/proposals/bulk_actions/_publish_answers.html.erb
|
437
444
|
- app/views/decidim/proposals/admin/proposals/bulk_actions/_recategorize.html.erb
|
445
|
+
- app/views/decidim/proposals/admin/proposals/bulk_actions/_scope-change.html.erb
|
438
446
|
- app/views/decidim/proposals/admin/proposals/bulk_actions/_split.html.erb
|
447
|
+
- app/views/decidim/proposals/admin/proposals/bulk_actions/_unassign_from_valuator.html.erb
|
439
448
|
- app/views/decidim/proposals/admin/proposals/edit.html.erb
|
440
449
|
- app/views/decidim/proposals/admin/proposals/index.html.erb
|
441
450
|
- app/views/decidim/proposals/admin/proposals/new.html.erb
|
451
|
+
- app/views/decidim/proposals/admin/proposals/publish_answers.js.erb
|
452
|
+
- app/views/decidim/proposals/admin/proposals/show.html.erb
|
442
453
|
- app/views/decidim/proposals/admin/proposals/update_category.js.erb
|
454
|
+
- app/views/decidim/proposals/admin/proposals/update_scope.js.erb
|
443
455
|
- app/views/decidim/proposals/admin/proposals_imports/new.html.erb
|
444
|
-
- app/views/decidim/proposals/admin/shared/_info_proposal.html.erb
|
445
456
|
- app/views/decidim/proposals/collaborative_drafts/_accept_request_access_form.html.erb
|
446
457
|
- app/views/decidim/proposals/collaborative_drafts/_collaborative_drafts.html.erb
|
447
458
|
- app/views/decidim/proposals/collaborative_drafts/_collaborator_requests.html.erb
|
@@ -464,7 +475,6 @@ files:
|
|
464
475
|
- app/views/decidim/proposals/proposal_endorsements/identities.html.erb
|
465
476
|
- app/views/decidim/proposals/proposal_endorsements/update_buttons_and_counters.js.erb
|
466
477
|
- app/views/decidim/proposals/proposal_votes/update_buttons_and_counters.js.erb
|
467
|
-
- app/views/decidim/proposals/proposal_widgets/show.html.erb
|
468
478
|
- app/views/decidim/proposals/proposals/_count.html.erb
|
469
479
|
- app/views/decidim/proposals/proposals/_edit_form_fields.html.erb
|
470
480
|
- app/views/decidim/proposals/proposals/_endorsement_button.html.erb
|
@@ -508,6 +518,7 @@ files:
|
|
508
518
|
- config/locales/cs.yml
|
509
519
|
- config/locales/de.yml
|
510
520
|
- config/locales/el-GR.yml
|
521
|
+
- config/locales/el.yml
|
511
522
|
- config/locales/en.yml
|
512
523
|
- config/locales/eo-UY.yml
|
513
524
|
- config/locales/es-MX.yml
|
@@ -571,6 +582,11 @@ files:
|
|
571
582
|
- db/migrate/20181017084221_make_author_polymorhpic_for_proposal_endorsements.rb
|
572
583
|
- db/migrate/20181026073215_add_created_in_meeting.rb
|
573
584
|
- db/migrate/20190215113158_use_md5_indexes.rb
|
585
|
+
- db/migrate/20200203111239_add_proposal_valuation_assignments.rb
|
586
|
+
- db/migrate/20200210135152_add_costs_to_proposals.rb
|
587
|
+
- db/migrate/20200212120110_sync_proposals_state_with_amendments_state.rb
|
588
|
+
- db/migrate/20200227175922_add_state_published_at_to_proposals.rb
|
589
|
+
- db/migrate/20200306123652_publish_existing_proposals_state.rb
|
574
590
|
- lib/decidim/content_parsers/proposal_parser.rb
|
575
591
|
- lib/decidim/content_renderers/proposal_renderer.rb
|
576
592
|
- lib/decidim/proposals.rb
|
@@ -586,6 +602,7 @@ files:
|
|
586
602
|
- lib/decidim/proposals/participatory_text_section.rb
|
587
603
|
- lib/decidim/proposals/proposal_serializer.rb
|
588
604
|
- lib/decidim/proposals/test/factories.rb
|
605
|
+
- lib/decidim/proposals/valuatable.rb
|
589
606
|
- lib/decidim/proposals/version.rb
|
590
607
|
homepage: https://github.com/decidim/decidim
|
591
608
|
licenses:
|