Skip to content

Releases: portagenetwork/roadmap

4.1.1+portage-4.1.0

08 Jul 16:39
e77f291
Compare
Choose a tag to compare

Added

  • Merge DMPRoadmap Releases v4.1.0 and v4.1.1 #700

  • Enable Translation of QuestionOption.text (and Refactor Translation of ResearchDomain.label) #742

Fixed

  • Set licence_key in TinyMCE config #792

  • Add .pdf handling in render_respond_to_format_with_error_message #731

  • Fixed handling of Template.visibility in some places #759

Changed

  • Deactivate Requests to External ROR API #738

  • Updated 'translation' gem URL in Gemfile to match moved repository #725

  • Increased the width of the research outputs file size unit dropdown #741

  • Bump ledermann-rails-settings from 2.5.0 to 2.6.2 #764

  • Bump webmock from 3.19.1 to 3.23.1 #762

  • Bump rspec-rails from 6.0.3 to 6.1.2 #694

  • Bump docker db image from postgres:12.14 to postgres:15-alpine #749

  • Bump danger from 9.4.2 to 9.4.3 #681

  • Bump mail from 2.7.1 to 2.8.1 #651

  • Bump turbo-rails from 1.5.0 to 2.0.5 #771

  • Bump jbuilder from 2.11.5 to 2.12.0 #770

  • Bump faker from 3.2.3 to 3.4.1 #769

  • Bump jsbundling-rails from 1.1.1 to 1.3.0 #768

  • Bump binding_of_caller from 1.0.0 to 1.0.1 #767

  • Bump engine.io from 6.4.1 to 6.4.2 #774

  • Bump activestorage from 6.1.7.6 to 6.1.7.7 #773

  • Bump @babel/traverse from 7.21.4 to 7.24.6 #772

  • Bump follow-redirects from 1.15.4 to 1.15.6 #690

  • Bump devise_invitable from 2.0.8 to 2.0.9 #671

  • Bump yard from 0.9.34 to 0.9.36 #683

  • Bump tinymce from 6.4.1 to 7.0.0 #704

  • Bump actionpack from 6.1.7.7 to 6.1.7.8 #775

  • Bump brakeman from 5.4.1 to 6.1.2 #781

  • Bump wkhtmltopdf-binary from 0.12.6.6 to 0.12.6.7 #779

  • Bump rack-mini-profiler from 3.3.0 to 3.3.1 #778

  • Bump listen from 3.8.0 to 3.9.0 #776

  • Bump braces from 3.0.2 to 3.0.3 #795

  • Bump Ruby from 3.0.4 to 3.1.4 #808

V4.1.1

Added

  • Added MORE_INFO and LESS_INFO JS constants (for the Research Outputs feature)
  • Added a .gitkeep file to the app/assets/builds directory to address potential issues when building the application.css file during production deploys DMPRoadmap#3314

Fixed

  • Updated the default font on the 'Download page' to be 'Roboto, Arial, Sans-Serif'
  • Fixed an issue with API V0 that was causing a 500 Internal Server error
  • Solved issue where spring was loaded in production mode : ran bin/spring binstub --all
  • Updated fontawesome to V6

v4.1.0

Note this upgrade is a migration from Ruby v2.7.6 to v3.0.5. Note that this could have an impact on any customizations you may have made to your fork of this project. Please see https://www.fastruby.io/blog/ruby/upgrades/upgrade-ruby-from-2.7-to-3.0.html for further information on what to check. In particular, please note the changes to the way Ruby 3 handles keyword arguments

Note that the Webpacker gem has been removed in favor of jsbundling-rails. This was done in preparation for the future migration to Rails 7. See issue #3185 for more details on this change. If, after migrating to this version, you see 'Sprockets' related errors in your application you will need to rebuild you asset library. To do this run bin/rails assets:clobber && bin/rails assets:precompile from the project directory.

All gem and JS dependencies were also updated via bundle update && yarn upgrade

