decidim-participatory_processes 0.28.4 → 0.28.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -3
- data/app/models/decidim/participatory_process.rb +1 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb +1 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +1 -1
- data/config/locales/ar.yml +12 -1
- data/config/locales/bn-BD.yml +1 -0
- data/config/locales/bs-BA.yml +33 -0
- data/config/locales/ca.yml +3 -3
- data/config/locales/cs.yml +4 -4
- data/config/locales/de.yml +1 -1
- data/config/locales/el.yml +1 -1
- data/config/locales/es-MX.yml +1 -1
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/es.yml +1 -1
- data/config/locales/eu.yml +49 -49
- data/config/locales/fi-plain.yml +1 -1
- data/config/locales/fi.yml +7 -7
- data/config/locales/fr-CA.yml +2 -2
- data/config/locales/fr.yml +2 -2
- data/config/locales/ga-IE.yml +10 -0
- data/config/locales/gl.yml +12 -1
- data/config/locales/hu.yml +1 -1
- data/config/locales/id-ID.yml +11 -1
- data/config/locales/is-IS.yml +11 -1
- data/config/locales/it.yml +12 -1
- data/config/locales/lb.yml +12 -1
- data/config/locales/lv.yml +11 -1
- data/config/locales/nl.yml +11 -0
- data/config/locales/no.yml +2 -2
- data/config/locales/pt-BR.yml +9 -1
- data/config/locales/pt.yml +17 -0
- data/config/locales/ro-RO.yml +5 -0
- data/config/locales/ru.yml +11 -1
- data/config/locales/sk.yml +11 -1
- data/config/locales/sv.yml +9 -7
- data/config/locales/tr-TR.yml +12 -1
- data/config/locales/uk.yml +11 -1
- data/config/locales/zh-CN.yml +11 -1
- data/decidim-participatory_processes.gemspec +1 -1
- data/lib/decidim/participatory_processes/query_extensions.rb +26 -0
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +13 -11
@@ -11,6 +11,22 @@ module Decidim
|
|
11
11
|
#
|
12
12
|
# Returns nothing.
|
13
13
|
def self.included(type)
|
14
|
+
type.field :participatory_processes,
|
15
|
+
[Decidim::ParticipatoryProcesses::ParticipatoryProcessType],
|
16
|
+
null: true,
|
17
|
+
description: "Lists all participatory_processes" do
|
18
|
+
argument :filter, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputFilter, "This argument lets you filter the results", required: false
|
19
|
+
argument :order, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputSort, "This argument lets you order the results", required: false
|
20
|
+
end
|
21
|
+
|
22
|
+
type.field :participatory_process,
|
23
|
+
Decidim::ParticipatoryProcesses::ParticipatoryProcessType,
|
24
|
+
null: true,
|
25
|
+
description: "Finds a participatory_process" do
|
26
|
+
argument :id, GraphQL::Types::ID, "The ID of the participatory space", required: false
|
27
|
+
argument :slug, String, "The slug of the participatory process", required: false
|
28
|
+
end
|
29
|
+
|
14
30
|
type.field :participatory_process_groups, [ParticipatoryProcessGroupType],
|
15
31
|
null: false,
|
16
32
|
description: "Lists all participatory process groups"
|
@@ -30,6 +46,16 @@ module Decidim
|
|
30
46
|
end
|
31
47
|
end
|
32
48
|
|
49
|
+
def participatory_processes(filter: {}, order: {})
|
50
|
+
manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
|
51
|
+
Decidim::Core::ParticipatorySpaceListBase.new(manifest:).call(object, { filter:, order: }, context)
|
52
|
+
end
|
53
|
+
|
54
|
+
def participatory_process(id: nil, slug: nil)
|
55
|
+
manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
|
56
|
+
Decidim::Core::ParticipatorySpaceFinderBase.new(manifest:).call(object, { id:, slug: }, context)
|
57
|
+
end
|
58
|
+
|
33
59
|
def participatory_process_groups(*)
|
34
60
|
Decidim::ParticipatoryProcessGroup.where(
|
35
61
|
organization: context[:current_organization]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-participatory_processes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.5
|
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:
|
13
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,56 +18,56 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.28.
|
21
|
+
version: 0.28.5
|
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.
|
28
|
+
version: 0.28.5
|
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.28.
|
35
|
+
version: 0.28.5
|
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.28.
|
42
|
+
version: 0.28.5
|
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.28.
|
49
|
+
version: 0.28.5
|
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.28.
|
56
|
+
version: 0.28.5
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-meetings
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.28.
|
63
|
+
version: 0.28.5
|
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.28.
|
70
|
+
version: 0.28.5
|
71
71
|
description: Participatory processes component for decidim.
|
72
72
|
email:
|
73
73
|
- josepjaume@gmail.com
|
@@ -289,6 +289,8 @@ files:
|
|
289
289
|
- config/locales/ar.yml
|
290
290
|
- config/locales/bg-BG.yml
|
291
291
|
- config/locales/bg.yml
|
292
|
+
- config/locales/bn-BD.yml
|
293
|
+
- config/locales/bs-BA.yml
|
292
294
|
- config/locales/ca.yml
|
293
295
|
- config/locales/cs-CZ.yml
|
294
296
|
- config/locales/cs.yml
|
@@ -434,7 +436,7 @@ files:
|
|
434
436
|
- lib/tasks/decidim_participatory_processes.rake
|
435
437
|
homepage: https://decidim.org
|
436
438
|
licenses:
|
437
|
-
- AGPL-3.0
|
439
|
+
- AGPL-3.0-or-later
|
438
440
|
metadata:
|
439
441
|
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
440
442
|
documentation_uri: https://docs.decidim.org/
|