github decidim/decidim v0.12.0

latest releases: v0.28.1, v0.27.6, v0.26.10...
5 years ago

Upgrade notes (authorizations):

Authorizations workflows now use a settings manifest to define their options.
That means site admins will no longer need to introduce raw json to define
authorization options. If you were previously using an authorization workflow
with options, you'll need to update the workflow manifest to define them. As an
example, if you were filtering an authorization only to users in the 08001
postal code via an authorization option (by introducing { "postal_code" : "08001" } in the options field of a participatory space action permissions),
you'll need to define it in the workflow manifest as:

Decidim::Verifications.register_workflow(:my_handler) do |workflow|
  # ... stuff ...

  workflow.options do |options|
    options.attribute :postal_code, type: :string, required: false
  end
end

If you have some custom modules from which you are registering a resource, you
will need to tweak how those resources are being registered as per #3416. You
must now set a resource name:

  # inside decidim-my-module/lib/decidim/my-module/component.rb
  component.register_resource(:my_resource) do |resource|
    resource.model_class_name = "Decidim::MyComponent::MyResource"
  end

Upgrade notes (search):

In order for the currently existing resources to be indexed, you'll have to
manually trigger a reindex. Since only proposals and meetings are currently
indexed, you can do that executing:

Decidim::Meetings::Meeting.find_each(&:add_to_index_as_search_resource)
Decidim::Proposals::Proposal.find_each(&:add_to_index_as_search_resource)

Upgrade notes (TOS):

Due to a bug that got fixed on this release, some organizations might not
have a TOS page, which some migrations rely on. Please execute this code on
production before upgrading so the pages get created correctly and the migrations
don't fail.

Decidim::Organization.find_each { |organization| Decidim::System::CreateDefaultPages.call(organization) }

Added:

  • decidim-core: Added a global search engine for Proposals and Meetings. #3559
  • decidim-meetings: Add Agenda and Agenda Item entities to manage meeting agenda. #3305
  • decidim-docs: Add documentation for developers getting started. #3297
  • decidim-assemblies: Add members to assemblies. #3008
  • decidim-assemblies: An assembly member can be related to an existing user. #3302
  • decidim-assemblies: Show the assemblies that a user belongs in their profile. #3410
  • decidim-core: Added the user_profile_bottom view hook to the public profiel page. #3410
  • decidim-meetings: Add organizer to meeting and meeting types #3136
  • decidim-meetings: Add Minutes entity to manage Minutes. #3213
  • decidim-initiatives: Notify initiatives milestones #3341
  • decidim-admin: Links to participatory space index & show pages from the admin dashboard. #3325
  • decidim-admin: Add autocomplete field with customizable url to fetch results. #3301
  • decidim-admin: Add endpoint to query organization users in json format. #3381
  • decidim-core: Adds fingerprinting capabilities to resources. #3351
  • decidim-core: Add user profile card #3444
  • decidim-budgets: Add project card #3454
  • decidim-core: GDPR: Unbundled consent on user registration #3483
  • decidim-core: GDPR: Right to be Forgotten #3315
  • decidim-core: GDPR: Newsletter checkbox unchecked by default \3316
  • decidim-consultations: Add consultation card #3487
  • decidim-blogs: Add blog post card #3487
  • decidim-core: GDPR: Track TOS page version in Organization #3491
  • decidim-core: GDPR: User must review TOS when updated #3494
  • decidim-core: Requests are throttled to prevent DoS attacks #3588

Changed:

  • decidim-core: New user profile design #3415
  • decidim-core: Force user_group.name uniqueness in user_group test factory. #3290
  • decidim-admin: Admins no longer need to introduce raw json to define options for an authorization workflow. #3300
  • decidim-proposals: Extract partials in Proposals into helper methors so that they can be reused in collaborative draft. #3238
  • decidim-admin: Moved the following reusable javascript components from decidim-surveys component #3194
    • Nested resources (auto_buttons_by_position.component.js.es6, auto_label_by_position.component.js.es6, dynamic_fields.component.js.es6)
    • Dependent inputs (field_dependent_inputs.component.js.es6)
  • decidim-surveys: Moved the following reusable javascript components to decidim-admin component #3194
    • Nested resources (auto_buttons_by_position.component.js.es6, auto_label_by_position.component.js.es6, dynamic_fields.component.js.es6)
    • Dependent inputs (field_dependent_inputs.component.js.es6)
  • decidim-participatory_processes: Render documents in first place (before view hooks). #2977
  • decidim-verifications: If you're using a custom authorization handler template, make sure it does not include the button. Decidim takes care of that for you so including it will from no now cause duplicated buttons in the form. #3211
  • decidim-accountability: Include children information in main column #3217
  • decidim-core: Open attachments in new tab #3245
  • decidim-core: Open space hashtags in new tab #3246
  • decidim-proposals: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-accountability: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-budgets: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-pages: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-debates: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-comments: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-surveys: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-meetings: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-sortitions: Drop support for abilities in favor of the new Permissions system #3029
  • decidim-meetings: Update card layout #3338
  • decidim-proposals: Update card layout #3338
  • decidim-debates: Update card layout #3371
  • decidim-participatory_processes: Update card layout for processes #3382
  • decidim-participatory_processes: Update card layout for process groups #3395
  • decidim-assemblies: Update card layout for assemblies and assembly members #3405
  • decidim-sortitions: Update card layout #3405
  • decidim: Changes on how to register resources. Resources from a component now they need a specific reference to the component manifest, and all resources need a name. #3416
  • decidim-consultations: Improve overall navigation #3524
  • decidim-comments: Let comments have paragraphs to increase readability #3538
  • decidim-core: Sessions expire in one week by default. #3586

