Add assemblies & processes weight field#7283
Conversation
* Add en translation * Add weight in commands update and create * Add weight field in assembly form * Add field in assembly view
45ece16 to
e16cff5
Compare
* Add en translation * Add weight in commands update and create * Add weight field in participatory process form * Add field in participatory process view
|
@tramuntanal I've restarted the job and changed the PR status, thanks for warning me! Should @decidim/product review this? |
|
@tramuntanal Is there somewhere we can test this? Thanks! |
|
Hello @carolromero, you can test that in http://staging-am2019.decidim.int.coditdev.net To test this you can:
If the weight is greater, the process or assembly will occupy a lower place in the list. |
|
@LauraJaimeC this is working fine, good job! |
| VisibleParticipatoryProcesses.new(@user), | ||
| PublishedParticipatoryProcesses.new | ||
| ).query | ||
| ).query.order(weight: :asc) |
There was a problem hiding this comment.
Can you add tests for this, please?
| PublishedAssemblies.new, | ||
| VisibleAssemblies.new(@user) | ||
| ).query | ||
| ).query.order(weight: :asc) |
There was a problem hiding this comment.
Can you add tests for this, please?
Test for assemblies and participatory process in order to check order by weight in public and admin views.
|
Hi @mrcasals, I have added the tests that you have suggested. I have also added order the processes and assemblies in the admin view with their tests. can you check it? thank you! |
|
Sorry, clicked the wrong button! |
🎩 What? Why?
As and admin, I would like to organize the way in which Assemblies and Processes are displayed in the public page.
In some complex participatory activities, there can be many assamblies or processes and they are sorted by date of the participatory space creation, dismantling the design and planification of the participatory action.
This confuses the users and affects the way the participatory activity has been designed.
This PR adds a "Weight" field in the configuration of each Assemblie/Process working similarly to the weigh in components, which stablish an order.
Related Metadecidim proposal:
📌 Related Issues
Testing
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots