Skip to content

Commit

Permalink
Merge pull request #5323 from consuldemocracy/release_2.1.0
Browse files Browse the repository at this point in the history
Release version 2.1.0
  • Loading branch information
javierm committed Feb 20, 2024
2 parents e027f77 + 49e76a1 commit 435a4be
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 118 deletions.
107 changes: 106 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,111 @@

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [2.1.0](https://github.com/consuldemocracy/consuldemocracy/tree/2.1.0) (2024-02-20)

[Full Changelog](https://github.com/consuldemocracy/consuldemocracy/compare/2.0.1...2.1.0)

### Added

- **Admin:** Add information about the project to admin index [\#5279](https://github.com/consuldemocracy/consuldemocracy/pull/5279)
- **Budgets:** Add map markers clustering feature [\#5116](https://github.com/consuldemocracy/consuldemocracy/pull/5116)
- **Customization:** Allow to set the application timezone via secrets [\#5318](https://github.com/consuldemocracy/consuldemocracy/pull/5318)
- **Customization:** Add new content block footer_legal to Footer [\#5250](https://github.com/consuldemocracy/consuldemocracy/pull/5250)
- **Documentation:** Add Consul Democracy Foundation info to the README [\#5272](https://github.com/consuldemocracy/consuldemocracy/pull/5272)
- **Maintenance:** Enable Dependabot again [\#5153](https://github.com/consuldemocracy/consuldemocracy/pull/5153) and [\#5235](https://github.com/consuldemocracy/consuldemocracy/pull/5235)
- **Security:** Log successful and failed sign in attempts [\#5302](https://github.com/consuldemocracy/consuldemocracy/pull/5302) and [\#5324](https://github.com/consuldemocracy/consuldemocracy/pull/5324)
- **Security:** Optionally render last sign in info in my account [\#5274](https://github.com/consuldemocracy/consuldemocracy/pull/5274)
- **Security:** Enable lockable devise module [\#5273](https://github.com/consuldemocracy/consuldemocracy/pull/5273)
- **Security:** Enable password complexity [\#5163](https://github.com/consuldemocracy/consuldemocracy/pull/5163)
- **Translations:** Update translations from Crowdin [\#5328](https://github.com/consuldemocracy/consuldemocracy/pull/5328)
- **UX:** Add Allow undoing "like/unlike" votes [\#5118](https://github.com/consuldemocracy/consuldemocracy/pull/5118) and [\#5278](https://github.com/consuldemocracy/consuldemocracy/pull/5278)

### Changed

- **Accessibility:** Open links in the same tab unless necessary [\#5282](https://github.com/consuldemocracy/consuldemocracy/pull/5282)
- **Accessibility:** Open PDF files in the same tab/window [\#5281](https://github.com/consuldemocracy/consuldemocracy/pull/5281)
- **Admin:** Move customizations to more intuitive admin menu section [\#5251](https://github.com/consuldemocracy/consuldemocracy/pull/5251) and [\#5368](https://github.com/consuldemocracy/consuldemocracy/pull/5368)
- **Budgets:** Replace back link on budget results [\#5173](https://github.com/consuldemocracy/consuldemocracy/pull/5173)
- **Maintenance:** Don't depend on the "Help" link in tests [\#5242](https://github.com/consuldemocracy/consuldemocracy/pull/5242)
- **Maintenance:** Make model concerns customization easier [\#5232](https://github.com/consuldemocracy/consuldemocracy/pull/5232)
- **Maintenance:** Rotate logs on production [\#5105](https://github.com/consuldemocracy/consuldemocracy/pull/5105)
- **Maintenance-Deployment:** Upgrade Ruby to version 3.1.4 [\#5157](https://github.com/consuldemocracy/consuldemocracy/pull/5157)
- **Maintenance-Docker:** Use Debian Bullseye instead of Buster on Docker [\#5284](https://github.com/consuldemocracy/consuldemocracy/pull/5284)
- **Maintenance-Gems:** \[Security\] Bump nokogiri from 1.15.4 to 1.16.2 [\#5387](https://github.com/consuldemocracy/consuldemocracy/pull/5387)
- **Maintenance-Gems:** Bump rubocop-factory_bot from 2.23.1 to 2.24.0 [\#5269](https://github.com/consuldemocracy/consuldemocracy/pull/5269)
- **Maintenance-Gems:** Bump audited from 5.3.3 to 5.4.0 [\#5265](https://github.com/consuldemocracy/consuldemocracy/pull/5265)
- **Maintenance-Gems:** Bump rubocop-capybara from 2.18.0 to 2.19.0 [\#5259](https://github.com/consuldemocracy/consuldemocracy/pull/5259)
- **Maintenance-Gems:** Bump web-console from 4.2.0 to 4.2.1 [\#5234](https://github.com/consuldemocracy/consuldemocracy/pull/5234)
- **Maintenance-Gems:** Bump selenium-webdriver from 4.11.0 to 4.16.0 [\#5229](https://github.com/consuldemocracy/consuldemocracy/pull/5229), [\#5260](https://github.com/consuldemocracy/consuldemocracy/pull/5260) and [\#5347](https://github.com/consuldemocracy/consuldemocracy/pull/5347)
- **Maintenance-Gems:** Bump responders from 3.0.1 to 3.1.0 [\#5224](https://github.com/consuldemocracy/consuldemocracy/pull/5224)
- **Maintenance-Gems:** Bump sprockets from 4.1.1 to 4.2.1 [\#5223](https://github.com/consuldemocracy/consuldemocracy/pull/5223) and [\#5233](https://github.com/consuldemocracy/consuldemocracy/pull/5233)
- **Maintenance-Gems:** Bump wicked_pdf from 2.6.3 to 2.7.0 [\#5222](https://github.com/consuldemocracy/consuldemocracy/pull/5222)
- **Maintenance-Gems:** Bump rubocop-rails from 2.15.2 to 2.21.2 [\#5221](https://github.com/consuldemocracy/consuldemocracy/pull/5221) and [\#5271](https://github.com/consuldemocracy/consuldemocracy/pull/5271)
- **Maintenance-Gems:** Bump pronto from 0.11.0 to 0.11.1 [\#5220](https://github.com/consuldemocracy/consuldemocracy/pull/5220)
- **Maintenance-Gems:** Bump capistrano-rails from 1.6.2 to 1.6.3 [\#5219](https://github.com/consuldemocracy/consuldemocracy/pull/5219)
- **Maintenance-Gems:** Bump erb_lint from 0.3.1 to 0.5.0 [\#5218](https://github.com/consuldemocracy/consuldemocracy/pull/5218)
- **Maintenance-Gems:** Bump invisible_captcha from 2.0.0 to 2.1.0 [\#5217](https://github.com/consuldemocracy/consuldemocracy/pull/5217)
- **Maintenance-Gems:** Bump groupdate from 6.1.0 to 6.4.0 [\#5216](https://github.com/consuldemocracy/consuldemocracy/pull/5216) and [\#5264](https://github.com/consuldemocracy/consuldemocracy/pull/5264)
- **Maintenance-Gems:** Bump bullet from 7.0.3 to 7.0.7 [\#5215](https://github.com/consuldemocracy/consuldemocracy/pull/5215)
- **Maintenance-Gems:** Bump knapsack_pro from 3.3.1 to 5.7.0 [\#5214](https://github.com/consuldemocracy/consuldemocracy/pull/5214), [\#5258](https://github.com/consuldemocracy/consuldemocracy/pull/5258) and [\#5263](https://github.com/consuldemocracy/consuldemocracy/pull/5263)
- **Maintenance-Gems:** Bump email_spec from 2.2.0 to 2.2.2 [\#5212](https://github.com/consuldemocracy/consuldemocracy/pull/5212)
- **Maintenance-Gems:** Bump omniauth-google-oauth2 from 1.0.1 to 1.1.1 [\#5211](https://github.com/consuldemocracy/consuldemocracy/pull/5211)
- **Maintenance-Gems:** Bump pronto-rubocop from 0.11.2 to 0.11.5 [\#5210](https://github.com/consuldemocracy/consuldemocracy/pull/5210)
- **Maintenance-Gems:** Bump ancestry from 4.2.0 to 4.3.3 [\#5209](https://github.com/consuldemocracy/consuldemocracy/pull/5209)
- **Maintenance-Gems:** Bump redcarpet from 3.5.1 to 3.6.0 [\#5208](https://github.com/consuldemocracy/consuldemocracy/pull/5208)
- **Maintenance-Gems:** Bump mini_magick from 4.11.0 to 4.12.0 [\#5207](https://github.com/consuldemocracy/consuldemocracy/pull/5207)
- **Maintenance-Gems:** Bump faker from 2.22.0 to 3.2.1 [\#5206](https://github.com/consuldemocracy/consuldemocracy/pull/5206)
- **Maintenance-Gems:** Bump simplecov from 0.21.2 to 0.22.0 [\#5205](https://github.com/consuldemocracy/consuldemocracy/pull/5205)
- **Maintenance-Gems:** Bump ahoy_matey from 4.1.0 to 4.2.1 [\#5203](https://github.com/consuldemocracy/consuldemocracy/pull/5203)
- **Maintenance-Gems:** Bump cancancan from 3.4.0 to 3.5.0 [\#5202](https://github.com/consuldemocracy/consuldemocracy/pull/5202)
- **Maintenance-Gems:** Bump devise from 4.8.1 to 4.9.2 [\#5200](https://github.com/consuldemocracy/consuldemocracy/pull/5200)
- **Maintenance-Gems:** Bump view_component from 2.78.0 to 3.6.0 [\#5199](https://github.com/consuldemocracy/consuldemocracy/pull/5199) and [\#5270](https://github.com/consuldemocracy/consuldemocracy/pull/5270)
- **Maintenance-Gems:** Bump savon from 2.13.0 to 2.14.0 [\#5198](https://github.com/consuldemocracy/consuldemocracy/pull/5198)
- **Maintenance-Gems:** Bump caxlsx from 3.2.0 to 3.4.1 [\#5197](https://github.com/consuldemocracy/consuldemocracy/pull/5197)
- **Maintenance-Gems:** Bump paranoia from 2.6.0 to 2.6.2 [\#5196](https://github.com/consuldemocracy/consuldemocracy/pull/5196)
- **Maintenance-Gems:** Bump rubocop from 1.35.1 to 1.56.4 [\#5195](https://github.com/consuldemocracy/consuldemocracy/pull/5195), [\#5240](https://github.com/consuldemocracy/consuldemocracy/pull/5240) and [\#5267](https://github.com/consuldemocracy/consuldemocracy/pull/5267)
- **Maintenance-Gems:** Bump rubocop-performance from 1.14.3 to 1.19.0 [\#5194](https://github.com/consuldemocracy/consuldemocracy/pull/5194) and [\#5266](https://github.com/consuldemocracy/consuldemocracy/pull/5266)
- **Maintenance-Gems:** Bump dalli from 3.2.3 to 3.2.6 [\#5191](https://github.com/consuldemocracy/consuldemocracy/pull/5191) and [\#5261](https://github.com/consuldemocracy/consuldemocracy/pull/5261)
- **Maintenance-Gems:** Bump devise-security from 0.17.0 to 0.18.0 [\#5190](https://github.com/consuldemocracy/consuldemocracy/pull/5190)
- **Maintenance-Gems:** Bump launchy from 2.5.0 to 2.5.2 [\#5189](https://github.com/consuldemocracy/consuldemocracy/pull/5189)
- **Maintenance-Gems:** Bump rubocop-rspec from 2.4.0 to 2.24.1 [\#5188](https://github.com/consuldemocracy/consuldemocracy/pull/5188), [\#5241](https://github.com/consuldemocracy/consuldemocracy/pull/5241) and [\#5268](https://github.com/consuldemocracy/consuldemocracy/pull/5268)
- **Maintenance-Gems:** Bump pronto-eslint from 0.11.0 to 0.11.1 [\#5187](https://github.com/consuldemocracy/consuldemocracy/pull/5187)
- **Maintenance-Gems:** Bump scss_lint from 0.59.0 to 0.60.0 [\#5186](https://github.com/consuldemocracy/consuldemocracy/pull/5186)
- **Maintenance-Gems:** Bump acts_as_votable from 0.13.2 to 0.14.0 [\#5185](https://github.com/consuldemocracy/consuldemocracy/pull/5185)
- **Maintenance-Gems:** Bump capistrano from 3.17.1 to 3.17.3 [\#5183](https://github.com/consuldemocracy/consuldemocracy/pull/5183)
- **Maintenance-Gems:** Bump mdl from 0.11.0 to 0.12.0 [\#5182](https://github.com/consuldemocracy/consuldemocracy/pull/5182)
- **Maintenance-Gems:** Bump omniauth from 2.1.0 to 2.1.1 [\#5181](https://github.com/consuldemocracy/consuldemocracy/pull/5181)
- **Maintenance-Gems:** Bump jquery-rails from 4.5.0 to 4.6.0 [\#5180](https://github.com/consuldemocracy/consuldemocracy/pull/5180)
- **Maintenance-Gems:** Bump puma from 4.3.12 to 5.6.7 [\#5178](https://github.com/consuldemocracy/consuldemocracy/pull/5178) and [\#5372](https://github.com/consuldemocracy/consuldemocracy/pull/5372)
- **Maintenance-Gems:** Upgrade to Rails 6.1 [\#5151](https://github.com/consuldemocracy/consuldemocracy/pull/5151) and [\#5319](https://github.com/consuldemocracy/consuldemocracy/pull/5319)
- **Maintenance-JavaScript:** Update Node.js from 18.18.0 to 18.18.2 [\#5301](https://github.com/consuldemocracy/consuldemocracy/pull/5301)
- **Maintenance-JavaScript:** Bump jquery-ui from 1.12.1 to 1.13.2 [\#5287](https://github.com/consuldemocracy/consuldemocracy/pull/5287)
- **Maintenance-JavaScript:** Bump jquery from 3.6.0 to 3.7.1 [\#5286](https://github.com/consuldemocracy/consuldemocracy/pull/5286)
- **Maintenance-JavaScript:** Bump jquery-ujs from 1.2.2 to 1.2.3 [\#5285](https://github.com/consuldemocracy/consuldemocracy/pull/5285)
- **Maintenance-JavaScript:** Allow adding Node packages as dependencies [\#5159](https://github.com/consuldemocracy/consuldemocracy/pull/5159)
- **Maintenance-JavaScript:** Depend on a specific version of Node.js [\#5158](https://github.com/consuldemocracy/consuldemocracy/pull/5158) and [\#5303](https://github.com/consuldemocracy/consuldemocracy/pull/5303)
- **Maintenance-Refactoring:** Refactor settings related code [\#5325](https://github.com/consuldemocracy/consuldemocracy/pull/5325)
- **Maintenance-Rubocop:** Update Rubocop version used in Code Climate [\#5231](https://github.com/consuldemocracy/consuldemocracy/pull/5231)
- **Maintenance-Rubocop:** Apply Layout/LineLength rubocop rule [\#5161](https://github.com/consuldemocracy/consuldemocracy/pull/5161)
- **Maintenance-Rubocop:** Add Rubocop rules for multiline statements [\#5154](https://github.com/consuldemocracy/consuldemocracy/pull/5154)
- **Polls:** Order expired polls by ends date [\#5148](https://github.com/consuldemocracy/consuldemocracy/pull/5148)
- **Security:** Add a username slug to the user URL [\#5327](https://github.com/consuldemocracy/consuldemocracy/pull/5327)
- **Security:** Strip metadata from attachments [\#5256](https://github.com/consuldemocracy/consuldemocracy/pull/5256)

### Fixed

- **Accessibility:** Increase contrast in colors used in "My account" [\#5257](https://github.com/consuldemocracy/consuldemocracy/pull/5257)
- **Accessibility:** Increase links and buttons contrast on focus [\#5255](https://github.com/consuldemocracy/consuldemocracy/pull/5255)
- **Multitenancy:** Rename tenant's storage folder when modifying the schema [\#5348](https://github.com/consuldemocracy/consuldemocracy/pull/5348)
- **Security:** Filter sensitive information from airbrake parameters [\#5320](https://github.com/consuldemocracy/consuldemocracy/pull/5320)
- **UX:** Refresh CSRF Token when using Turbolinks [\#5329](https://github.com/consuldemocracy/consuldemocracy/pull/5329)
- **UX:** Allow links in forms to open in new tabs [\#5283](https://github.com/consuldemocracy/consuldemocracy/pull/5283)
- **UX:** Do not validate the attachment when updating the name [\#5168](https://github.com/consuldemocracy/consuldemocracy/pull/5168)

### Removed

- **Maintenance:** Remove alert for Internet Explorer 8 and below [\#5152](https://github.com/consuldemocracy/consuldemocracy/pull/5152)

## [2.0.1](https://github.com/consuldemocracy/consuldemocracy/tree/2.0.1) (2023-08-18)

[Full Changelog](https://github.com/consuldemocracy/consuldemocracy/compare/2.0.0...2.0.1)
Expand Down Expand Up @@ -135,7 +240,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- **Maintenance-Refactoring:** Add helpers for mailer footer styles [\#4864](https://github.com/consuldemocracy/consuldemocracy/pull/4864)
- **Management:** Allow printing investments from any budget in the management interface [\#5064](https://github.com/consuldemocracy/consuldemocracy/pull/5064)
- **Security:** Remove metadata from images [\#5122](https://github.com/consuldemocracy/consuldemocracy/pull/5122)
- **UX:**Add comments count on budget investments [\#4839](https://github.com/consuldemocracy/consuldemocracy/pull/4839) and [\#4963](https://github.com/consuldemocracy/consuldemocracy/pull/4963)
- **UX:** Add comments count on budget investments [\#4839](https://github.com/consuldemocracy/consuldemocracy/pull/4839) and [\#4963](https://github.com/consuldemocracy/consuldemocracy/pull/4963)
- **Valuation:** Show published budgets in the valuation panel [\#5061](https://github.com/consuldemocracy/consuldemocracy/pull/5061)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/installation_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def details
private

def consul_installation_details
{ release: "2.0.1" }.merge(features: settings_feature_flags)
{ release: "2.1.0" }.merge(features: settings_feature_flags)
end

def settings_feature_flags
Expand Down
10 changes: 3 additions & 7 deletions lib/tasks/consul.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ namespace :consul do
desc "Runs tasks needed to upgrade to the latest version"
task execute_release_tasks: ["settings:rename_setting_keys",
"settings:add_new_settings",
"execute_release_2.0.0_tasks"]
"execute_release_2.1.0_tasks"]

desc "Runs tasks needed to upgrade from 1.5.0 to 2.0.0"
task "execute_release_2.0.0_tasks": [
"db:calculate_tsv",
"polls:set_ends_at_to_end_of_day",
"db:add_schema_search_path"
]
desc "Runs tasks needed to upgrade from 2.0.1 to 2.1.0"
task "execute_release_2.1.0_tasks": []
end
37 changes: 0 additions & 37 deletions lib/tasks/db.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,4 @@ namespace :db do
I18n.enforce_available_locales = false
Tenant.switch(args[:tenant]) { load(Rails.root.join("db", "dev_seeds.rb")) }
end

desc "Calculates the TSV column for all comments and proposal notifications"
task calculate_tsv: :environment do
logger = ApplicationLogger.new

logger.info "Calculating tsvector for comments"
Comment.with_hidden.find_each(&:calculate_tsvector)

logger.info "Calculating tsvector for proposal notifications"
ProposalNotification.with_hidden.find_each(&:calculate_tsvector)
end

desc "Adds shared extensions to the schema search path in the database.yml file"
task add_schema_search_path: :environment do
logger = ApplicationLogger.new
logger.info "Adding search path to config/database.yml"

config = Rails.application.config.paths["config/database"].first
lines = File.readlines(config)
changes_done = false

adapter_indices = lines.map.with_index do |line, index|
index if line.start_with?(" adapter: postgresql")
end.compact

adapter_indices.reverse_each do |index|
unless lines[index + 1]&.match?("schema_search_path")
lines.insert(index + 1, " schema_search_path: \"public,shared_extensions\"\n")
changes_done = true
end
end

if changes_done
File.write(config, lines.join)
logger.warn "The database search path has been updated. Restart the application to apply the changes."
end
end
end
10 changes: 0 additions & 10 deletions lib/tasks/polls.rake

This file was deleted.

39 changes: 0 additions & 39 deletions spec/lib/tasks/db_spec.rb

This file was deleted.

23 changes: 0 additions & 23 deletions spec/lib/tasks/polls_spec.rb

This file was deleted.

0 comments on commit 435a4be

Please sign in to comment.