-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.1.0 - release candidate #3309
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resetting the password. The Rack-Attack middleware for blocking & throttling abusive requests is being used. https://github.com/rack/rack-attack/blob/6-stable/README.md Changes: - Added rack-attack version 6.6.1 gem. https://rubygems.org/gems/rack-attack/versions/6.6.1 - Added config/initializers/rack_attack.rb: - The rack-attack functionality is enabled with Rack::Attack.enabled = true but may be switched off Rack::Attack.enabled = false. - Password reset requests are currently throttled from from an IP address for POSTs to path /users/passwords and is limited 2 requests every 30 seconds. ess - Login requests are throttled from an IP address for POSTs to path /users/sign_in and is limited 4 requests every 30 seconds. - A new html page public/429.html with title "Too Many Request" is added.
… bootstrap & jquery-ui dependencies
DMP Assistant Feature - allow phase-only download - Ready
…on_reset_password_link
…te_limit_on_reset_password_link Fix for bug #3214 which had noted there was no request rate limit to - WIP
…icons and tinymce skins into the public folder
Tinymce v6
Translation sync from Translation.io
Generated by 🚫 Danger |
…uby 3 and Tinymce 6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
.freeze
from Regex and Range constants since those types are already immutabler.nil? ? nil : r.user
, so changed it tor&.user
inapp/models/plan.rb
::
in config.log_formatter =::Logger::Formatter.new
inconfig/environments/production.rb
lib/deprecators/*.rb
constants that were StringsUpgraded TinyMCE to v6
Removed webpacker gem
As Webpacker is no longer maintained by the Rails community, we have replaced it by
jsbundling-rails
andcssbundling-rails
for the Javascript & CSS compilation.webpacker
gemjsbundling-rails
app/javascript/packs/application.js
toapp/javascript/application.js
ruby-sass
gemcssbundling-rails
gem and DartSass JS librarysass
package (See below).font-awesome-sass
gem and used@fortawesome/fontawesome-free
npm package@import 'font-awesome-sprockets';
line inapp/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 thebin/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
keywordWith 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
_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.@import
can be replaced by@use
when importing a file.@forward
makes mixins, functions and variables available when a stylesheet is loaded.color: colors.$red
). A namespace can be renamed (ex :@use "colours" as c;
) or removed when included (ex :@use "colours" as *;
)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.
Cleanup of Capybara configuration
spec/rails_helper.rb
andspec/spec_helper.rb
spec/support/capybara.rb
helper to work with the latest version of Capybara and use its built in headless Chrome driverRubocop updates
GitHub actions updates
digital routine enveloped
error #319New Rake task for updating dependencies
bin/rails update:all
task that will update the gem and JS dependencies and also add thex86_64-linux
environment to the bundle's supported platform listEnhancements