Participatory Space Resourceable between Assemblies and ParticipatoryProcesses #2851
Participatory Space Resourceable between Assemblies and ParticipatoryProcesses #2851
Conversation
|
@oriolgual @decidim/lot-core can you pre- review the new system for link Assembly and ParticipatorySpace.? |
|
@isaacmg410 the problem with the current implementation is that Assemblies is still depending on ParticipatoryProcesses (since the constant |
|
You could use something like spaces = Decidim.participatory_space_manifests.flat_map do |manifest|
manifest.participatory_spaces.call(current_organization)
end |
|
@oriolgual is there any way to filter the participatory_space_manifests by their type, returning only the processeS? |
|
I'm afraid there's no way right now but it could be easily extended! |
80a7083 to
e80479d
Compare
Codecov Report
@@ Coverage Diff @@
## master #2851 +/- ##
==========================================
- Coverage 98.73% 98.69% -0.04%
==========================================
Files 1670 1674 +4
Lines 39731 39817 +86
==========================================
+ Hits 39227 39298 +71
- Misses 504 519 +15 |
|
@decidim/lot-core can you take a look into this please. 😀 |
| # Public: A formatted collection of ParticipatoryProcesses to be used | ||
| # in forms. | ||
| # # Public: A formatted collection of ParticipatoryProcesses selected on | ||
| # # Assemblies to be used in forms. |
There was a problem hiding this comment.
These docs have a weird format
|
|
||
| module Decidim | ||
| # A concern with the features needed when you want a model to be able to create | ||
| # links from it to another resource. |
There was a problem hiding this comment.
Can you add docs with the difference between this concern and Decidim::Resourceable?
There was a problem hiding this comment.
@mrcasals Do you mean creating a file inside the /docs folder?
There was a problem hiding this comment.
No, just improve the docs in this file!
… and ParticipatorySpaceResourceable
|
@decidim/lot-core Can you review it again? |
🎩 What? Why?
Apply new system to link assemblies with participatory processes.
📌 Related Issues
📋 Subtasks
CHANGELOGentry