Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Scopes order in dropdown #44

Merged
merged 2 commits into from
Nov 7, 2023
Merged

fix: Scopes order in dropdown #44

merged 2 commits into from
Nov 7, 2023

Conversation

Quentinchampenois
Copy link
Contributor

🎩 Description

Please describe your pull request.

With the simple proposal module, scopes are not anymore multi-tenant compliant. This PR ensure scopes retrieved are related to current_organization.

It also sorts the scopes and subscopes by alphabetical order

📌 Related Issues

Link your PR to an issue

Testing

Describe the best way to test or validate your PR.

Example:

  • Log in as admin
  • Access Backoffice
  • Go somewhere with scopes dropdown
  • See scopes sorted

Tasks

  • Add specs

@Quentinchampenois Quentinchampenois marked this pull request as ready for review November 7, 2023 09:21
@Quentinchampenois Quentinchampenois requested review from moustachu, luciegrau, a team and AyakorK and removed request for a team November 7, 2023 09:21
@luciegrau luciegrau merged commit d331392 into develop Nov 7, 2023
13 checks passed
@luciegrau luciegrau deleted the fix/scopes_order branch November 8, 2023 07:59
luciegrau added a commit that referenced this pull request Nov 8, 2023
#45)

* add simple proposals

* Add simple proposal and decidim awesome's correct branch

The simple proposal module is on my personal fork because modifications to the position of the field were necessary. 

The decidim awesome one is on an octree fork because the private proposals feature is yet to be merge into the main decidim awesome repo

* fix Gemfile for decidim-simple_proposal overload

* Rubocop & ERB Lint

* Add missing migration

* rubocop

* Fix proposal creation for SimpleProposal x Awesome proposal private fields
- remove old proposals_controller.rb overload
- overload SimpleProposals proposals_controller_override.rb

* Fix i18n locales

* Fix tests i18n

* rubocop

* fix: Remove exports from Phone AH

* fix: Deactivate factory_bot

* lint: Fix rubocop offense

* fix: reversibility private body

* fix: Move address field in edit form

* fix: Add missing simple proposal translation

* fix: Scopes order in dropdown (#44)

* fix: Scopes order in dropdown

* fix: Ensure scopes are only those in current_organization

---------

Co-authored-by: Simonas <[email protected]>
Co-authored-by: quentinchampenois <[email protected]>
Co-authored-by: Lucie Grau <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants