decidim / decidim

The participatory democracy framework. A generator and multiple gems made with Ruby on Rails
https://decidim.org/
GNU Affero General Public License v3.0
1.48k stars 405 forks source link

Configure permissions at district (scope) level for the different components #5708

Closed carolromero closed 4 years ago

carolromero commented 4 years ago

ref: PP003

User story

Is your feature request related to a problem? Please describe.

In Barcelona's participatory budget process, citizens will be able to vote on projects in two different districts, in which they are registered and in another district of their choice (see #5711). As an administrator I need to configure some components and spaces to work with districts (scopes).

Describe the solution you'd like

To be able to configure an Initiative, or any component of: Budgets/Debates/Meetings/Proposals/Surveys for one or more Districts.

Note: currently the initiatives can be configured by a single scope. That configuration should be reviewed to see if some of the code can be used to do this.

Describe alternatives you've considered

To also make it work with Neighborhoods but this could be really tricky to have by our Municipal Census API. This is a real need, as for instance on Decidim Barcelona there are Initiatives that work at the Neighborhood level. [Page 19 of the Regulations of Citizen Participation mentions "barris" (catalan for neighborhoods)]. We'll tackle this in the future.

Additional context

URL: https://www.decidim.barcelona/admin/participatory_processes/pam/components/1/edit

:art: Backend

(this field needs to be a checkbox)

Does this issue could impact on users private data? Yes, this is about adding metadata to the verification (municipal census authorization).

Acceptance criteria

Related issues

Metadecidim link

agustibr commented 4 years ago

As this issue is related to Complex voting on Budgets #5711, we proposed creating a new component to group multiple Budget components, a multiple scope for a component is not needed, as each district will have its budget component.

@decidim/product could you update the Acceptance criteria?

Thanks 😀

carolromero commented 4 years ago

Ups sorry @agustibr, missed your comment. Updated!

agustibr commented 4 years ago

@carolromero no worries, thanks! 😀

agustibr commented 4 years ago

@decidim/product this has been deployed to staging (incluiding #5711), can you check it please? 😀

agustibr commented 4 years ago

@decidim/product this feature has been refactored due to the refactor of the Budgets component (in PR #6223) it has been deployed to staging, can you check it please? 😀

agustibr commented 4 years ago

Hi @decidim/product! This feature can be reviewed in https://decidim-staging-pr-126.herokuapp.com/