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

feat(Rails7): Update for Rails 7 and MySQL 8 #2

Merged
merged 15 commits into from
Aug 24, 2023
Merged

feat(Rails7): Update for Rails 7 and MySQL 8 #2

merged 15 commits into from
Aug 24, 2023

Conversation

seven1m
Copy link
Member

@seven1m seven1m commented Aug 3, 2023

This PR attempts to modernize the gem a little: getting it working on changes made in Rails 7 (and dropping support for older versions), and updating tests for MySQL 8.

We no longer retry on ActiveRecord::StatementTimeout errors.

I also took the opportunity to bump the version number to 1.0 and clean up the changelog.

Update 8/24/2023 by @bensie: There is new reconnect/retry functionality baked into Rails 7.1 (not yet released). This PR requires Rails 7.0.x under the assumption updating Rails will require the removal of this gem. Platform will provide guidance on this transition once 7.1 is released.


@seven1m seven1m requested a review from a team as a code owner August 3, 2023 16:02
mcfadden
mcfadden previously approved these changes Aug 3, 2023
Copy link
Contributor

@mcfadden mcfadden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker at all, but should we set the version requirement on activerecord here to >= 7?

mranallo
mranallo previously approved these changes Aug 3, 2023
Copy link
Member

@mranallo mranallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😻

@seven1m seven1m force-pushed the 7m/rails7 branch 5 times, most recently from 1dd9a3f to 50dfb6b Compare August 16, 2023 21:27
@seven1m seven1m changed the title fix(Rails7): Override raw_execute to be compatible with Rails 7+ fix(Rails7): Update for Rails 7 and MySQL 8 Aug 17, 2023
@seven1m seven1m changed the title fix(Rails7): Update for Rails 7 and MySQL 8 feat(Rails7): Update for Rails 7 and MySQL 8 Aug 17, 2023
@seven1m seven1m dismissed stale reviews from mranallo and mcfadden August 17, 2023 00:10

I made a bunch of changes :)

Copy link
Contributor

@mcfadden mcfadden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So good! Thank you for breathing some life back into this.

@bensie bensie merged commit f9828a0 into main Aug 24, 2023
1 check passed
@bensie bensie deleted the 7m/rails7 branch August 24, 2023 22:26
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.

4 participants