Fixed:

  • decidim-meetings: Enforce permissions when managing meeting minutes. #3560
  • decidim-assembly: Fix Non private users can participate to a private, transparent assembly #3438
  • decidim-proposals: Fixes artificial margin between proposal "header" and list of endorsements. #2893
  • decidim-proposals: Use translations for hardcoded text. #3464
  • decidim-core: Don't send notifications to users without access to the space. #3542
  • decidim-core: Include datepicker locales in front pages too. #3448
  • decidim-core: Uses current organization scopes in scopes picker. #3386
  • decidim-blog: Add params[:id] when editing/deleting a post from admin site #3329
  • decidim-admin: Fixes the validation uniqueness name of area, scoped with organization and area_type #3336 #3336
  • decidim-core: Fix Resourceable concern to only find linked resources from published components. #3433
  • decidim-accountability: Fixes linking proposals to results for accountability on creation time. #3167
  • decidim-proposals: Fixes clicking on "see all" should remove the ellipsis sign. #2894
  • decidim-participatory_processes: Remove duplicated space title on page meta tags #3278
  • decidim-assemblies: Remove duplicated space title on page meta tags #3278
  • decidim-core: Add validation to nickname's length. #3342
  • decidim-core: Deactivate notifications bell when marking all as read #3509
  • decidim-surveys: Fix a N+1 in surveys #3497
  • decidim-initiatives: Fix user signing of initiatives #3513
  • decidim-core: Make admin link on user menu stop disappearing #3508
  • decidim-core: Sort static pages by title #3479
  • decidim-core: Data picker form inputs having no bottom margin. #3463
  • decidim-core: Make signup forms show the password confirmation field as required#3521
  • decidim-core: Fix default page creation so they get scoped to the actual organization #3526
  • decidim-consultations: Do not allow votes on upcoming consultations #3529
  • decidim-surveys: Fix answer exporter for single/multi-choice questions #3535
  • decidim-core: Do not allow users to follow themselves #3536
  • decidim-system: Fix new organization admin not being invited properly #3543
  • decidim-consultations: Use app CSS variables #3541
  • decidim-proposals: Hide supports on linked proposals if theya re supposed to be hidden #3544
  • decidim-core: Fix confirmation emails resending for multitenant systems #3546
  • decidim-proposals: Warn the user the attachment is lost when the form is errored #3553
  • decidim-core: Consistent casing of error messages #3565
  • decidim-comments: Fix comments stats so it appears in the homepage again #3570
  • decidim-comments: Fix comment creation events raising errors when being delivered #3580
  • decidim-participatory_processes: Make process moderators receive notifications about flagged content #3605
  • decidim-meetings: Do not let users join a meeting from the Search page, as the button fails #3612
  • decidim-assemblies: Fix private assemblies showing more than once for private users. #3638
  • decidim-proposals: Do not index non published Proposals. #3618
  • decidim-proposals: Fix link to endorsements behaviour, now it does not link when there are no endorsements. #3531
  • decidim-meetings: Fix meetings M card cell so that it works outside the component #3612
  • decidim-proposals: Fix proposals M card cell so that it works outside the component #3612
  • decidim-core: Adds a missing migration to properly rename features to components #3658
  • decidim-core: Search results should be paginated so that server does not hang when search term is too wide. #3658
  • decidim-blogs: Use custom sanitizer in views instead of the default one #3659
  • decidim-core: Use custom sanitizer in views instead of the default one #3659
  • decidim-initiatives: Use custom sanitizer in views instead of the default one #3659
  • decidim-sortitions: Use custom sanitizer in views instead of the default one #3659

Don't miss a new decidim release

NewReleases is sending notifications on new releases.