Skip to content
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

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Rails 7.1 Upgrade #1186

merged 3 commits into from
Nov 13, 2023

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Nov 10, 2023

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

@@ -220,7 +220,7 @@ def audited_attributes
end

# called when item is updated
def audited_changes
def audited_changes(**args)
Copy link
Contributor Author

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 ArgumentErrors. 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.

@phinze phinze requested a review from jim November 10, 2023 22:51
Copy link
Member

@jim jim left a 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!
@phinze phinze requested a review from jim November 12, 2023 02:28
@phinze
Copy link
Contributor Author

phinze commented Nov 12, 2023

@jim re-requesting review here since I made a lot more changes on this today ⚒️

Copy link
Member

@jim jim left a 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'
Copy link
Member

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
Copy link
Member

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 😄

@phinze phinze merged commit 8b34d23 into main Nov 13, 2023
5 checks passed
@phinze phinze deleted the rails-7-1 branch November 13, 2023 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants