-
Notifications
You must be signed in to change notification settings - Fork 67
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
Rails 7.1 Upgrade #1186
Rails 7.1 Upgrade #1186
Conversation
@@ -220,7 +220,7 @@ def audited_attributes | |||
end | |||
|
|||
# called when item is updated | |||
def audited_changes | |||
def audited_changes(**args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This started taking args in collectiveidea/audited#657 so every Item interaction started throwing ArgumentError
s. Since we call super
with no args I believe they should automatically be passed along, so it's fine to just capture the args to make the method signature match the callers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Good call on the devise turbo support, I'll rebase that PR on this one and see if I can get that sorted as a part of that work.
Fast on the heels of 7.0 here comes the latest and greatest Rails version!
@jim re-requesting review here since I made a lot more changes on this today ⚒️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read through the full diff again, one line was dropped from bin/setup
, but otherwise everything looks good. Thanks for the thorough notes in the PR description, it made understanding the changes a lot easier.
system! 'bin/rails db:setup' | ||
|
||
puts "\n== Loading dev data ==" | ||
system! 'bin/rails devdata:load' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line didn't make it over into the newer version. It theoretically saves first time devs a step when they start up the app for the first time, so probably worth keeping unless there's a reason we'd want bin/setup
to leave the database totally empty.
|
||
# Suppress logger output for asset requests. | ||
# config.assets.quiet = true | ||
config.assets.quiet = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, there it is 😄
Good catch @jim!
Fast on the heels of 7.0 here comes the latest and greatest Rails version!
What it does
Gets us on Rails 7.1.
Why it is important
Latest is greatest. And specifically this gets us access to background preprocessing of variants for finishing #1150
Implementation notes
audited
we were using. The change we switched for was upstreamed and we need the more recent work to make it compatible with Rails 7.1. Just a couple of code changes were needed and tests seem to be passing okay.before_action
typos.rake app:update
yielded diffs on many of the config files. I took all the changes tobin
scripts whole hog and merged the rest. A second set of eyes across those diffs would be helpful though! 👀config/environments/test.rb
with a note explaining.bin/rails test
which made the SCSS deprecation warnings get pretty annoying. Pulling in a workaround from scss Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. picturepan2/spectre#694lib/rails_solargraph.rb
, so following a comment on the referenced gist I switch us to the solargraph-rails gem.