decidim-assemblies 0.23.2 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/assemblies/assembly_m_cell.rb +2 -0
- data/app/cells/decidim/assemblies/statistic/show.erb +9 -0
- data/app/cells/decidim/assemblies/statistic_cell.rb +20 -0
- data/app/cells/decidim/assemblies/statistics/show.erb +17 -0
- data/app/cells/decidim/assemblies/statistics_cell.rb +18 -0
- data/app/commands/decidim/assemblies/admin/create_assembly.rb +1 -0
- data/app/commands/decidim/assemblies/admin/create_assembly_admin.rb +12 -72
- data/app/commands/decidim/assemblies/admin/update_assembly.rb +2 -1
- data/app/controllers/decidim/assemblies/admin/imports_controller.rb +14 -0
- data/app/controllers/decidim/assemblies/admin/moderations/reports_controller.rb +14 -0
- data/app/controllers/decidim/assemblies/assemblies_controller.rb +1 -1
- data/app/events/decidim/role_assigned_to_assembly_event.rb +1 -1
- data/app/forms/decidim/assemblies/admin/assembly_form.rb +3 -0
- data/app/helpers/decidim/assemblies/admin/assemblies_admin_menu_helper.rb +15 -0
- data/app/models/decidim/assembly.rb +3 -3
- data/app/presenters/decidim/assemblies/assembly_stats_presenter.rb +35 -25
- data/app/queries/decidim/assemblies/organization_assemblies.rb +1 -1
- data/app/queries/decidim/assemblies/organization_published_assemblies.rb +1 -1
- data/app/serializers/decidim/assemblies/assembly_serializer.rb +1 -0
- data/app/views/decidim/assemblies/admin/assemblies/_form.html.erb +4 -0
- data/app/views/decidim/assemblies/admin/assemblies/index.html.erb +11 -1
- data/app/views/decidim/assemblies/assemblies/show.html.erb +1 -1
- data/app/views/layouts/decidim/admin/assemblies.html.erb +2 -20
- data/app/views/layouts/decidim/admin/assembly.html.erb +2 -1
- data/config/locales/ar.yml +2 -1
- data/config/locales/ca.yml +9 -3
- data/config/locales/cs.yml +9 -3
- data/config/locales/de.yml +9 -3
- data/config/locales/el.yml +2 -4
- data/config/locales/en.yml +9 -3
- data/config/locales/es-MX.yml +9 -3
- data/config/locales/es-PY.yml +9 -3
- data/config/locales/es.yml +9 -3
- data/config/locales/eu.yml +2 -1
- data/config/locales/fi-plain.yml +9 -3
- data/config/locales/fi.yml +9 -3
- data/config/locales/fr-CA.yml +9 -3
- data/config/locales/fr.yml +9 -3
- data/config/locales/gl.yml +7 -1
- data/config/locales/hu.yml +2 -4
- data/config/locales/id-ID.yml +2 -1
- data/config/locales/is-IS.yml +23 -1
- data/config/locales/it.yml +2 -4
- data/config/locales/ja.yml +2 -4
- data/config/locales/lv.yml +2 -4
- data/config/locales/nl.yml +15 -3
- data/config/locales/no.yml +9 -11
- data/config/locales/pl.yml +19 -7
- data/config/locales/pt-BR.yml +2 -1
- data/config/locales/pt.yml +2 -4
- data/config/locales/ro-RO.yml +149 -102
- data/config/locales/ru.yml +3 -2
- data/config/locales/sk.yml +0 -3
- data/config/locales/sl.yml +2 -1
- data/config/locales/sr-CS.yml +0 -3
- data/config/locales/sv.yml +3 -4
- data/config/locales/tr-TR.yml +2 -4
- data/config/locales/uk.yml +3 -2
- data/config/locales/zh-CN.yml +2 -4
- data/db/migrate/20210204152393_add_weight_field_to_assembly.rb +7 -0
- data/db/migrate/20210310120444_add_followable_counter_cache_to_assemblies.rb +16 -0
- data/lib/decidim/api/assemblies_type_type.rb +16 -0
- data/lib/decidim/api/assembly_member_type.rb +28 -0
- data/lib/decidim/api/assembly_type.rb +64 -0
- data/lib/decidim/assemblies.rb +1 -0
- data/lib/decidim/assemblies/admin_engine.rb +31 -1
- data/lib/decidim/assemblies/api.rb +9 -0
- data/lib/decidim/assemblies/engine.rb +3 -5
- data/lib/decidim/assemblies/participatory_space.rb +38 -38
- data/lib/decidim/assemblies/query_extensions.rb +39 -20
- data/lib/decidim/assemblies/test/factories.rb +5 -4
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +23 -14
- data/app/types/decidim/assemblies/assemblies_type_type.rb +0 -17
- data/app/types/decidim/assemblies/assembly_member_type.rb +0 -29
- data/app/types/decidim/assemblies/assembly_type.rb +0 -67
- data/app/views/decidim/assemblies/assemblies/_statistics.html.erb +0 -10
@@ -55,15 +55,15 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
55
55
|
|
56
56
|
2.times do |n|
|
57
57
|
params = {
|
58
|
-
title: Decidim::Faker::Localized.sentence(5),
|
59
|
-
slug: Faker::Internet.unique.slug(nil, "-"),
|
60
|
-
subtitle: Decidim::Faker::Localized.sentence(2),
|
58
|
+
title: Decidim::Faker::Localized.sentence(word_count: 5),
|
59
|
+
slug: Decidim::Faker::Internet.unique.slug(words: nil, glue: "-"),
|
60
|
+
subtitle: Decidim::Faker::Localized.sentence(word_count: 2),
|
61
61
|
hashtag: "##{Faker::Lorem.word}",
|
62
62
|
short_description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
63
|
-
Decidim::Faker::Localized.sentence(3)
|
63
|
+
Decidim::Faker::Localized.sentence(word_count: 3)
|
64
64
|
end,
|
65
65
|
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
66
|
-
Decidim::Faker::Localized.paragraph(3)
|
66
|
+
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
67
67
|
end,
|
68
68
|
organization: organization,
|
69
69
|
hero_image: File.new(File.join(seeds_root, "city.jpeg")), # Keep after organization
|
@@ -71,17 +71,17 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
71
71
|
promoted: true,
|
72
72
|
published_at: 2.weeks.ago,
|
73
73
|
meta_scope: Decidim::Faker::Localized.word,
|
74
|
-
developer_group: Decidim::Faker::Localized.sentence(1),
|
75
|
-
local_area: Decidim::Faker::Localized.sentence(2),
|
76
|
-
target: Decidim::Faker::Localized.sentence(3),
|
77
|
-
participatory_scope: Decidim::Faker::Localized.sentence(1),
|
78
|
-
participatory_structure: Decidim::Faker::Localized.sentence(2),
|
74
|
+
developer_group: Decidim::Faker::Localized.sentence(word_count: 1),
|
75
|
+
local_area: Decidim::Faker::Localized.sentence(word_count: 2),
|
76
|
+
target: Decidim::Faker::Localized.sentence(word_count: 3),
|
77
|
+
participatory_scope: Decidim::Faker::Localized.sentence(word_count: 1),
|
78
|
+
participatory_structure: Decidim::Faker::Localized.sentence(word_count: 2),
|
79
79
|
scope: n.positive? ? Decidim::Scope.reorder(Arel.sql("RANDOM()")).first : nil,
|
80
80
|
purpose_of_action: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
81
|
-
Decidim::Faker::Localized.paragraph(3)
|
81
|
+
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
82
82
|
end,
|
83
83
|
composition: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
84
|
-
Decidim::Faker::Localized.paragraph(3)
|
84
|
+
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
85
85
|
end,
|
86
86
|
assembly_type: Decidim::AssembliesType.create!(organization: organization, title: Decidim::Faker::Localized.word),
|
87
87
|
creation_date: 1.day.from_now,
|
@@ -90,13 +90,13 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
90
90
|
duration: 2.days.from_now,
|
91
91
|
included_at: 5.days.from_now,
|
92
92
|
closing_date: 5.days.from_now,
|
93
|
-
closing_date_reason: Decidim::Faker::Localized.sentence(3),
|
93
|
+
closing_date_reason: Decidim::Faker::Localized.sentence(word_count: 3),
|
94
94
|
internal_organisation: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
95
|
-
Decidim::Faker::Localized.paragraph(3)
|
95
|
+
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
96
96
|
end,
|
97
97
|
is_transparent: true,
|
98
98
|
special_features: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
99
|
-
Decidim::Faker::Localized.paragraph(3)
|
99
|
+
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
100
100
|
end,
|
101
101
|
twitter_handler: Faker::Lorem.word,
|
102
102
|
facebook_handler: Faker::Lorem.word,
|
@@ -138,15 +138,15 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
138
138
|
end
|
139
139
|
|
140
140
|
child = Decidim::Assembly.create!(
|
141
|
-
title: Decidim::Faker::Localized.sentence(5),
|
142
|
-
slug: Faker::Internet.unique.slug(nil, "-"),
|
143
|
-
subtitle: Decidim::Faker::Localized.sentence(2),
|
141
|
+
title: Decidim::Faker::Localized.sentence(word_count: 5),
|
142
|
+
slug: Decidim::Faker::Internet.unique.slug(words: nil, glue: "-"),
|
143
|
+
subtitle: Decidim::Faker::Localized.sentence(word_count: 2),
|
144
144
|
hashtag: "##{Faker::Lorem.word}",
|
145
145
|
short_description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
146
|
-
Decidim::Faker::Localized.sentence(3)
|
146
|
+
Decidim::Faker::Localized.sentence(word_count: 3)
|
147
147
|
end,
|
148
148
|
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
149
|
-
Decidim::Faker::Localized.paragraph(3)
|
149
|
+
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
150
150
|
end,
|
151
151
|
organization: organization,
|
152
152
|
hero_image: File.new(File.join(seeds_root, "city.jpeg")), # Keep after organization
|
@@ -154,11 +154,11 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
154
154
|
promoted: true,
|
155
155
|
published_at: 2.weeks.ago,
|
156
156
|
meta_scope: Decidim::Faker::Localized.word,
|
157
|
-
developer_group: Decidim::Faker::Localized.sentence(1),
|
158
|
-
local_area: Decidim::Faker::Localized.sentence(2),
|
159
|
-
target: Decidim::Faker::Localized.sentence(3),
|
160
|
-
participatory_scope: Decidim::Faker::Localized.sentence(1),
|
161
|
-
participatory_structure: Decidim::Faker::Localized.sentence(2),
|
157
|
+
developer_group: Decidim::Faker::Localized.sentence(word_count: 1),
|
158
|
+
local_area: Decidim::Faker::Localized.sentence(word_count: 2),
|
159
|
+
target: Decidim::Faker::Localized.sentence(word_count: 3),
|
160
|
+
participatory_scope: Decidim::Faker::Localized.sentence(word_count: 1),
|
161
|
+
participatory_structure: Decidim::Faker::Localized.sentence(word_count: 2),
|
162
162
|
scope: n.positive? ? Decidim::Scope.reorder(Arel.sql("RANDOM()")).first : nil,
|
163
163
|
parent: assembly
|
164
164
|
)
|
@@ -167,37 +167,37 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
167
167
|
current_assembly.add_to_index_as_search_resource
|
168
168
|
attachment_collection = Decidim::AttachmentCollection.create!(
|
169
169
|
name: Decidim::Faker::Localized.word,
|
170
|
-
description: Decidim::Faker::Localized.sentence(5),
|
170
|
+
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
171
171
|
collection_for: current_assembly
|
172
172
|
)
|
173
173
|
|
174
174
|
Decidim::Attachment.create!(
|
175
|
-
title: Decidim::Faker::Localized.sentence(2),
|
176
|
-
description: Decidim::Faker::Localized.sentence(5),
|
175
|
+
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
176
|
+
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
177
177
|
attachment_collection: attachment_collection,
|
178
178
|
attached_to: current_assembly,
|
179
179
|
file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
|
180
180
|
)
|
181
181
|
|
182
182
|
Decidim::Attachment.create!(
|
183
|
-
title: Decidim::Faker::Localized.sentence(2),
|
184
|
-
description: Decidim::Faker::Localized.sentence(5),
|
183
|
+
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
184
|
+
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
185
185
|
attached_to: current_assembly,
|
186
186
|
file: File.new(File.join(seeds_root, "city.jpeg")) # Keep after attached_to
|
187
187
|
)
|
188
188
|
|
189
189
|
Decidim::Attachment.create!(
|
190
|
-
title: Decidim::Faker::Localized.sentence(2),
|
191
|
-
description: Decidim::Faker::Localized.sentence(5),
|
190
|
+
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
191
|
+
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
192
192
|
attached_to: current_assembly,
|
193
193
|
file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
|
194
194
|
)
|
195
195
|
|
196
196
|
2.times do
|
197
197
|
Decidim::Category.create!(
|
198
|
-
name: Decidim::Faker::Localized.sentence(5),
|
198
|
+
name: Decidim::Faker::Localized.sentence(word_count: 5),
|
199
199
|
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
200
|
-
Decidim::Faker::Localized.paragraph(3)
|
200
|
+
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
201
201
|
end,
|
202
202
|
participatory_space: current_assembly
|
203
203
|
)
|
@@ -207,9 +207,9 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
207
207
|
Decidim::AssemblyMember.create!(
|
208
208
|
full_name: Faker::Name.name,
|
209
209
|
gender: Faker::Lorem.word,
|
210
|
-
birthday: Faker::Date.birthday(18, 65),
|
210
|
+
birthday: Faker::Date.birthday(min_age: 18, max_age: 65),
|
211
211
|
birthplace: Faker::Demographic.demonym,
|
212
|
-
designation_date: Faker::Date.between(1.year.ago, 1.month.ago),
|
212
|
+
designation_date: Faker::Date.between(from: 1.year.ago, to: 1.month.ago),
|
213
213
|
designation_mode: Faker::Lorem.word,
|
214
214
|
position: position,
|
215
215
|
position_other: position == "other" ? Faker::Job.position : nil,
|
@@ -220,9 +220,9 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
220
220
|
Decidim::AssemblyMember.create!(
|
221
221
|
user: current_assembly.organization.users.first,
|
222
222
|
gender: Faker::Lorem.word,
|
223
|
-
birthday: Faker::Date.birthday(18, 65),
|
223
|
+
birthday: Faker::Date.birthday(min_age: 18, max_age: 65),
|
224
224
|
birthplace: Faker::Demographic.demonym,
|
225
|
-
designation_date: Faker::Date.between(1.year.ago, 1.month.ago),
|
225
|
+
designation_date: Faker::Date.between(from: 1.year.ago, to: 1.month.ago),
|
226
226
|
designation_mode: Faker::Lorem.word,
|
227
227
|
position: "other",
|
228
228
|
position_other: Faker::Job.position,
|
@@ -10,31 +10,50 @@ module Decidim
|
|
10
10
|
# type - A GraphQL::BaseType to extend.
|
11
11
|
#
|
12
12
|
# Returns nothing.
|
13
|
-
def self.
|
14
|
-
type.field :
|
15
|
-
type !types[AssembliesTypeType]
|
16
|
-
description "Lists all assemblies types"
|
13
|
+
def self.included(type)
|
14
|
+
type.field :assemblies_types, [AssembliesTypeType], null: false, description: "Lists all assemblies types"
|
17
15
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
type.field :assemblies_type, AssembliesTypeType, null: true, description: "Finds an assemblies type group" do
|
17
|
+
argument :id, GraphQL::Types::ID, description: "The ID of the Assemblies type", required: true
|
18
|
+
end
|
19
|
+
type.field :assemblies,
|
20
|
+
[Decidim::Assemblies::AssemblyType],
|
21
|
+
null: true,
|
22
|
+
description: "Lists all assemblies" do
|
23
|
+
argument :filter, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputFilter, "This argument let's you filter the results", required: false
|
24
|
+
argument :order, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputSort, "This argument let's you order the results", required: false
|
23
25
|
end
|
24
26
|
|
25
|
-
type.field :
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
resolve lambda { |_obj, args, ctx|
|
31
|
-
Decidim::AssembliesType.find_by(
|
32
|
-
organization: ctx[:current_organization],
|
33
|
-
id: args[:id]
|
34
|
-
)
|
35
|
-
}
|
27
|
+
type.field :assembly,
|
28
|
+
Decidim::Assemblies::AssemblyType,
|
29
|
+
null: true,
|
30
|
+
description: "Finds a assembly" do
|
31
|
+
argument :id, GraphQL::Types::ID, "The ID of the participatory space", required: false
|
36
32
|
end
|
37
33
|
end
|
34
|
+
|
35
|
+
def assemblies_types(*)
|
36
|
+
Decidim::AssembliesType.where(
|
37
|
+
organization: context[:current_organization]
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
def assemblies_type(id:)
|
42
|
+
Decidim::AssembliesType.find_by(
|
43
|
+
organization: context[:current_organization],
|
44
|
+
id: id
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
48
|
+
def assemblies(filter: {}, order: {})
|
49
|
+
manifest = Decidim.participatory_space_manifests.select { |m| m.name == :assemblies }.first
|
50
|
+
Decidim::Core::ParticipatorySpaceListBase.new(manifest: manifest).call(object, { filter: filter, order: order }, context)
|
51
|
+
end
|
52
|
+
|
53
|
+
def assembly(id: nil)
|
54
|
+
manifest = Decidim.participatory_space_manifests.select { |m| m.name == :assemblies }.first
|
55
|
+
Decidim::Core::ParticipatorySpaceFinderBase.new(manifest: manifest).call(object, { id: id }, context)
|
56
|
+
end
|
38
57
|
end
|
39
58
|
end
|
40
59
|
end
|
@@ -5,7 +5,7 @@ require "decidim/dev"
|
|
5
5
|
|
6
6
|
FactoryBot.define do
|
7
7
|
sequence(:assembly_slug) do |n|
|
8
|
-
"#{Faker::Internet.slug(nil, "-")}-#{n}"
|
8
|
+
"#{Decidim::Faker::Internet.slug(words: nil, glue: "-")}-#{n}"
|
9
9
|
end
|
10
10
|
|
11
11
|
factory :assemblies_setting, class: "Decidim::AssembliesSetting" do
|
@@ -53,6 +53,7 @@ FactoryBot.define do
|
|
53
53
|
instagram_handler { "others" }
|
54
54
|
youtube_handler { "others" }
|
55
55
|
github_handler { "others" }
|
56
|
+
weight { 1 }
|
56
57
|
|
57
58
|
trait :with_type do
|
58
59
|
assembly_type { create :assemblies_type, organization: organization }
|
@@ -162,14 +163,14 @@ FactoryBot.define do
|
|
162
163
|
|
163
164
|
full_name { Faker::Name.name }
|
164
165
|
gender { Faker::Lorem.word }
|
165
|
-
birthday { Faker::Date.birthday(18, 65) }
|
166
|
+
birthday { Faker::Date.birthday(min_age: 18, max_age: 65) }
|
166
167
|
birthplace { Faker::Lorem.word }
|
167
168
|
position { Decidim::AssemblyMember::POSITIONS.first }
|
168
|
-
designation_date { Faker::Date.between(1.year.ago, 1.month.ago) }
|
169
|
+
designation_date { Faker::Date.between(from: 1.year.ago, to: 1.month.ago) }
|
169
170
|
designation_mode { Faker::Lorem.word }
|
170
171
|
|
171
172
|
trait :ceased do
|
172
|
-
ceased_date { Faker::Date.between(1.day.ago, 5.days.ago) }
|
173
|
+
ceased_date { Faker::Date.between(from: 1.day.ago, to: 5.days.ago) }
|
173
174
|
end
|
174
175
|
|
175
176
|
trait :with_user do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-assemblies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.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: 2021-
|
13
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.24.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.24.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-admin
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.24.0
|
36
36
|
type: :development
|
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.
|
42
|
+
version: 0.24.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-dev
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.24.0
|
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.
|
56
|
+
version: 0.24.0
|
57
57
|
description: Assemblies component for decidim.
|
58
58
|
email:
|
59
59
|
- josepjaume@gmail.com
|
@@ -82,6 +82,10 @@ files:
|
|
82
82
|
- app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb
|
83
83
|
- app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_settings_form/show.erb
|
84
84
|
- app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_settings_form_cell.rb
|
85
|
+
- app/cells/decidim/assemblies/statistic/show.erb
|
86
|
+
- app/cells/decidim/assemblies/statistic_cell.rb
|
87
|
+
- app/cells/decidim/assemblies/statistics/show.erb
|
88
|
+
- app/cells/decidim/assemblies/statistics_cell.rb
|
85
89
|
- app/cells/decidim/assembly_activity_cell.rb
|
86
90
|
- app/commands/decidim/assemblies/admin/copy_assembly.rb
|
87
91
|
- app/commands/decidim/assemblies/admin/create_assemblies_type.rb
|
@@ -121,6 +125,8 @@ files:
|
|
121
125
|
- app/controllers/decidim/assemblies/admin/components_controller.rb
|
122
126
|
- app/controllers/decidim/assemblies/admin/concerns/assembly_admin.rb
|
123
127
|
- app/controllers/decidim/assemblies/admin/exports_controller.rb
|
128
|
+
- app/controllers/decidim/assemblies/admin/imports_controller.rb
|
129
|
+
- app/controllers/decidim/assemblies/admin/moderations/reports_controller.rb
|
124
130
|
- app/controllers/decidim/assemblies/admin/moderations_controller.rb
|
125
131
|
- app/controllers/decidim/assemblies/admin/participatory_space_private_users_controller.rb
|
126
132
|
- app/controllers/decidim/assemblies/admin/participatory_space_private_users_csv_imports_controller.rb
|
@@ -137,6 +143,7 @@ files:
|
|
137
143
|
- app/forms/decidim/assemblies/admin/assembly_import_form.rb
|
138
144
|
- app/forms/decidim/assemblies/admin/assembly_member_form.rb
|
139
145
|
- app/forms/decidim/assemblies/admin/assembly_user_role_form.rb
|
146
|
+
- app/helpers/decidim/assemblies/admin/assemblies_admin_menu_helper.rb
|
140
147
|
- app/helpers/decidim/assemblies/admin/assemblies_helper.rb
|
141
148
|
- app/helpers/decidim/assemblies/assemblies_helper.rb
|
142
149
|
- app/helpers/decidim/assemblies/filter_assemblies_helper.rb
|
@@ -177,9 +184,6 @@ files:
|
|
177
184
|
- app/serializers/decidim/assemblies/assembly_importer.rb
|
178
185
|
- app/serializers/decidim/assemblies/assembly_serializer.rb
|
179
186
|
- app/services/decidim/assemblies/assembly_search.rb
|
180
|
-
- app/types/decidim/assemblies/assemblies_type_type.rb
|
181
|
-
- app/types/decidim/assemblies/assembly_member_type.rb
|
182
|
-
- app/types/decidim/assemblies/assembly_type.rb
|
183
187
|
- app/views/decidim/assemblies/_assembly.html.erb
|
184
188
|
- app/views/decidim/assemblies/_filter_by_type.html.erb
|
185
189
|
- app/views/decidim/assemblies/admin/assemblies/_form.html.erb
|
@@ -208,7 +212,6 @@ files:
|
|
208
212
|
- app/views/decidim/assemblies/assemblies/_nav_breadcumb.html.erb
|
209
213
|
- app/views/decidim/assemblies/assemblies/_parent_assemblies.html.erb
|
210
214
|
- app/views/decidim/assemblies/assemblies/_promoted_assembly.html.erb
|
211
|
-
- app/views/decidim/assemblies/assemblies/_statistics.html.erb
|
212
215
|
- app/views/decidim/assemblies/assemblies/index.html.erb
|
213
216
|
- app/views/decidim/assemblies/assemblies/index.js.erb
|
214
217
|
- app/views/decidim/assemblies/assemblies/show.html.erb
|
@@ -306,13 +309,19 @@ files:
|
|
306
309
|
- db/migrate/20200320105907_index_foreign_keys_in_decidim_assembly_user_roles.rb
|
307
310
|
- db/migrate/20200416132109_remove_legacy_decidim_assembly_type.rb
|
308
311
|
- db/migrate/20200430202456_create_decidim_assemblies_settings.rb
|
312
|
+
- db/migrate/20210204152393_add_weight_field_to_assembly.rb
|
313
|
+
- db/migrate/20210310120444_add_followable_counter_cache_to_assemblies.rb
|
309
314
|
- db/seeds/Exampledocument.pdf
|
310
315
|
- db/seeds/city.jpeg
|
311
316
|
- db/seeds/city2.jpeg
|
312
317
|
- db/seeds/homepage_image.jpg
|
318
|
+
- lib/decidim/api/assemblies_type_type.rb
|
319
|
+
- lib/decidim/api/assembly_member_type.rb
|
320
|
+
- lib/decidim/api/assembly_type.rb
|
313
321
|
- lib/decidim/assemblies.rb
|
314
322
|
- lib/decidim/assemblies/admin.rb
|
315
323
|
- lib/decidim/assemblies/admin_engine.rb
|
324
|
+
- lib/decidim/assemblies/api.rb
|
316
325
|
- lib/decidim/assemblies/engine.rb
|
317
326
|
- lib/decidim/assemblies/participatory_space.rb
|
318
327
|
- lib/decidim/assemblies/query_extensions.rb
|
@@ -330,14 +339,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
330
339
|
requirements:
|
331
340
|
- - ">="
|
332
341
|
- !ruby/object:Gem::Version
|
333
|
-
version: '2.
|
342
|
+
version: '2.7'
|
334
343
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
335
344
|
requirements:
|
336
345
|
- - ">="
|
337
346
|
- !ruby/object:Gem::Version
|
338
347
|
version: '0'
|
339
348
|
requirements: []
|
340
|
-
rubygems_version: 3.
|
349
|
+
rubygems_version: 3.1.2
|
341
350
|
signing_key:
|
342
351
|
specification_version: 4
|
343
352
|
summary: Decidim assemblies module
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Assemblies
|
5
|
-
# This type represents an AssembliesType.
|
6
|
-
AssembliesTypeType = GraphQL::ObjectType.define do
|
7
|
-
name "AssembliesType"
|
8
|
-
description "An assemblies type"
|
9
|
-
|
10
|
-
field :id, !types.ID, "The assemblies type's unique ID"
|
11
|
-
field :title, !Decidim::Core::TranslatedFieldType, "The title of this assemblies type."
|
12
|
-
field :createdAt, !Decidim::Core::DateTimeType, "The time this assemblies type was created", property: :created_at
|
13
|
-
field :updatedAt, !Decidim::Core::DateTimeType, "The time this assemblies type was updated", property: :updated_at
|
14
|
-
field :assemblies, !types[Decidim::Assemblies::AssemblyType], "Assemblies with this assemblies type"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|