CARVIEW |
Navigation Menu
-
-
Notifications
You must be signed in to change notification settings - Fork 429
Releases: decidim/decidim
v0.30.1
8a31444
Compare
Before updating to this release, make sure your installation is on v0.30.0 and that you have completed all the steps required for that update.
1. Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
1.1. Update your Gemfile
gem "decidim", "0.30.1"
gem "decidim-dev", "0.30.1"
1.3. Run these commands
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:upgrade:clean:invalid_private_exports # see "3.1. Removal of invalid user exports"
1.4. Follow the steps and commands detailed in these notes
2. General notes
Nothing
3. One time actions
3.1. Removal of invalid user exports
We have noticed an edge case when using private export functionality, in which the page becomes inaccessible if the user in question is using export single survey answer functionality.
You can run the following rake task to ensure your system is not corrupted.
./bin/rails decidim:upgrade:clean:invalid_private_exports
For ease of in operations, we also added the above command to the main decidim:upgrade:clean:invalid_records
rake task.
You can read more about this change on PR #14638.
4. Scheduled tasks
Nothing.
5. Changes in APIs
5.1. Require organization in nicknamize method
In order to avoid potential performance issues, we have changed the nicknamize
method by requiring the organization as a parameter.
If you have used code as such:
# We were including the organization in an optional scope
Decidim::UserBaseEntity.nicknamize(nickname, decidim_organization_id: user.decidim_organization_id)
You need to change it, to something like:
# Now the organization is the required second parameter of the method
Decidim::UserBaseEntity.nicknamize(nickname, user.decidim_organization_id)
You can read more about this change on PR #14669.
Changelog
0.30.1
Added
- decidim-core, decidim-proposals: Backport 'Fix bug on history when resource's title is too long' to v0.30 #14633
Changed
Nothing.
Fixed
- decidim-core: Backport 'Fix digest emails to use organization timezone' to v0.30 #14616
- decidim-assemblies, decidim-participatory processes: Backport 'Fix copy blocks when duplicating assemblies or spaces' to v0.30 #14617
- decidim-core: Backport 'The message textarea on Conversations page is missing an appropriate label' to v0.30 #14627
- decidim-proposals: Backport 'Show disabled button in proposals page when 'votes disabled'' to v0.30 #14613
- decidim-core, decidim-dev, decidim-meetings: Backport 'Fix meeting registration mail digest and user export' to v0.30 #14630
- decidim-core, decidim-proposals: Backport 'Fix bug on history when resource's title is too long' to v0.30 #14633
- decidim-budgets: Backport 'Fix crash when phase end_date is NULL when sending order reminders' to v0.30 #14635
- decidim-core: Backport 'Hidden resource report translation' to v0.30 #14652
- decidim-core, decidim-meetings: Backport 'Fix text in meeting show page' to v0.30 #14656
- decidim-core, decidim-meetings: Backport 'Fix text in calendar share modal' to v0.30 #14658
- decidim-core: Backport 'Fix pagination visibility issue' to v0.30 #14673
- decidim-comments: Backport 'Fix comment refresh bug when replying' to v0.30 #14675
- decidim-core: Backport 'Separate manual and automatic moderation mails' to v0.30 #14678
- decidim-admin, decidim-conferences, decidim-core, decidim-dev, decidim-meetings: Backport 'Require organization in
nicknamize
method' to v0.30 #14682 - Backport 'Fix warnings for documentation project' to v0.30 #14684
- decidim-core, decidim-initiatives: Backport 'Fix home menu layout' to v0.30 #14686
- decidim-core: Backport 'Generate a random nickname to ephemeral users' to v0.30 #14692
- decidim-admin, decidim-assemblies, decidim-conferences, decidim-core, decidim-meetings, decidim-participatory processes: Backport 'Preview unpublished meetings as a process admin' to v0.30 #14694
- decidim-admin, decidim-proposals: Backport 'Add attachments button in proposals' to v0.30 #14689
- decidim-core: Backport 'Fix script that synchronize migrations' to v0.30 #14717
- decidim-core, decidim-forms, decidim-surveys: Backport 'Fix export of a single survey answer' to v0.30 #14718
- decidim-budgets, decidim-core, decidim-dev, decidim-meetings, decidim-proposals: Backport 'Improve the map specs in order to avoid random failures' to v0.30 #14720
- decidim-admin, decidim-assemblies, decidim-conferences, decidim-participatory processes: Backport 'Collaborator view of deleted processes' to v0.30 #14726
- decidim-core: Backport 'Fix accessibility in extra_data content_block cell in process show page' to v0.30 #14747
- decidim-assemblies, decidim-participatory processes: Backport 'Fix order of participatory processes and assemblies' to v0.30 #14748
- decidim-budgets, decidim-core: Backport 'Fix WCAG logo link description' to v0.30 #14744
- decidim-meetings: Backport 'Fix list of meetings' participants in mobile' to v0.30 #14751
- decidim-core: Backport 'Withdrawn proposals/meetings displayed in the last activity feed' to v0.30 #14753
- decidim-core: Backport 'Fix author's name display in posts in participatory process show page' to v0.30 #14758
- decidim-admin: Backport 'Fix javascript exception "countElement is null"' to v0.30 #14763
Removed
Nothing.
Developer improvements
Nothing.
Internal
- Clean-up Releases Notes file for v0.30 #14649
- decidim-budgets, decidim-core, decidim-dev, decidim-meetings, decidim-proposals: Backport 'Improve the map specs in order to avoid random failures' to v0.30 #14720
Full Changelog: v0.30.0...v0.30.1
Assets 2
v0.29.4
e0a6e15
Compare
Before updating to this release, make sure your installation is on v0.29.3 and that you have completed all the steps required for that update.
1. Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
1.1. Update your Gemfile
gem "decidim", "0.29.4"
gem "decidim-dev", "0.29.4"
1.3. Run these commands
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
1.4. Follow the steps and commands detailed in these notes
2. General notes
Nothing
3. One time actions
Nothing
4. Scheduled tasks
Nothing.
5. Changes in APIs
5.1. Require organization in nicknamize method
In order to avoid potential performance issues, we have changed the nicknamize
method by requiring the organization as a parameter.
If you have used code as such:
# We were including the organization in an optional scope
Decidim::UserBaseEntity.nicknamize(nickname, decidim_organization_id: user.decidim_organization_id)
You need to change it, to something like:
# Now the organization is the required second parameter of the method
Decidim::UserBaseEntity.nicknamize(nickname, user.decidim_organization_id)
You can read more about this change on PR #14669.
Changelog
0.29.4
Added
Nothing.
Changed
Nothing.
Fixed
- decidim-core: Backport 'Fix digest emails to use organization timezone' to v0.29 #14615
- decidim-core: Backport 'The message textarea on Conversations page is missing an appropriate label' to v0.29 #14626
- decidim-assemblies, decidim-participatory processes: Backport 'Fix copy blocks when duplicating assemblies or spaces' to v0.29 #14618
- decidim-core, decidim-dev, decidim-meetings: Backport 'Fix meeting registration mail digest and user export' to v0.29 #14629
- decidim-budgets: Backport 'Fix crash when phase end_date is NULL when sending order reminders' to v0.29 #14634
- decidim-core: Backport 'Hidden resource report translation' to v0.29 #14653
- Fix typo in release notes #14650
- decidim-core, decidim-meetings: Backport 'Fix text in meeting show page' to v0.29 #14655
- decidim-core, decidim-meetings: Backport 'Fix text in calendar share modal' to v0.29 #14657
- Use defined token if present in generate_token method #14667
- decidim-core: Backport 'Fix pagination visibility issue' to v0.29 #14672
- decidim-core: Backport 'Separate manual and automatic moderation mails' to v0.29 #14681
- decidim-comments: Backport 'Fix comment refresh bug when replying' to v0.29 #14677
- decidim-admin, decidim-conferences, decidim-core, decidim-dev, decidim-meetings: Backport 'Require organization in
nicknamize
method' to v0.29 #14683 - Backport 'Fix warnings for documentation project' to v0.29 #14685
- decidim-core, decidim-initiatives: Backport 'Fix home menu layout' to v0.29 #14688
- decidim-admin, decidim-assemblies, decidim-conferences, decidim-core, decidim-meetings, decidim-participatory processes: Backport 'Preview unpublished meetings as a process admin' to v0.29 #14695
- decidim-core: Backport 'Fix accessibility in extra_data content_block cell in process show page' to v0.29 #14746
- decidim-budgets, decidim-core: Backport 'Fix WCAG logo link description' to v0.29 #14745
- decidim-assemblies, decidim-participatory processes: Backport 'Fix order of participatory processes and assemblies' to v0.29 #14749
- decidim-meetings: Backport 'Fix list of meetings' participants in mobile' to v0.29 #14750
- decidim-core: Backport 'Withdrawn proposals/meetings displayed in the last activity feed' to v0.29 #14752
- decidim-core: Backport 'Fix author's name display in posts in participatory process show page' to v0.29 #14757
Removed
Nothing.
Developer improvements
Nothing.
Internal
- Clean-up Releases Notes file for v0.29 #14623
Full Changelog: v0.29.3...v0.29.4
Assets 2
v0.30.0
14e8bd5
Compare
Before updating to this release, make sure your installation is on any version of the v0.29 and that you have completed all the steps required for that update.
See our blog post about the highlights for admins in this release.
Deprecation notice for 0.27
This marks 18 months since the release of 0.28, giving ample time for organizations to upgrade to newer versions that include the latest design and features. As always, we actively maintain only the two most recent versions of Decidim, so we encourage everyone to plan their updates accordingly.
Release Notes
1. Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
1.1. Update your ruby version
If you're using rbenv, this is done with the following commands:
rbenv install 3.3.4
rbenv local 3.3.4
You may need to change your .ruby-version
file too.
If not, you need to adapt it to your environment. See "2.1. Ruby update to 3.3"
1.2. Update your Gemfile
gem "decidim", "0.30.0"
gem "decidim-dev", "0.30.0"
1.3. Run these commands
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:taxonomies:make_plan # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:taxonomies:import_all_plans # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:taxonomies:update_all_metrics # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:metrics:rebuild[meetings,2019-01-01] # see "3.2. Add Meetings' attendees metric"
bin/rails decidim:upgrade:attachments_cleanup # see "3.3. Clean up orphaned attachment blobs"
bin/rails decidim_proposals:upgrade:set_categories # see "3.5. Amendments category fix"
bin/rails decidim:upgrade:clean:clean_deleted_users # see "3.6. Clean deleted user records `decidim:upgrade:clean:clean_deleted_users` task"
bin/rails decidim:upgrade:fix_nickname_casing # see "3.8. Convert nicknames to lowercase"
Change your social login icons in config/secrets.yml
. Read more about it at "3.4. Social login changes"
Change your HERE.com static map configuration. Read more about it at "3.7 Changes in Static maps configuration when using HERE.com"
In cases where you have done some developments, please check out these particular sections:
- If you have implemented filtering in your models or you are doing overrides, please check "2.5. Ransack upgrade"
- If you have implemented any of the categorization models (mainly Categories, Scopes, Areas) or have implemented types in Participatory Processes or Assemblies, please check "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
- If you have implemented custom routes, please check "5.2. Changes in the routing"
1.4. Follow the steps and commands detailed in these notes
2. General notes
2.1. Ruby update to 3.3
We have updated the Ruby version to 3.3.4. Upgrading to this version will require either to install this Ruby version on your host, or change the decidim docker image to use ruby:3.3.4.
You can read more about this change on PR #13171.
2.2. Fixes on migration files
Since we have introduced the "Soft delete for spaces and components" #13297, we have noticed there are some migrations that are failing as a result of defaults scopes we added.
To address the issue, we created a script that will update the migration files in your project so that we can fix any migrations that are potentially broken by the code evolution.
We added as part of the upgrade script, so you do not need to do anything about it. You will notice that some of your old migrations will change related to this change.
You can read more about this change on PR #13690.
2.3. Refactor of decidim:upgrade:fix_orphan_categorizations
task
As of #13380, the task named decidim:upgrade:fix_orphan_categorizations
has been renamed to decidim:upgrade:clean:categories
and has been included in the main decidim:upgrade:clean:invalid_records
task.
You can read more about this change on PR #13380.
2.4. Cells expiration time
Now the cache expiration time is configurable via initializers/ENV variables.
Decidim uses cache in some HTML views (usually under the cells/
folder). In the past the cache had no expiration time, now it is configurable using the ENV var DECIDIM_CACHE_EXPIRATION_TIME
(this var expects an integer specifying the number of minutes for which the cache is valid).
Also note, that now it comes with a default value of 24 hours (1440 minutes).
You can read more about this change on PR #13402.
2.5. Ransack upgrade
As part of Rails upgrade to version 7.1, we upgraded Ransack gem to version 4.2. Ransack has introduced a new security policy that requires mandatory allowlisting for the attributes and associations needed by search engine. If you have a regular Decidim installation, you can skip this step.
If you are a plugin developer, you may need to add the following methods to your searchable models.
If your plugins are extending the filters or search, you may need to override the following methods.
def self.ransackable_attributes(_auth_object = nil)
[]
end
def self.ransackable_associations(_auth_object = nil)
[]
end
You can read more about this change on PR #13196.
3. One time actions
These are one time actions that need to be done after the code is updated in the production database.
3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies
All those models have been deprecated, now a unique entity called "Taxonomies" is used for classifying all the content in Decidim (see https://docs.decidim.org/en/develop/develop/taxonomies.html for reference).
A rake task is available for converting the old classification to the new system composed of taxonomies and taxonomy filters.
In a nutshell, you can run this two-step process with the commands:
First, create the plan for the import:
bin/rails decidim:taxonomies:make_plan
Second, review the created files under the folder tmp/taxonomies/*.json
(optional).
Finally, import the taxonomies with:
bin/rails decidim:taxonomies:import_all_plans
Once the import has finished, update the metrics:
bin/rails decidim:taxonomies:update_all_metrics
For more information about this process, please refer to the documentation at https://docs.decidim.org/en/develop/develop/taxonomies.html#_importing_taxonomies_from_old_models_categories_scopes_etc
You can see more details about this change on PR #13669
3.2. Add Meetings' attendees metric
We have added a new metric that indicates how many users have attended your meetings.
If you want to calculate this metric you could run the following command, where 2019-01-01 is the Y-m-d format for the starting date since you want the metric to take effect.
bin/rails decidim:metrics:rebuild[meetings,2019-01-01]
You can see more details about this change on PR #13442
3.3. Clean up orphaned attachment blobs
We have added a new task that helps you clean the orphaned attachment blobs. This task will remove all the attachment blobs that have been created for more than 1 hour and are not yet referenced by any attachment record. This helps cleaning your filesystem of unused files.
You can run the task with the following command:
bin/rails decidim:upgrade:attachments_cleanup
You can see more details about this change on PR #11851
3.4. Social login changes
We have changed the icons for the social logins so they align better with the social networks guidelines (Twitter/X, Facebook, and Google). If you do not use any of these social logins you can skip this step.
If on the other hand you have set up this social logins, you can change it by replacing them in: config/secrets.yml
.
For example, where it says:
icon: google-fill
icon: facebook-fill
icon: twitter-x-fill
It now needs to say for the correct path name and updated SVG. Keep in mind the name of the path has changed from icon
to icon_path
:
icon_path: "media/images/google.svg"
icon_path: "media/images/facebook.svg"
icon_path: "media/images/twitter-x.svg"
The CSS of each omniauth button can be found within decidim-core/app/packs/stylesheets/decidim/_login.scss
, variables are used for specific omniauth button background color according to their pack guidelines.
You can read more about this change on PR #13481.
3.5. Amendments category fix
We have identified a bug in the filtering system, as the amendments created did not share the category with the proposal it amended. This fix aims to fix hist...
Assets 2
v0.29.3
98bb073
Compare
Before updating to this release, make sure your installation is on v0.29.2 and that you have completed all the steps required for that update.
1. Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
1.1. Update your Gemfile
gem "decidim", "0.29.3"
gem "decidim-dev", "0.29.3"
1.3. Run these commands
sudo apt install wkhtmltopdf # or the alternative installation process for your operating system. See "2.1. wkhtmltopdf binary change"
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:upgrade:fix_nickname_casing # see "3.2. Convert nicknames to lowercase"
bin/rails decidim:upgrade:clean:clean_deleted_users # see "2.2. Clean deleted user records `decidim:upgrade:clean:clean_deleted_users` task"
bin/rails decidim:upgrade:clean:hidden_resources # see "2.3. Hiding comments of moderated resources"
1.4. Follow the steps and commands detailed in these notes
2. General notes
2.1. Hiding comments of moderated resources
We have noticed that when a resource (ex: Proposal, Meeting) is being moderated, the associated comments are left visible in the search. We have added a task that would allow you to automatically remove from search any comment belonging to moderated content:
bin/rails decidim:upgrade:clean:hidden_resources
You can read more about this change on PR #13554.
3. One time actions
These are one time actions that need to be done after the code is updated in the production database.
3.1. Changes in Static maps configuration when using HERE.com
As of #14180 we are migrating to here.com api V3, as V1 does not work anymore. In case your application uses Here.com as static map tile provider, you will need to change your config/initializers/decidim.rb
to use the new url https://image.maps.hereapi.com/mia/v3/base/mc/overlay
:
static_url = "https://image.maps.ls.hereapi.com/mia/1.6/mapview" if static_provider == "here" && static_url.blank?
to
static_url = "https://image.maps.hereapi.com/mia/v3/base/mc/overlay" if static_provider == "here" && static_url.blank?
You can read more about this change on PR #14180.
3.2. Convert nicknames to lowercase
As of #14272 we are migrating all the nicknames to lowercase fix performance issues which affects large databases having many participants.
To apply the fix on your application, you need to run the below command.
bin/rails decidim:upgrade:fix_nickname_casing
You can read more about this change on PR #14272.
4. Scheduled tasks
Nothing.
5. Changes in APIs
Nothing.
Changelog
0.29.3
Added
Nothing.
Changed
- decidim-blogs, decidim-core: Backport 'Migrate to proper publish behavior in blogs' to v0.29 #14420
- decidim-participatory processes: Backport 'Related processes to process group help text' to v0.29 #14444
Fixed
- decidim-core: Backport 'Fix UX link mobile login' to v0.29 #14076
- decidim-blogs, decidim-budgets, decidim-core, decidim-debates, decidim-meetings, decidim-proposals, decidim-sortitions, decidim-surveys: Backport 'Fix WCAG add pagination to title' to v0.29 #14078
- decidim-budgets, decidim-core: Backport 'Fix UX mobile budget page adjustements' to v0.29 #14111
- decidim-core, decidim-proposals: Backport 'Suggested hashtags in Proposals' to v0.29 #14112
- decidim-core: Backport 'Hide help buttons if no help content is given in admin-side' to v0.29 #14141
- decidim-admin, decidim-ai, decidim-comments, decidim-core, decidim-meetings, decidim-proposals: Backport 'Hide comments when parent resource is hidden' to v0.29 #14153
- decidim-core, decidim-proposals: Backport 'Avoid server error when accepting a proposal without giving it a cost' to v0.29 #14146
- decidim-blogs, decidim-budgets, decidim-core, decidim-debates, decidim-meetings, decidim-proposals, decidim-sortitions: Backport 'Fix share modal on budget projects page' to v0.29 #14147
- decidim-proposals: Backport 'Fix proposal state label in admin' to v0.29 #14159
- decidim-budgets: Backport 'Fix an UI error in budgeting in the progress bar' to v0.29 #14194
- decidim-proposals: Backport 'Fix error handling when proposal answer form has errors' to v0.29 #14189
- decidim-budgets: Backport 'Fix budget index card width' to v0.29 #14197
- decidim-core: Backport 'Use leaflet-tilelayer-here v2.0.3' to v0.29 #14178
- Fix ruby version specified in documentation for manual installation #14199
- decidim-admin, decidim-core: Backport 'Fix modal for reported participants' to v0.29 #14223
- decidim-proposals: Backport 'Import proposals from one component to another in the background' to v0.29 #14208
- decidim-proposals: Backport 'Fix proposal state when importing from another component' to v0.29 #14226
- decidim-core: Backport 'Fix user activity filter' to v0.29 #14231
- decidim-debates, decidim-meetings, decidim-proposals, decidim-sortitions: Backport 'Fix WCAG status messages when update filter' to v0.29 #14236
- Backport 'Update oauth.adoc, fix typo' to v0.29 #14259
- decidim-core, decidim-generators: Backport 'Fix static map image fetching with Here maps service' to v0.29 #14252
- decidim-core: Backport 'Register user without avatar on omniauth registration' to v0.29 #14294
- decidim-core: Backport 'Fix invalid chars in name when using OAuth login' to v0.29 #14296
- decidim-admin, decidim-core: Backport 'Fix lower casing for user's nickname' to v0.29 #14306
- decidim-core: Backport 'Fix hide comment from interface' to v0.29 #14345
- decidim-comments: Backport 'Fix editing comment with max length setting' to v0.29 #14344
- decidim-core: Backport 'Fix WCAG search filters navigation' to v0.29 #14350
- decidim-blogs, decidim-debates, decidim-meetings, decidim-proposals: Backport 'Add title tag on pages for blogs, debates and meetings' to v0.29 #14341
- decidim-verifications: Backport 'Fix title on spec for the 'Create new proposal' page' to v0.29 #14353
- decidim-core: Backport 'Fix searches filtering results when not are commentable' to v0.29 #14373
- decidim-budgets: Backport 'Fix alignment of sorting options on projects' to v0.29 #14380
- decidim-core: Backport 'Fix profile user display on some resolutions' to v0.29 #14382
- decidim-core, decidim-proposals: Backport 'Prevent the error generating the diff for non-translatable fields in old version' to v0.29 #14377
- decidim-comments: Backport 'Fix edit comment modal cell displaying old cached values' to v0.29 #14383
- decidim-meetings: Backport 'Fix meeting overriding customized frame-src security policy' to v0.29 #14394
- decidim-core: Backport 'Use a better fallback for the datepicker date format' to v0.29 #14398
- decidim-blogs, decidim-core: Backport 'Migrate to proper publish behavior in blogs' to v0.29 #14420
- decidim-core: Backport 'Fix wcag keyboard modal cookie settings' to v0.29 #14429
- decidim-comments: Backport 'Fix comment cell to not show reply button when passing MAX_DEPTH' to v0.29 #14422
- decidim-admin, decidim-proposals: Backport 'Remove costs requirement on proposal...
Assets 2
v0.28.6
1ce60cd
Compare
Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
1.1. Update your Gemfile
gem "decidim", "0.28.6"
gem "decidim-dev", "0.28.6"
1.2. Run commands
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:upgrade:fix_nickname_casing # see "3.2. Convert nicknames to lowercase"
2. General notes
Nothing.
3. One time actions
3.1. Changes in Static maps configuration when using HERE.com
As of #14180 we are migrating to here.com api V3, as V1 does not work anymore. In case your application uses Here.com as static map tile provider, you will need to change your config/initializers/decidim.rb
to use the new url https://image.maps.hereapi.com/mia/v3/base/mc/overlay
:
static_url = "https://image.maps.ls.hereapi.com/mia/1.6/mapview" if static_provider == "here" && static_url.blank?
to
static_url = "https://image.maps.hereapi.com/mia/v3/base/mc/overlay" if static_provider == "here" && static_url.blank?
You can read more about this change on PR #14180.
3.2. Convert nicknames to lowercase
As of #14272 we are migrating all the nicknames to lowercase fix performance issues which affects large databases having many participants.
To apply the fix on your application, you need to run the below command.
bin/rails decidim:upgrade:fix_nickname_casing
You can read more about this change on PR #14272.
4. Scheduled tasks
Nothing.
5. Changes in APIs
Nothing.
Changelog
0.28.6
Added
Nothing.
Changed
Nothing.
Fixed
- decidim-core: Backport 'Fix UX link mobile login' to v0.28 #14077
- decidim-blogs, decidim-budgets, decidim-core, decidim-debates, decidim-meetings, decidim-proposals, decidim-sortitions, decidim-surveys: Backport 'Fix WCAG add pagination to title' to v0.28 #14079
- decidim-budgets, decidim-core: Backport 'Fix UX mobile budget page adjustements' to v0.28 #14113
- decidim-core, decidim-proposals: Backport 'Suggested hashtags in Proposals' to v0.28 #14114
- decidim-core: Backport 'Hide help buttons if no help content is given in admin-side' to v0.28 #14140
- decidim-budgets: Backport 'Fix an UI error in budgeting in the progress bar' to v0.28 #14195
- decidim-proposals: Backport 'Fix error handling when proposal answer form has errors' to v0.28 #14190
- decidim-budgets: Backport 'Fix budget index card width' to v0.28 #14196
- decidim-core: Backport 'Use leaflet-tilelayer-here v2.0.3' to v0.28 #14177
- decidim-core: Backport 'Fix user activity filter' to v0.28 #14230
- decidim-debates, decidim-meetings, decidim-proposals, decidim-sortitions: Backport 'Fix WCAG status messages when update filter' to v0.28 #14237
- Backport 'Update oauth.adoc, fix typo' to v0.28 #14258
- decidim-core, decidim-generators: Backport 'Fix static map image fetching with Here maps service' to v0.28 #14253
- decidim-core: Backport 'Register user without avatar on omniauth registration' to v0.28 #14295
- decidim-core: Backport 'Fix invalid chars in name when using OAuth login' to v0.28 #14297
- decidim-admin, decidim-core: Backport 'Fix lower casing for user's nickname' to v0.28 #14308
- decidim-core: Backport 'Fix WCAG search filters navigation' to v0.28 #14351
- decidim-blogs, decidim-debates, decidim-meetings, decidim-proposals: Backport 'Add title tag on pages for blogs, debates and meetings' to v0.28 #14342
- decidim-verifications: Backport 'Fix title on spec for the 'Create new proposal' page' to v0.28 #14354
- decidim-core: Backport 'Fix searches filtering results when not are commentable' to v0.28 #14372
- decidim-budgets: Backport 'Fix alignment of sorting options on projects' to v0.28 #14379
- decidim-core, decidim-proposals: Backport 'Prevent the error generating the diff for non-translatable fields in old version' to v0.28 #14376
- decidim-meetings: Backport 'Fix meeting overriding customized frame-src security policy' to v0.28 #14393
- decidim-dev: Backport 'Fix admin pipeline with
welcome_notification_body
spec error' to v0.28 #14487 - decidim-core: Backport 'Fix nickname casing task and add validation in account edit form' to v0.28 #14478
- decidim-core: Backport 'Error displayed when accessing admin dashboard after a user deletes its account' to v0.28 #14481
- decidim-core: Backport 'Fix WCAG add nav tag to proposals dropdown menu' to v0.28 #14483
- decidim-admin, decidim-assemblies, decidim-blogs, decidim-conferences, decidim-core, decidim-initiatives, decidim-participatory processes, decidim-proposals: Backport 'Fix image editor permissions for spaces' admins' to v0.28 #14506
- decidim-core: Backport 'Fix broken breadcrumb menu width on spaces' to v0.28 #14525
- decidim-core, decidim-proposals: Backport 'Disable tooltips due to poor performance' to v0.28 #14516
- decidim-core: Backport 'Use better URI regexp to detect host part of blobs and prevent errors' to v0.28 #14535
- decidim-core: Backport 'Fix error in announcement field when has a link with an attachment' to v0.28 #14538
- decidim-core, decidim-surveys: Backport 'Fix datetime format used to parse TimeWithZone attribute' to v0.28 #14544
- decidim-core, decidim-debates, decidim-meetings, decidim-proposals: Backport 'Fix version visibility in resources' to v0.28 #14561
- decidim-core: Backport 'Fix missing image label in attachment' to v0.28 #14573
- decidim-proposals: Backport 'Fix label on proposals landing page block' to v0.28 #14581
- decidim-admin, decidim-blogs, decidim-comments, decidim-core, decidim-debates, decidim-dev, decidim-initiatives, decidim-meetings, decidim-proposals: Backport 'Fix resource redirect after resource has been hidden' to v0.28 #14598
Removed
Nothing.
Developer improvements
- Backport 'Fix alignment of sorting options on projects' to v0.28 #14379
Internal
- decidim-dev: Backport 'Fix admin pipeline with
welcome_notification_body
spec error' to v0.28 #14487 - decidim-admin, decidim-conferences, decidim-core, decidim-dev, decidim-meetings, decidim-participatory processes, decidim-proposals, decidim-verifications: Backport 'Add missing translations' to v0.28 #14594
Full Changelog: v0.28.5...v0.28.6
Assets 2
v0.30.0.rc3
ceb204c
Compare
Release Notes
1. Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
1.1. Update your ruby version
If you're using rbenv, this is done with the following commands:
rbenv install 3.3.4
rbenv local 3.3.4
You may need to change your .ruby-version
file too.
If not, you need to adapt it to your environment. See "2.1. Ruby update to 3.3"
1.2. Update your Gemfile
gem "decidim", "0.30.0.rc1"
gem "decidim-dev", "0.30.0.rc1"
1.3. Run these commands
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:taxonomies:make_plan # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:taxonomies:import_all_plans # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:taxonomies:update_all_metrics # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:metrics:rebuild[meetings,2019-01-01] # see "3.2. Add Meetings' attendees metric"
bin/rails decidim:upgrade:attachments_cleanup # see "3.3. Clean up orphaned attachment blobs"
bin/rails decidim_proposals:upgrade:set_categories # see "3.5. Amendments category fix"
bin/rails decidim:upgrade:clean:clean_deleted_users # see "3.6. Clean deleted user records `decidim:upgrade:clean:clean_deleted_users` task"
bin/rails decidim:upgrade:clean:hidden_resources # see "3.7. Hiding comments of moderated resources"
bin/rails decidim:upgrade:fix_nickname_casing # see "3.9. Convert nicknames to lowercase"
Change your social login icons in config/secrets.yml
. Read more about it at "3.4. Social login changes"
Change your HERE.com static map configuration. Read more about it at "3.8 Changes in Static maps configuration when using HERE.com"
In cases where you have done some developments, please check out these particular sections:
- If you have implemented filtering in your models or you are doing overrides, please check "2.5. Ransack upgrade"
- If you have implemented any of the categorization models (mainly Categories, Scopes, Areas) or have implemented types in Participatory Processes or Assemblies, please check "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
- If you have implemented custom routes, please check "5.2. Changes in the routing"
1.4. Follow the steps and commands detailed in these notes
2. General notes
2.1. Ruby update to 3.3
We have updated the Ruby version to 3.3.4. Upgrading to this version will require either to install this Ruby version on your host, or change the decidim docker image to use ruby:3.3.4.
You can read more about this change on PR #13171.
2.2. Fixes on migration files
Since we have introduced the "Soft delete for spaces and components" #13297, we have noticed there are some migrations that are failing as a result of defaults scopes we added.
To address the issue, we created a script that will update the migration files in your project so that we can fix any migrations that are potentially broken by the code evolution.
We added as part of the upgrade script, so you do not need to do anything about it. You will notice that some of your old migrations will change related to this change.
You can read more about this change on PR #13690.
2.3. Refactor of decidim:upgrade:fix_orphan_categorizations
task
As of #13380, the task named decidim:upgrade:fix_orphan_categorizations
has been renamed to decidim:upgrade:clean:categories
and has been included in the main decidim:upgrade:clean:invalid_records
task.
You can read more about this change on PR #13380.
2.4. Cells expiration time
Now the cache expiration time is configurable via initializers/ENV variables.
Decidim uses cache in some HTML views (usually under the cells/
folder). In the past the cache had no expiration time, now it is configurable using the ENV var DECIDIM_CACHE_EXPIRATION_TIME
(this var expects an integer specifying the number of minutes for which the cache is valid).
Also note, that now it comes with a default value of 24 hours (1440 minutes).
You can read more about this change on PR #13402.
2.5. Ransack upgrade
As part of Rails upgrade to version 7.1, we upgraded Ransack gem to version 4.2. Ransack has introduced a new security policy that requires mandatory allowlisting for the attributes and associations needed by search engine. If you have a regular Decidim installation, you can skip this step.
If you are a plugin developer, you may need to add the following methods to your searchable models.
If your plugins are extending the filters or search, you may need to override the following methods.
def self.ransackable_attributes(_auth_object = nil)
[]
end
def self.ransackable_associations(_auth_object = nil)
[]
end
You can read more about this change on PR #13196.
3. One time actions
These are one time actions that need to be done after the code is updated in the production database.
3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies
All those models have been deprecated, now a unique entity called "Taxonomies" is used for classifying all the content in Decidim (see https://docs.decidim.org/en/develop/develop/taxonomies.html for reference).
A rake task is available for converting the old classification to the new system composed of taxonomies and taxonomy filters.
In a nutshell, you can run this two-step process with the commands:
First, create the plan for the import:
bin/rails decidim:taxonomies:make_plan
Second, review the created files under the folder tmp/taxonomies/*.json
(optional).
Finally, import the taxonomies with:
bin/rails decidim:taxonomies:import_all_plans
Once the import has finished, update the metrics:
bin/rails decidim:taxonomies:update_all_metrics
For more information about this process, please refer to the documentation at https://docs.decidim.org/en/develop/develop/taxonomies.html#_importing_taxonomies_from_old_models_categories_scopes_etc
You can see more details about this change on PR #13669
3.2. Add Meetings' attendees metric
We have added a new metric that indicates how many users have attended your meetings.
If you want to calculate this metric you could run the following command, where 2019-01-01 is the Y-m-d format for the starting date since you want the metric to take effect.
bin/rails decidim:metrics:rebuild[meetings,2019-01-01]
You can see more details about this change on PR #13442
3.3. Clean up orphaned attachment blobs
We have added a new task that helps you clean the orphaned attachment blobs. This task will remove all the attachment blobs that have been created for more than 1 hour and are not yet referenced by any attachment record. This helps cleaning your filesystem of unused files.
You can run the task with the following command:
bin/rails decidim:upgrade:attachments_cleanup
You can see more details about this change on PR #11851
3.4. Social login changes
We have changed the icons for the social logins so they align better with the social networks guidelines (Twitter/X, Facebook, and Google). If you do not use any of these social logins you can skip this step.
If on the other hand you have set up this social logins, you can change it by replacing them in: config/secrets.yml
.
For example, where it says:
icon: google-fill
icon: facebook-fill
icon: twitter-x-fill
It now needs to say for the correct path name and updated SVG. Keep in mind the name of the path has changed from icon
to icon_path
:
icon_path: "media/images/google.svg"
icon_path: "media/images/facebook.svg"
icon_path: "media/images/twitter-x.svg"
The CSS of each omniauth button can be found within decidim-core/app/packs/stylesheets/decidim/_login.scss
, variables are used for specific omniauth button background color according to their pack guidelines.
You can read more about this change on PR #13481.
3.5. Amendments category fix
We have identified a bug in the filtering system, as the amendments created did not share the category with the proposal it amended. This fix aims to fix historic data. To fix it, you need to run:
bin/rails decidim_proposals:upgrade:set_categories
You can read more about this change on PR #13395.
3.6. Clean deleted user records decidim:upgrade:clean:clean_deleted_users
task
When a user deleted their account, we mistakenly retained some metadata, such as the personal_url and about fields. Going forward, these fields will be automatically cleared upon deletion. To fix this issue for previously deleted accounts, we've added a new rake task that should ...
Assets 2
v0.30.0.rc1
492194b
Compare
Release Notes
1. Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
1.1. Update your ruby version
If you're using rbenv, this is done with the following commands:
rbenv install 3.3.4
rbenv local 3.3.4
You may need to change your .ruby-version
file too.
If not, you need to adapt it to your environment. See "2.1. Ruby update to 3.3"
1.2. Update your Gemfile
gem "decidim", "0.30.0.rc1"
gem "decidim-dev", "0.30.0.rc1"
1.3. Run these commands
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:taxonomies:make_plan # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:taxonomies:import_all_plans # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:taxonomies:update_all_metrics # see "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
bin/rails decidim:metrics:rebuild[meetings,2019-01-01] # see "3.2. Add Meetings' attendees metric"
bin/rails decidim:upgrade:attachments_cleanup # see "3.3. Clean up orphaned attachment blobs"
bin/rails decidim_proposals:upgrade:set_categories # see "3.5. Amendments category fix"
bin/rails decidim:upgrade:clean:clean_deleted_users # see "3.6. Clean deleted user records `decidim:upgrade:clean:clean_deleted_users` task"
Change your social login icons in config/secrets.yml
. Read more about it at "3.4. Social login changes"
In cases where you have done some developments, please check out these particular sections:
- If you have implemented filtering in your models or you are doing overrides, please check "2.5. Ransack upgrade"
- If you have implemented any of the categorization models (mainly Categories, Scopes, Areas) or have implemented types in Participatory Processes or Assemblies, please check "3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies"
- If you have implemented custom routes, please check "5.2. Changes in the routing"
1.4. Follow the steps and commands detailed in these notes
2. General notes
2.1. Ruby update to 3.3
We have updated the Ruby version to 3.3.4. Upgrading to this version will require either to install this Ruby version on your host, or change the decidim docker image to use ruby:3.3.4.
You can read more about this change on PR #13171.
2.2. Fixes on migration files
Since we have introduced the "Soft delete for spaces and components" #13297, we have noticed there are some migrations that are failing as a result of defaults scopes we added.
To address the issue, we created a script that will update the migration files in your project so that we can fix any migrations that are potentially broken by the code evolution.
We added as part of the upgrade script, so you do not need to do anything about it. You will notice that some of your old migrations will change related to this change.
You can read more about this change on PR #13690.
2.3. Refactor of decidim:upgrade:fix_orphan_categorizations
task
As of #13380, the task named decidim:upgrade:fix_orphan_categorizations
has been renamed to decidim:upgrade:clean:categories
and has been included in the main decidim:upgrade:clean:invalid_records
task.
You can read more about this change on PR #13380.
2.4. Cells expiration time
Now the cache expiration time is configurable via initializers/ENV variables.
Decidim uses cache in some HTML views (usually under the cells/
folder). In the past the cache had no expiration time, now it is configurable using the ENV var DECIDIM_CACHE_EXPIRATION_TIME
(this var expects an integer specifying the number of minutes for which the cache is valid).
Also note, that now it comes with a default value of 24 hours (1440 minutes).
You can read more about this change on PR #13402.
2.5. Ransack upgrade
As part of Rails upgrade to version 7.1, we upgraded Ransack gem to version 4.2. Ransack has introduced a new security policy that requires mandatory allowlisting for the attributes and associations needed by search engine. If you have a regular Decidim installation, you can skip this step.
If you are a plugin developer, you may need to add the following methods to your searchable models.
If your plugins are extending the filters or search, you may need to override the following methods.
def self.ransackable_attributes(_auth_object = nil)
[]
end
def self.ransackable_associations(_auth_object = nil)
[]
end
You can read more about this change on PR #13196.
3. One time actions
These are one time actions that need to be done after the code is updated in the production database.
3.1. Convert old categorization models (Categories, Scopes, Areas, Participatory Process and Assembly types) into taxonomies
All those models have been deprecated, now a unique entity called "Taxonomies" is used for classifying all the content in Decidim (see https://docs.decidim.org/en/develop/develop/taxonomies.html for reference).
A rake task is available for converting the old classification to the new system composed of taxonomies and taxonomy filters.
In a nutshell, you can run this two-step process with the commands:
First, create the plan for the import:
bin/rails decidim:taxonomies:make_plan
Second, review the created files under the folder tmp/taxonomies/*.json
(optional).
Finally, import the taxonomies with:
bin/rails decidim:taxonomies:import_all_plans
Once the import has finished, update the metrics:
bin/rails decidim:taxonomies:update_all_metrics
For more information about this process, please refer to the documentation at https://docs.decidim.org/en/develop/develop/taxonomies.html#_importing_taxonomies_from_old_models_categories_scopes_etc
You can see more details about this change on PR #13669
3.2. Add Meetings' attendees metric
We have added a new metric that indicates how many users have attended your meetings.
If you want to calculate this metric you could run the following command, where 2019-01-01 is the Y-m-d format for the starting date since you want the metric to take effect.
bin/rails decidim:metrics:rebuild[meetings,2019-01-01]
You can see more details about this change on PR #13442
3.3. Clean up orphaned attachment blobs
We have added a new task that helps you clean the orphaned attachment blobs. This task will remove all the attachment blobs that have been created for more than 1 hour and are not yet referenced by any attachment record. This helps cleaning your filesystem of unused files.
You can run the task with the following command:
bin/rails decidim:upgrade:attachments_cleanup
You can see more details about this change on PR #11851
3.4. Social login changes
We have changed the icons for the social logins so they align better with the social networks guidelines (Twitter/X, Facebook, and Google). If you do not use any of these social logins you can skip this step.
If on the other hand you have set up this social logins, you can change it by replacing them in: config/secrets.yml
.
For example, where it says:
icon: google-fill
icon: facebook-fill
icon: twitter-x-fill
It now needs to say for the correct path name and updated SVG. Keep in mind the name of the path has changed from icon
to icon_path
:
icon_path: "media/images/google.svg"
icon_path: "media/images/facebook.svg"
icon_path: "media/images/twitter-x.svg"
The CSS of each omniauth button can be found within decidim-core/app/packs/stylesheets/decidim/_login.scss
, variables are used for specific omniauth button background color according to their pack guidelines.
You can read more about this change on PR #13481.
3.5. Amendments category fix
We have identified a bug in the filtering system, as the amendments created did not share the category with the proposal it amended. This fix aims to fix historic data. To fix it, you need to run:
bin/rails decidim_proposals:upgrade:set_categories
You can read more about this change on PR #13395.
3.6. Clean deleted user records decidim:upgrade:clean:clean_deleted_users
task
When a user deleted their account, we mistakenly retained some metadata, such as the personal_url and about fields. Going forward, these fields will be automatically cleared upon deletion. To fix this issue for previously deleted accounts, we've added a new rake task that should be run on your production database.
bin/rails decidim:upgrade:clean:clean_deleted_users
You can read more about this change on PR #13624.
4. Scheduled tasks
Nothing.
5. Changes in APIs
5.1. Decidim version number no longer disclosed t...
Assets 2
v0.29.2
8bb9788
Compare
Before updating to this release, make sure your installation is on v0.29.1 and that you have completed all the steps required for that update.
1. Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
1.1. Update your Gemfile
gem "decidim", "0.29.2"
gem "decidim-dev", "0.29.2"
1.3. Run these commands
sudo apt install wkhtmltopdf # or the alternative installation process for your operating system. See "2.7. wkhtmltopdf binary change"
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:upgrade:clean:clean_deleted_users # see "2.2. Clean deleted user records `decidim:upgrade:clean:clean_deleted_users` task"
1.4. Follow the steps and commands detailed in these notes
2. General notes
2.1. wkhtmltopdf binary change
For improving the support with latest versions of Ubuntu, and keeping a low size in Heroku/Docker images, we removed the wkhtmltopdf-binary
gem dependency. This means that your package manager should have the wkhtmltopdf
binary installed.
In the case of Ubuntu/Debian, this is done with the following command:
sudo apt install wkhtmltopdf
You can read more about this change on PR #13616.
2.2. Clean deleted user records decidim:upgrade:clean:clean_deleted_users
task
When a user deleted their account, we mistakenly retained some metadata, such as the personal_url and about fields. Going forward, these fields will be automatically cleared upon deletion. To fix this issue for previously deleted accounts, we've added a new rake task that should be run on your production database.
bin/rails decidim:upgrade:clean:clean_deleted_users
You can read more about this change on PR #13624.
3. One time actions
Nothing
4. Scheduled tasks
Nothing
Changelog
0.29.2
Added
Nothing.
Changed
Nothing.
Fixed
- Backport 'Update supported versions in docs' to v0.29 #13493
- Backport 'Fix file type in attachment for S3 files' to v0.29 #13495
- decidim-admin, decidim-assemblies, decidim-core, decidim-participatory processes, decidim-proposals: Backport 'Remove host param from url uploader method' to v0.29 #13505
- Backport 'Lock Ubuntu to 22.04 in github actions' to v0.29 #13519
- Backport 'Fix translation bar css' to v0.29 #13518
- Backport 'Fix double encoding specific characters with the external links' to v0.29 #13524
- Backport 'Make the address card shown long locations with the time' to v0.29 #13541
- Backport 'Fix the missing meeting calendar in meetings' lists' to v0.29 #13543
- Backport 'Fix editing the assembly content block "related assemblies"' to v0.29 #13545
- Backport 'Lock @tarekraafat/autocomplete.js version to 10.2.7' to v0.29 #13558
- Backport 'Fix redirect path after blocking an user' to v0.29 #13562
- decidim-accountability, decidim-admin, decidim-core, decidim-proposals: Backport 'Increase Map dimensions ' to v0.29 #13589
- decidim-initiatives: Backport 'Add new print permission in intiatives' to v0.29 #13591
- decidim-initiatives: Backport 'Fix initiative form is not taking into account the scope selected' to v0.29 #13604
- decidim-budgets: Backport 'Fix issues with the budgets proposals import' to v0.29 #13605
- decidim-accountability, decidim-admin, decidim-assemblies, decidim-blogs, decidim-budgets, decidim-conferences, decidim-core, decidim-debates, decidim-forms, decidim-initiatives, decidim-meetings, decidim-pages, decidim-participatory processes, decidim-proposals, decidim-sortitions, decidim-verifications: Backport 'Fix editor image routing' to v0.29 #13607
- decidim-admin: Backport 'Fix newsletter subscriber count' to v0.29 #13610
- decidim-assemblies: Backport 'Fix visibility on transparent assemblies' to v0.29 #13623
- Backport 'Remove wkhtmltopdf-binary gem and wicked configuration' to v0.29 #13620
- decidim-forms: Backport 'Fix asterisk in mandatory answers from surveys' to v0.29 #13630
- decidim-core: Backport 'Profiles message button ' to v0.29 #13638
- decidim-templates: Backport 'Fix display condition answer option' to v0.29 #13642
- decidim-core: Backport 'Fix datetime fields on forms when the organization has a timezone specified' to v0.29 #13643
- Backport 'Sort valuator selectors by valuator name' to v0.29 #13651
- Backport 'Remove
personal_url
andabout
fields when users are deleted' to v0.29 #13654 - Backport 'Fix admin proposals filters and sortings' to v0.29 #13659
- decidim-comments: Backport 'Multiple versions of a comment are shown when editing' to v0.29 #13664
- decidim-core: Backport 'Remove additional space from general search for comments that contain links' to v0.29 #13673
- decidim-meetings, decidim-participatory processes: Backport 'Fix missing icons in meetings' to v0.29 #13683
- Backport 'Remove redundant words in jobs.adoc' to v0.29 #13688
- decidim-meetings: Backport 'Fix meeting view when maps are disabled' to v0.29 #13704
- decidim-core: Backport 'Fix calendar failing specs' to v0.29 #13718
- decidim-admin, decidim-initiatives: Backport 'Icons in some Admin dashboard areas are misaligned' to v0.29 #13716
- decidim-proposals: Backport 'Hide the public export for proposals' votes' to v0.29 #13742
- decidim-accountability, decidim-admin, decidim-ai, decidim-api, decidim-assemblies, decidim-blogs, decidim-budgets, decidim-comments, decidim-conferences, decidim-core, decidim-debates, decidim-design, decidim-dev, decidim-forms, decidim-generators, decidim-initiatives, decidim-meetings, decidim-pages, decidim-participatory processes, decidim-proposals, decidim-sortitions, decidim-surveys, decidim-system, decidim-templates, decidim-verifications: Backport 'Clarify license identificator (AGPL-3.0-or-later)' to v0.29 #13747
- decidim-core, decidim-design, decidim-proposals: Backport 'Optimize the proposals loading performance' to v0.29 #13744
- decidim-conferences: Backport 'Fix conference attendence diploma rendering' to v0.29 #13749
- decidim-core: Backport 'Profile tooltip expansion on mobile' to v0.29 #13751
- decidim-debates, decidim-proposals: Backport 'OpenData Export breaks when handling deleted users' to v0.29 #13756
- decidim-accountability, decidim-core, decidim-meetings, decidim-proposals: Backport 'Fix the Diff Render output' to v0.29 #13752
- decidim-admin: Backport 'Do not send newsletters to blocked users' to v0.29 #13762
- Backport 'Add authorization to GraphQL ' to v0.29 #13758
- decidim-accountability, decidim-meetings: Backport 'Fix translations' to v0.29 #13785
- decidim-admin, decidim-core: Backport 'Fix flaky spec when changing the locale of the visitor' to v0.29 #13782
- decidim-admin: Backport 'Fix validation errors on impersonations or transferring users' to v0.29 #13781
- decidim-forms: Backport 'Fix disordered columns in survey export' to v0.29 #13791
- decidim-admin, decidim-core: Backport 'Prevent notifications for blocked users' to v0.29 [#13806](https://github...
Assets 2
v0.28.5
b54e021
Compare
Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
1.1. Update your Gemfile
gem "decidim", "0.28.5"
gem "decidim-dev", "0.28.5"
1.2. Run commands
sudo apt install wkhtmltopdf # or the alternative installation process for your operating system. See "2.1. wkhtmltopdf binary change"
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim:upgrade:clean:clean_deleted_users # see "2.2. Clean deleted user records `decidim:upgrade:clean:clean_deleted_users` task"
2. General notes
2.1. wkhtmltopdf binary change
For improving the support with latest versions of Ubuntu, and keeping a low size in Heroku/Docker images, we removed the wkhtmltopdf-binary
gem dependency. This means that your package manager should have the wkhtmltopdf
binary installed.
In the case of Ubuntu/Debian, this is done with the following command:
sudo apt install wkhtmltopdf
You can read more about this change on PR #13616.
2.2. Clean deleted user records decidim:upgrade:clean:clean_deleted_users
task
When a user deleted their account, we mistakenly retained some metadata, such as the personal_url and about fields. Going forward, these fields will be automatically cleared upon deletion. To fix this issue for previously deleted accounts, we've added a new rake task that should be run on your production database.
bin/rails decidim:upgrade:clean:clean_deleted_users
You can read more about this change on PR #13624.
3. One time actions
Nothing.
4. Scheduled tasks
Nothing.
5. Changes in APIs
Nothing.
Changelog
0.28.5
Added
Nothing.
Changed
Nothing.
Fixed
- Backport 'Fix file type in attachment for S3 files' to v0.28 #13496
- Backport 'Update supported versions in docs' to v0.28 #13497
- decidim-admin, decidim-assemblies, decidim-core, decidim-participatory processes, decidim-proposals: Backport 'Remove host param from url uploader method' to v0.28 #13506
- Backport 'Lock Ubuntu to 22.04 in github actions' to v0.28 #13520
- Backport 'Fix double encoding specific characters with the external links' to v0.28 #13525
- Backport 'Fix translation bar css' to v0.28 #13526
- Backport 'Make the address card shown long locations with the time' to v0.28 #13540
- Backport 'Fix the missing meeting calendar in meetings' lists' to v0.28 #13542
- Backport 'Fix editing the assembly content block "related assemblies"' to v0.28 #13544
- Backport 'Lock @tarekraafat/autocomplete.js version to 10.2.7' to v0.28 #13557
- Backport 'Fix redirect path after blocking an user' to v0.28 #13561
- decidim-accountability, decidim-admin, decidim-core, decidim-proposals: Backport 'Increase Map dimensions ' to v0.28 #13588
- decidim-initiatives: Backport 'Add new print permission in intiatives' to v0.28 #13590
- decidim-initiatives: Backport 'Fix initiative form is not taking into account the scope selected' to v0.28 #13603
- decidim-budgets: Backport 'Fix issues with the budgets proposals import' to v0.28 #13606
- decidim-admin: Backport 'Fix newsletter subscriber count' to v0.28 #13609
- decidim-assemblies: Backport 'Fix visibility on transparent assemblies' to v0.28 #13622
- decidim-forms: Backport 'Fix asterisk in mandatory answers from surveys' to v0.28 #13629
- decidim-accountability, decidim-admin, decidim-assemblies, decidim-blogs, decidim-budgets, decidim-conferences, decidim-core, decidim-debates, decidim-forms, decidim-initiatives, decidim-meetings, decidim-pages, decidim-participatory processes, decidim-proposals, decidim-sortitions, decidim-verifications: Backport 'Fix editor image routing' to v0.28 #13608
- decidim-core: Backport 'Profiles message button ' to v0.28 #13637
- decidim-templates: Backport 'Fix display condition answer option' to v0.28 #13641
- Backport 'Remove wkhtmltopdf-binary gem and wicked configuration' to v0.28 #13621
- decidim-core: Backport 'Fix datetime fields on forms when the organization has a timezone specified' to v0.28 #13647
- Backport 'Fix admin proposals filters and sortings' to v0.28 #13658
- Backport 'Sort valuator selectors by valuator name' to v0.28 #13652
- Backport 'Remove
personal_url
andabout
fields when users are deleted' to v0.28 #13655 - decidim-comments: Backport 'Multiple versions of a comment are shown when editing' to v0.28 #13663
- decidim-core: Backport 'Remove additional space from general search for comments that contain links' to v0.28 #13672
- decidim-meetings, decidim-participatory processes: Backport 'Fix missing icons in meetings' to v0.28 #13682
- Backport 'Remove redundant words in jobs.adoc' to v0.28 #13687
- decidim-admin, decidim-initiatives: Backport 'Icons in some Admin dashboard areas are misaligned' to v0.28 #13717
- decidim-proposals: Backport 'Hide the public export for proposals' votes' to v0.28 #13743
- decidim-conferences: Backport 'Fix conference attendence diploma rendering' to v0.28 #13750
- decidim-accountability, decidim-admin, decidim-ai, decidim-api, decidim-assemblies, decidim-blogs, decidim-budgets, decidim-comments, decidim-conferences, decidim-core, decidim-debates, decidim-design, decidim-dev, decidim-forms, decidim-generators, decidim-initiatives, decidim-meetings, decidim-pages, decidim-participatory processes, decidim-proposals, decidim-sortitions, decidim-surveys, decidim-system, decidim-templates, decidim-verifications: Backport 'Clarify license identificator (AGPL-3.0-or-later)' to v0.28 #13746
- decidim-core, decidim-design, decidim-proposals: Backport 'Optimize the proposals loading performance' to v0.28 #13745
- decidim-core: Backport 'Profile tooltip expansion on mobile' to v0.28 #13755
- decidim-debates, decidim-proposals: Backport 'OpenData Export breaks when handling deleted users' to v0.28 #13757
- decidim-accountability, decidim-core, decidim-meetings, decidim-proposals: Backport 'Fix the Diff Render output' to v0.28 #13753
- decidim-meetings: Backport 'Fix meeting view when maps are disabled' to v0.28 #13754
- decidim-admin: Backport 'Do not send newsletters to blocked users' to v0.28 #13761
- Backport 'Add authorization to GraphQL ' to v0.28 #13759
- decidim-accountability, decidim-meetings: Backport 'Fix translations' to v0.28 #13784
- decidim-admin, decidim-core: Backport 'Fix flaky spec when changing the locale of the visitor' to v0.28 #13783
- decidim-admin: Backport 'Fix validation errors on impersonations or transferring users' to v0.28 #13780
- decidim-forms: Backport 'Fix disordered columns in survey export' to v0.28 #13790
- decidim-admin, decidim-core: Backport 'Prevent notifications for blocked users' to v0.28 #13807
- decidim-meetings, decidim-proposals: Backport 'Fix proposal map performance with hundreds of markers' to v0.28 #13818
- decidim-core, decidim-proposals: Backport 'Fix prevent redirection issue when clicking text or icon within button' to v0.28 [#13810](#1381...
Assets 2
v0.29.1
d10652b
Compare
Before updating to this release, make sure your installation is on v0.29.0 and that you have completed all the steps required for that update.
Security fixes
This release addresses one security issue:
- GHSA-4294-35vw-7qxg (pending CVE)
The details regarding the security vulnerability will be published on December 2th 2024, which is two months after the release date of this version. For more information, please refer to our Security Policy.
Upgrade notes
As usual, we recommend that you have a full backup, of the database, application code and static files.
To update, follow these steps:
- Update your Gemfile:
gem "decidim", "0.29.1"
gem "decidim-dev", "0.29.1"
- Run these commands to upgrade and make sure you get all the latest migrations:
bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate
bin/rails decidim_proposals:upgrade:set_categories # see "2.2. Amendments category fix"
bin/rails decidim:upgrade:attachments_cleanup # see "3.1 Clean up orphaned attachment blobs"
2. General notes
2.1 Allow Cell's cache to expire
Now the cache expiration time is configurable via initializers/ENV variables.
Decidim uses cache in some HTML views (usually under the cells/
folder). In the past the cache had no expiration time, now it is configurable using the ENV var DECIDIM_CACHE_EXPIRATION_TIME
(this var expects an integer specifying the number of minutes for which the cache is valid).
Also note, that now it comes with a default value of 24 hours (1440 minutes).
2.2. Amendments category fix
We have identified a bug in the filtering system, as the amendments created did not share the category with the proposal it amended. This fix aims to fix historic data. To fix it, you need to run:
bin/rails decidim_proposals:upgrade:set_categories
You can read more about this change on PR #13395.
3. One time actions
3.1. Clean up orphaned attachment blobs
We have added a new task that helps you clean the orphaned attachment blobs. This task will remove all the attachment blobs that have been created for more than 1 hour and are not yet referenced by any attachment record. This helps cleaning your filesystem of unused files.
You can run the task with the following command:
bin/rails decidim:upgrade:attachments_cleanup
You can see more details about this change on PR #11851
4. Scheduled tasks
Nothing.
5. Changes in APIs
Nothing.
Changelog
Full Changelog: https://github.com/decidim/decidim/compare/v0.29.0..v0.29.1