Upgrade to Ruby 3

  • Upgrade to Ruby version 3.0.5 #3225
  • Bumped all Github actions to use ruby 3.0
  • Removed .freeze from Regex and Range constants since those types are already immutable
  • Fixed Rubocop complaint about redundancy of r.nil? ? nil : r.user, so changed it to r&.user in app/models/plan.rb
  • Fixed Rubocop complaint about redundant :: in config.log_formatter = ::Logger::Formatter.new in config/environments/production.rb
  • Froze lib/deprecators/*.rb constants that were Strings
  • Updated places that were incorrectly using keyword args. See this article for an overview

Upgraded TinyMCE to v6

  • Upgraded TinyMCE to v6 (v5 EOL is April 20 2023)
  • Adjusted JS code to conform to new TinyMCE version
  • Adjusted views to work with the new version
  • Updated variables.scss file to fix issue with button text/background color contrast
  • Updated blocks/_tables.scss to fix issue with dropdown menu overlap against table
  • updated config/initializers/assets.rb to copy over the tinymce skins and bootstrap glyphicons to the public directory so that they are accessible by TinyMCE and Bootstrap code

Removed webpacker gem

As Webpacker is no longer maintained by the Rails community, we have replaced it by jsbundling-rails and cssbundling-rails for the Javascript & CSS compilation.

  • Removed webpacker gem
  • Added jsbundling-rails
  • Updated webpack and its configuration to V5
  • Moved app/javascript/packs/application.js to app/javascript/application.js
  • Removed ruby-sass gem
  • Added cssbundling-rails gem and DartSass JS library
  • Updated SASS stylesheets following the migration to the latest version of the sass package (See below).
  • Removed font-awesome-sass gem and used @fortawesome/fontawesome-free npm package
  • Issue with @import 'font-awesome-sprockets'; line in app/assets/stylesheets/application.scss. Removed that line after referring to the latest font-awesome install/setup guide which no longer includes it.

With the removal of Webpacker, the Javascript/SASS code is no longer automaticaly compiled when using the rails server command. It has been replaced by the bin/dev command that launch the rails server and the processes that watch for changes in the SASS and Javascript code.

SASS update : removal of the @import keyword

With the removal of the webpacker gem, the DartSass package has been installed to ensure the compilation of the Sass stylesheet and with it, an update to the Sass version used by the code :

  • @import keyword for custom stylesheets has been removed (although we can still import stylesheets from externals packages) and has been replaced by @use and @forward
  • An _index.scss file have to be created in folders containing multiple sass files. Each file have to be included in the index with the @use or @forward keyword.
  • In most cases @import can be replaced by @use when importing a file.
  • @forward makes mixins, functions and variables available when a stylesheet is loaded.
  • When imported, Sass variables are now namespaced with the file name in which they are declared (ex : color: colors.$red). A namespace can be renamed (ex : @use "colours" as c;) or removed when included (ex : @use "colours" as *;)
  • Sass variables are no longer declared globally and have to be included in files where they are used.
    For more detailed explanation, please refer to this video : https://www.youtube.com/watch?v=CR-a8upNjJ0

Introduction of RackAttack

Rack Attack is middleware that can be used to help protect the application from malicious activity. You can establish white/black lists for specific IP addresses and also define rate limits.

  • Using Rack-attack address vulnerabilities pointed out in password reset and login: there was no request rate limit.#3214

Cleanup of Capybara configuration

  • Cleaned up Gemfile by:
    • removing gems that were already commented out
    • removed selenium-webdriver and capybara-webmock
    • removing version restrictions on: danger, font-awesome-sass, webdrivers
  • Cleaned up spec/rails_helper.rb and spec/spec_helper.rb
  • Simplified the spec/support/capybara.rb helper to work with the latest version of Capybara and use its built in headless Chrome driver

Rubocop updates

  • Installed rubocop-performance gem and made suggested changes
  • Added lib tasks as exclusive from debugger rubocop check after rubocop upgradi...
Read more

4.1.1+portage-4.1.0-alpha-4

25 Jun 19:31
b024eb4
Compare
Choose a tag to compare
Pre-release

Added

  • Merge DMPRoadmap Releases v4.1.0 and v4.1.1 #700

  • Enable Translation of QuestionOption.text (and Refactor Translation of ResearchDomain.label) #742

Fixed

  • Set licence_key in TinyMCE config #792

  • Add .pdf handling in render_respond_to_format_with_error_message #731

  • Fixed handling of Template.visibility in some places #759

Changed

  • Deactivate Requests to External ROR API #738

  • Updated 'translation' gem URL in Gemfile to match moved repository #725

  • Increased the width of the research outputs file size unit dropdown #741

  • Bump ledermann-rails-settings from 2.5.0 to 2.6.2 #764

  • Bump webmock from 3.19.1 to 3.23.1 #762

  • Bump rspec-rails from 6.0.3 to 6.1.2 #694

  • Bump docker db image from postgres:12.14 to postgres:15-alpine #749

  • Bump danger from 9.4.2 to 9.4.3 #681

  • Bump mail from 2.7.1 to 2.8.1 #651

  • Bump turbo-rails from 1.5.0 to 2.0.5 #771

  • Bump jbuilder from 2.11.5 to 2.12.0 #770

  • Bump faker from 3.2.3 to 3.4.1 #769

  • Bump jsbundling-rails from 1.1.1 to 1.3.0 #768

  • Bump binding_of_caller from 1.0.0 to 1.0.1 #767

  • Bump engine.io from 6.4.1 to 6.4.2 #774

  • Bump activestorage from 6.1.7.6 to 6.1.7.7 #773

  • Bump @babel/traverse from 7.21.4 to 7.24.6 #772

  • Bump follow-redirects from 1.15.4 to 1.15.6 #690

  • Bump devise_invitable from 2.0.8 to 2.0.9 #671

  • Bump yard from 0.9.34 to 0.9.36 #683

  • Bump tinymce from 6.4.1 to 7.0.0 #704

  • Bump actionpack from 6.1.7.7 to 6.1.7.8 #775

  • Bump brakeman from 5.4.1 to 6.1.2 #781

  • Bump wkhtmltopdf-binary from 0.12.6.6 to 0.12.6.7 #779

  • Bump rack-mini-profiler from 3.3.0 to 3.3.1 #778

  • Bump listen from 3.8.0 to 3.9.0 #776

  • Bump braces from 3.0.2 to 3.0.3 #795

  • Bump Ruby from 3.0.4 to 3.1.4 #808

4.1.1+portage-4.1.0-alpha-3

17 Jun 16:39
d7a4ff2
Compare
Choose a tag to compare
Pre-release

Added

  • Merge DMPRoadmap Releases v4.1.0 and v4.1.1 #700

  • Enable Translation of QuestionOption.text (and Refactor Translation of ResearchDomain.label) #742

Fixed

  • Set licence_key in TinyMCE config #792

  • Add .pdf handling in render_respond_to_format_with_error_message #731

  • Fixed handling of Template.visibility in some places #759

Changed

  • Deactivate Requests to External ROR API #738

  • Updated 'translation' gem URL in Gemfile to match moved repository #725

  • Increased the width of the research outputs file size unit dropdown #741

  • Bump ledermann-rails-settings from 2.5.0 to 2.6.2 #764

  • Bump webmock from 3.19.1 to 3.23.1 #762

  • Bump rspec-rails from 6.0.3 to 6.1.2 #694

  • Bump docker db image from postgres:12.14 to postgres:15-alpine #749

  • Bump danger from 9.4.2 to 9.4.3 #681

  • Bump mail from 2.7.1 to 2.8.1 #651

  • Bump turbo-rails from 1.5.0 to 2.0.5 #771

  • Bump jbuilder from 2.11.5 to 2.12.0 #770

  • Bump faker from 3.2.3 to 3.4.1 #769

  • Bump jsbundling-rails from 1.1.1 to 1.3.0 #768

  • Bump binding_of_caller from 1.0.0 to 1.0.1 #767

  • Bump engine.io from 6.4.1 to 6.4.2 #774

  • Bump activestorage from 6.1.7.6 to 6.1.7.7 #773

  • Bump @babel/traverse from 7.21.4 to 7.24.6 #772

  • Bump follow-redirects from 1.15.4 to 1.15.6 #690

  • Bump devise_invitable from 2.0.8 to 2.0.9 #671

  • Bump yard from 0.9.34 to 0.9.36 #683

  • Bump tinymce from 6.4.1 to 7.0.0 #704

  • Bump actionpack from 6.1.7.7 to 6.1.7.8 #775

  • Bump brakeman from 5.4.1 to 6.1.2 #781

  • Bump wkhtmltopdf-binary from 0.12.6.6 to 0.12.6.7 #779

  • Bump rack-mini-profiler from 3.3.0 to 3.3.1 #778

  • Bump listen from 3.8.0 to 3.9.0 #776

  • Bump braces from 3.0.2 to 3.0.3 #795

4.1.1+portage-4.1.0-alpha-2

12 Jun 16:08
c59f840
Compare
Choose a tag to compare
Pre-release

Added

  • Merge DMPRoadmap Releases v4.1.0 and v4.1.1 #700

  • Enable Translation of QuestionOption.text (and Refactor Translation of ResearchDomain.label) #742

Fixed

  • Set licence_key in TinyMCE config #792

  • Add .pdf handling in render_respond_to_format_with_error_message #731

  • Fixed handling of Template.visibility in some places #759

Changed

  • Deactivate Requests to External ROR API #738

  • Updated 'translation' gem URL in Gemfile to match moved repository #725

  • Increased the width of the research outputs file size unit dropdown #741

  • Bump ledermann-rails-settings from 2.5.0 to 2.6.2 #764

  • Bump webmock from 3.19.1 to 3.23.1 #762

  • Bump rspec-rails from 6.0.3 to 6.1.2 #694

  • Bump docker db image from postgres:12.14 to postgres:15-alpine #749

  • Bump danger from 9.4.2 to 9.4.3 #681

  • Bump mail from 2.7.1 to 2.8.1 #651

  • Bump turbo-rails from 1.5.0 to 2.0.5 #771

  • Bump jbuilder from 2.11.5 to 2.12.0 #770

  • Bump faker from 3.2.3 to 3.4.1 #769

  • Bump jsbundling-rails from 1.1.1 to 1.3.0 #768

  • Bump binding_of_caller from 1.0.0 to 1.0.1 #767

  • Bump engine.io from 6.4.1 to 6.4.2 #774

  • Bump activestorage from 6.1.7.6 to 6.1.7.7 #773

  • Bump @babel/traverse from 7.21.4 to 7.24.6 #772

  • Bump follow-redirects from 1.15.4 to 1.15.6 #690

  • Bump devise_invitable from 2.0.8 to 2.0.9 #671

  • Bump yard from 0.9.34 to 0.9.36 #683

  • Bump tinymce from 6.4.1 to 7.0.0 #704

  • Bump actionpack from 6.1.7.7 to 6.1.7.8 #775

  • Bump brakeman from 5.4.1 to 6.1.2 #781

  • Bump wkhtmltopdf-binary from 0.12.6.6 to 0.12.6.7 #779

  • Bump rack-mini-profiler from 3.3.0 to 3.3.1 #778

  • Bump listen from 3.8.0 to 3.9.0 #776

V4.1.1

Added

  • Added MORE_INFO and LESS_INFO JS constants (for the Research Outputs feature)
  • Added a .gitkeep file to the app/assets/builds directory to address potential issues when building the application.css file during production deploys DMPRoadmap#3314

Fixed

  • Updated the default font on the 'Download page' to be 'Roboto, Arial, Sans-Serif'
  • Fixed an issue with API V0 that was causing a 500 Internal Server error
  • Solved issue where spring was loaded in production mode : ran bin/spring binstub --all
  • Updated fontawesome to V6

v4.1.0

Note this upgrade is a migration from Ruby v2.7.6 to v3.0.5. Note that this could have an impact on any customizations you may have made to your fork of this project. Please see https://www.fastruby.io/blog/ruby/upgrades/upgrade-ruby-from-2.7-to-3.0.html for further information on what to check. In particular, please note the changes to the way Ruby 3 handles keyword arguments

Note that the Webpacker gem has been removed in favor of jsbundling-rails. This was done in preparation for the future migration to Rails 7. See issue #3185 for more details on this change. If, after migrating to this version, you see 'Sprockets' related errors in your application you will need to rebuild you asset library. To do this run bin/rails assets:clobber && bin/rails assets:precompile from the project directory.

All gem and JS dependencies were also updated via bundle update && yarn upgrade

Upgrade to Ruby 3

  • Upgrade to Ruby version 3.0.5 #3225
  • Bumped all Github actions to use ruby 3.0
  • Removed .freeze from Regex and Range constants since those types are already immutable
  • Fixed Rubocop complaint about redundancy of r.nil? ? nil : r.user, so changed it to r&.user in app/models/plan.rb
  • Fixed Rubocop complaint about redundant :: in config.log_formatter = ::Logger::Formatter.new in config/environments/production.rb
  • Froze lib/deprecators/*.rb constants that were Strings
  • Updated places that were incorrectly using keyword args. See this article for an overview

Upgraded TinyMCE to v6

  • Upgraded TinyMCE to v6 (v5 EOL is April 20 2023)
  • Adjusted JS code to conform to new TinyMCE version
  • Adjusted views to work with the new version
  • Updated variables.scss file to fix issue with button text/background color contrast
  • Updated blocks/_tables.scss to fix issue with dropdown menu overlap against table
  • updated config/initializers/assets.rb to copy over the tinymce skins and bootstrap glyphicons to the public directory so that they are accessible by TinyMCE and Bootstrap code

Removed webpacker gem

As Webpacker is no longer maintained by the Rails community, we have replaced it by jsbundling-rails and cssbundling-rails for the Javascript & CSS compilation.

  • Removed webpacker gem
  • Added jsbundling-rails
  • Updated webpack and its configuration to V5
  • Moved app/javascript/packs/application.js to app/javascript/application.js
  • Removed ruby-sass gem
  • Added cssbundling-rails gem and DartSass JS library
  • Updated SASS stylesheets following the migration to the latest version of the sass package (See below).
  • Removed font-awesome-sass gem and used @fortawesome/fontawesome-free npm package
  • Issue with @import 'font-awesome-sprockets'; line in app/assets/stylesheets/application.scss. Removed that line after referring to the latest font-awesome install/setup guide which no longer includes it.

With the removal of Webpacker, the Javascript/SASS code is no longer automaticaly compiled when using the rails server command. It has been replaced by the bin/dev command that launch the rails server and the processes that watch for changes in the SASS and Javascript code.

SASS update : removal of the @import keyword

With the removal of the webpacker gem, the DartSass package has been installed to ensure the compilation of the Sass stylesheet and with it, an update to the Sass version used by the code :

  • @import keyword for custom stylesheets has been removed (although we can still import stylesheets from externals packages) and has been replaced by @use and @forward
  • An _index.scss file have to be created in folders containing multiple sass files. Each file have to be included in the index with the @use or @forward keyword.
  • In most cases @import can be replaced by @use when importing a file.
  • @forward makes mixins, functions and variables available when a stylesheet is loaded.
  • When imported, Sass variables are now namespaced with the file name in which they are declared (ex : color: colors.$red). A namespace can be renamed (ex : @use "colours" as c;) or removed when included (ex : @use "colours" as *;)
  • Sass variables are no longer declared globally and have to be included in files where they are used.
    For more detailed explanation, please refer to this video : https://www.youtube.com/watch?v=CR-a8upNjJ0

Introduction of RackAttack

Rack Attack is middleware that can be used to help protect the application from malicious activity. You can establish white/black lists for specific IP addresses and also define rate limits.

  • Using Rack-attack address vulnerabilities pointed out in password reset and login: there was no request rate limit.#3214

Cleanup of Capybara configuration

  • Cleaned up Gemfile by:
    • removing gems that were already commented out
    • removed selenium-webdriver and capybara-webmock
    • removing version restrictions on: danger, font-awesome-sass, webdrivers
  • Cleaned up spec/rails_helper.rb and spec/spec_helper.rb
  • Simplified the spec/support/capybara.rb helper to work with the latest version of Capybara and use its built in headless Chrome driver

Rubocop updates

  • Installed rubocop-performance gem and made suggested changes
  • Added lib tasks as exclusive from debugger rubocop check after rubocop upgrading to >= v1.45 #3291

GitHub actions updates

  • Added node version specification (v16) to eslint, PostgreSQL and MySQL github action ...
Read more

4.1.1+portage-4.1.0-alpha-1

07 Jun 15:50
32fd058
Compare
Choose a tag to compare
Pre-release

Added

  • Merge DMPRoadmap Releases v4.1.0 and v4.1.1 #700

  • Enable Translation of QuestionOption.text (and Refactor Translation of ResearchDomain.label) #742

Fixed

  • Add .pdf handling in render_respond_to_format_with_error_message #731

  • Fixed handling of Template.visibility in some places #759

Changed

  • Deactivate Requests to External ROR API #738

  • Updated 'translation' gem URL in Gemfile to match moved repository #725

  • Increased the width of the research outputs file size unit dropdown #741

  • Bump ledermann-rails-settings from 2.5.0 to 2.6.2 #764

  • Bump webmock from 3.19.1 to 3.23.1 #762

  • Bump rspec-rails from 6.0.3 to 6.1.2 #694

  • Bump docker db image from postgres:12.14 to postgres:15-alpine #749

  • Bump danger from 9.4.2 to 9.4.3 #681

  • Bump mail from 2.7.1 to 2.8.1 #651

  • Bump turbo-rails from 1.5.0 to 2.0.5 #771

  • Bump jbuilder from 2.11.5 to 2.12.0 #770

  • Bump faker from 3.2.3 to 3.4.1 #769

  • Bump jsbundling-rails from 1.1.1 to 1.3.0 #768

  • Bump binding_of_caller from 1.0.0 to 1.0.1 #767

  • Bump engine.io from 6.4.1 to 6.4.2 #774

  • Bump activestorage from 6.1.7.6 to 6.1.7.7 #773

  • Bump @babel/traverse from 7.21.4 to 7.24.6 #772

  • Bump follow-redirects from 1.15.4 to 1.15.6 #690

  • Bump devise_invitable from 2.0.8 to 2.0.9 #671

  • Bump yard from 0.9.34 to 0.9.36 #683

  • Bump tinymce from 6.4.1 to 7.0.0 #704

  • Bump actionpack from 6.1.7.7 to 6.1.7.8 #775

  • Bump brakeman from 5.4.1 to 6.1.2 #781

  • Bump wkhtmltopdf-binary from 0.12.6.6 to 0.12.6.7 #779

  • Bump rack-mini-profiler from 3.3.0 to 3.3.1 #778

  • Bump listen from 3.8.0 to 3.9.0 #776

V4.1.1

Added

  • Added MORE_INFO and LESS_INFO JS constants (for the Research Outputs feature)
  • Added a .gitkeep file to the app/assets/builds directory to address potential issues when building the application.css file during production deploys DMPRoadmap#3314

Fixed

  • Updated the default font on the 'Download page' to be 'Roboto, Arial, Sans-Serif'
  • Fixed an issue with API V0 that was causing a 500 Internal Server error
  • Solved issue where spring was loaded in production mode : ran bin/spring binstub --all
  • Updated fontawesome to V6

v4.1.0

Note this upgrade is a migration from Ruby v2.7.6 to v3.0.5. Note that this could have an impact on any customizations you may have made to your fork of this project. Please see https://www.fastruby.io/blog/ruby/upgrades/upgrade-ruby-from-2.7-to-3.0.html for further information on what to check. In particular, please note the changes to the way Ruby 3 handles keyword arguments

Note that the Webpacker gem has been removed in favor of jsbundling-rails. This was done in preparation for the future migration to Rails 7. See issue #3185 for more details on this change. If, after migrating to this version, you see 'Sprockets' related errors in your application you will need to rebuild you asset library. To do this run bin/rails assets:clobber && bin/rails assets:precompile from the project directory.

All gem and JS dependencies were also updated via bundle update && yarn upgrade

Upgrade to Ruby 3

  • Upgrade to Ruby version 3.0.5 #3225
  • Bumped all Github actions to use ruby 3.0
  • Removed .freeze from Regex and Range constants since those types are already immutable
  • Fixed Rubocop complaint about redundancy of r.nil? ? nil : r.user, so changed it to r&.user in app/models/plan.rb
  • Fixed Rubocop complaint about redundant :: in config.log_formatter = ::Logger::Formatter.new in config/environments/production.rb
  • Froze lib/deprecators/*.rb constants that were Strings
  • Updated places that were incorrectly using keyword args. See this article for an overview

Upgraded TinyMCE to v6

  • Upgraded TinyMCE to v6 (v5 EOL is April 20 2023)
  • Adjusted JS code to conform to new TinyMCE version
  • Adjusted views to work with the new version
  • Updated variables.scss file to fix issue with button text/background color contrast
  • Updated blocks/_tables.scss to fix issue with dropdown menu overlap against table
  • updated config/initializers/assets.rb to copy over the tinymce skins and bootstrap glyphicons to the public directory so that they are accessible by TinyMCE and Bootstrap code

Removed webpacker gem

As Webpacker is no longer maintained by the Rails community, we have replaced it by jsbundling-rails and cssbundling-rails for the Javascript & CSS compilation.

  • Removed webpacker gem
  • Added jsbundling-rails
  • Updated webpack and its configuration to V5
  • Moved app/javascript/packs/application.js to app/javascript/application.js
  • Removed ruby-sass gem
  • Added cssbundling-rails gem and DartSass JS library
  • Updated SASS stylesheets following the migration to the latest version of the sass package (See below).
  • Removed font-awesome-sass gem and used @fortawesome/fontawesome-free npm package
  • Issue with @import 'font-awesome-sprockets'; line in app/assets/stylesheets/application.scss. Removed that line after referring to the latest font-awesome install/setup guide which no longer includes it.

With the removal of Webpacker, the Javascript/SASS code is no longer automaticaly compiled when using the rails server command. It has been replaced by the bin/dev command that launch the rails server and the processes that watch for changes in the SASS and Javascript code.

SASS update : removal of the @import keyword

With the removal of the webpacker gem, the DartSass package has been installed to ensure the compilation of the Sass stylesheet and with it, an update to the Sass version used by the code :

  • @import keyword for custom stylesheets has been removed (although we can still import stylesheets from externals packages) and has been replaced by @use and @forward
  • An _index.scss file have to be created in folders containing multiple sass files. Each file have to be included in the index with the @use or @forward keyword.
  • In most cases @import can be replaced by @use when importing a file.
  • @forward makes mixins, functions and variables available when a stylesheet is loaded.
  • When imported, Sass variables are now namespaced with the file name in which they are declared (ex : color: colors.$red). A namespace can be renamed (ex : @use "colours" as c;) or removed when included (ex : @use "colours" as *;)
  • Sass variables are no longer declared globally and have to be included in files where they are used.
    For more detailed explanation, please refer to this video : https://www.youtube.com/watch?v=CR-a8upNjJ0

Introduction of RackAttack

Rack Attack is middleware that can be used to help protect the application from malicious activity. You can establish white/black lists for specific IP addresses and also define rate limits.

  • Using Rack-attack address vulnerabilities pointed out in password reset and login: there was no request rate limit.#3214

Cleanup of Capybara configuration

  • Cleaned up Gemfile by:
    • removing gems that were already commented out
    • removed selenium-webdriver and capybara-webmock
    • removing version restrictions on: danger, font-awesome-sass, webdrivers
  • Cleaned up spec/rails_helper.rb and spec/spec_helper.rb
  • Simplified the spec/support/capybara.rb helper to work with the latest version of Capybara and use its built in headless Chrome driver

Rubocop updates

  • Installed rubocop-performance gem and made suggested changes
  • Added lib tasks as exclusive from debugger rubocop check after rubocop upgrading to >= v1.45 #3291

GitHub actions updates

Read more

4.0.2+portage-4.0.4

16 May 03:36
61734c0
Compare
Choose a tag to compare

[4.0.2+portage-4.0.4] - 2024-05-15

Fixed

  • Fixed an issue that was preventing users from accessing some customisable templates #751

4.0.2+portage-4.0.3

11 Apr 20:26
85b14d8
Compare
Choose a tag to compare

Added

  • Bump mysql2 from 0.5.5 to 0.5.6 #645

  • Added "Accept terms and conditions" checkbox to invitation form #684

  • Bump rack from 2.2.8 to 2.2.9 #714

  • Bump tar from 6.1.13 to 6.2.1 #719

Fixed

  • Updated Webmock's allowed request list to enable fetching of chromedriver #670

  • Edit Gemfile config for 'rollbar' to enable app tracking on rollbar.com #687

  • Fixed ordering of templates within the "Create a new plan" template dropdown #706 and #718

4.0.2+portage-4.0.2

05 Mar 18:12
75192b2
Compare
Choose a tag to compare

Added

  • Added an extra Google Analytics Tag #682

Updated

  • Update secret for Rails.application.secrets.mailer_default_host from old assistant.portagenetwork.ca domain to current dmp-pgd.ca domain within production environment.

4.0.2+portage-4.0.1

02 Feb 20:29
c9f9ed8
Compare
Choose a tag to compare

Added

  • Bump bootsnap from 1.17.1 to 1.18.3 #630

  • Bump bullet from 7.1.5 to 7.1.6 #605

  • Bump rollbar from 3.5.0 to 3.5.1 #601

  • Bump faker from 3.2.2 to 3.2.3 #603

  • Bump bootsnap from 1.17.0 to 1.17.1 #598

  • Enabled reCaptcha widget's language to match app's selected language #558

  • Bump follow-redirects from 1.15.2 to 1.15.4 #596

  • Bump puma from 6.4.1 to 6.4.2 #592

  • Bump puma from 6.4.0 to 6.4.1 #584

  • Bump bullet from 7.1.4 to 7.1.5 #588

  • Bump rollbar from 3.4.2 to 3.5.0 #585

  • Bump parallel from 1.23.0 to 1.24.0 #574

  • Bump omniauth from 2.1.1 to 2.1.2 #573

  • Bump autoprefixer-rails from 10.4.15.0 to 10.4.16.0 #571

  • Bump bootsnap from 1.16.0 to 1.17.0 #564

  • Bump faker from 3.2.1 to 3.2.2 #565

  • Bump turbo-rails from 1.4.0 to 1.5.0 #566

  • Bump activerecord-nulldb-adapter from 0.9.0 to 1.0.1 #567

  • Bump recaptcha from 5.15.0 to 5.16.0 #568

  • Bump tinymce from 5.10.0 to 5.10.9 #530

  • Bump rack-mini-profiler from 3.1.0 to 3.3.0 #548

  • Bump spring from 4.1.1 to 4.1.3 #562

  • Bump rollbar from 3.4.0 to 3.4.2 #547

  • Bump danger from 9.3.1 to 9.4.2 #555

  • Bump bullet from 7.1.0 to 7.1.4 #563

  • Bump browserify-sign from 4.2.1 to 4.2.2 #520

  • Bump socket.io-parser from 4.2.2 to 4.2.4 #559

  • Merged Upstream Release v4.0.0

  • Merged Upstream Release v4.0.1

  • Merged Upstream Release v4.0.2

  • Added CHANGELOG.md and Danger Github Action #3257

  • Added validation with custom error message in research_output.rb to ensure a user does not enter a very large value as 'Anticipated file size'. #3161

  • Added popover for org profile page and added explanation for public plan

  • Added rack-attack version 6.6.1 gem. https://rubygems.org/gems/rack-attack/versions/6.6.1

Fixed

  • Removed unwanted text from success notification when permissions are changed for a plan collaborator #606

  • Fixed gem install bundler issue that was preventing Github Actions from pushing images to Docker Hub #599

  • Fixed tooltips that were previously rendering 'undefined' as their message #552

  • Patched a validation check to enable updates for all existing DMP Assistant Orgs #587

  • Fix duplicate guidance choices #560

  • Fix 500 error being thrown for GET api/v0/plans #569

  • Fixed an issue that was preventing uses from leaving the research output byte_size field blank

  • Patched issue that was causing template visibility to default to organizationally visible after saving

  • Froze mail gem version #3254

  • Updated the CSV export so that it now includes research outputs

  • Updated sans-serif font used in PDF downloads to Roboto since Google API no longer offers Helvetica

  • Fixed discrepencies with default/max per_page values for API and UI pagination

  • Updated JS that used to call the TinyMCE setMode() function so that it now calls mode.set() because the former is now deprecated.

  • Patched an issue that was causing a template's visibility to change to 'organizationally_visible' when saving on the template details page.

  • Fixed an issue with the Rails 6 keyword arguments change that was causing the paginable_sort_link to fail

Changed

  • Removed dmp-pgd.ca/?locale=fr_CA links from terms & privacy pages (they had no effect on the app's language selector) #455

  • Updated ruby.yml workflow to use PostgreSQL database #532

  • Added scss files to EditorConfig

  • Change csv file name for statistics from 'Completed' to 'Created'

  • Added error message and updated saving message for plan writing session to improve user experience

4.0.2+portage-4.0.0

01 Feb 19:45
c9f9ed8
Compare
Choose a tag to compare

Added

  • Bump bootsnap from 1.17.1 to 1.18.3 #630

  • Bump bullet from 7.1.5 to 7.1.6 #605

  • Bump rollbar from 3.5.0 to 3.5.1 #601

  • Bump faker from 3.2.2 to 3.2.3 #603

  • Bump bootsnap from 1.17.0 to 1.17.1 #598

  • Enabled reCaptcha widget's language to match app's selected language #558

  • Bump follow-redirects from 1.15.2 to 1.15.4 #596

  • Bump puma from 6.4.1 to 6.4.2 #592

  • Bump puma from 6.4.0 to 6.4.1 #584

  • Bump bullet from 7.1.4 to 7.1.5 #588

  • Bump rollbar from 3.4.2 to 3.5.0 #585

  • Bump parallel from 1.23.0 to 1.24.0 #574

  • Bump omniauth from 2.1.1 to 2.1.2 #573

  • Bump autoprefixer-rails from 10.4.15.0 to 10.4.16.0 #571

  • Bump bootsnap from 1.16.0 to 1.17.0 #564

  • Bump faker from 3.2.1 to 3.2.2 #565

  • Bump turbo-rails from 1.4.0 to 1.5.0 #566

  • Bump activerecord-nulldb-adapter from 0.9.0 to 1.0.1 #567

  • Bump recaptcha from 5.15.0 to 5.16.0 #568

  • Bump tinymce from 5.10.0 to 5.10.9 #530

  • Bump rack-mini-profiler from 3.1.0 to 3.3.0 #548

  • Bump spring from 4.1.1 to 4.1.3 #562

  • Bump rollbar from 3.4.0 to 3.4.2 #547

  • Bump danger from 9.3.1 to 9.4.2 #555

  • Bump bullet from 7.1.0 to 7.1.4 #563

  • Bump browserify-sign from 4.2.1 to 4.2.2 #520

  • Bump socket.io-parser from 4.2.2 to 4.2.4 #559

  • Merged Upstream Release v4.0.0

  • Merged Upstream Release v4.0.1

  • Merged Upstream Release v4.0.2

  • Added CHANGELOG.md and Danger Github Action #3257

  • Added validation with custom error message in research_output.rb to ensure a user does not enter a very large value as 'Anticipated file size'. #3161

  • Added popover for org profile page and added explanation for public plan

  • Added rack-attack version 6.6.1 gem. https://rubygems.org/gems/rack-attack/versions/6.6.1

Fixed

  • Removed unwanted text from success notification when permissions are changed for a plan collaborator #606

  • Fixed gem install bundler issue that was preventing Github Actions from pushing images to Docker Hub #599

  • Fixed tooltips that were previously rendering 'undefined' as their message #552

  • Patched a validation check to enable updates for all existing DMP Assistant Orgs #587

  • Fix duplicate guidance choices #560

  • Fix 500 error being thrown for GET api/v0/plans #569

  • Fixed an issue that was preventing uses from leaving the research output byte_size field blank

  • Patched issue that was causing template visibility to default to organizationally visible after saving

  • Froze mail gem version #3254

  • Updated the CSV export so that it now includes research outputs

  • Updated sans-serif font used in PDF downloads to Roboto since Google API no longer offers Helvetica

  • Fixed discrepencies with default/max per_page values for API and UI pagination

  • Updated JS that used to call the TinyMCE setMode() function so that it now calls mode.set() because the former is now deprecated.

  • Patched an issue that was causing a template's visibility to change to 'organizationally_visible' when saving on the template details page.

  • Fixed an issue with the Rails 6 keyword arguments change that was causing the paginable_sort_link to fail

Changed

  • Removed dmp-pgd.ca/?locale=fr_CA links from terms & privacy pages (they had no effect on the app's language selector) #455

  • Updated ruby.yml workflow to use PostgreSQL database #532

  • Added scss files to EditorConfig

  • Change csv file name for statistics from 'Completed' to 'Created'

  • Added error message and updated saving message for plan writing session to improve user experience