-
Notifications
You must be signed in to change notification settings - Fork 90
Register adapter with AR for AR version >= 7.2 #132
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
Register adapter with AR for AR version >= 7.2 #132
Conversation
|
Master branch ActiveRecord tests are failing due to Ruby version requirements, and there is no official release of 7.2 yet, so I added a 7.2.0.rc1 gemfile, though it would probably not make sense to merge that. |
|
Thought that our only hurdle was the registration of the adapter but it's failing now due to Open to suggestions, not sure how many other changes are going to be required to make this work. |
|
Thanks for your work on this PR that is needed. Just a couple of observations. First, have you tried updating the gemspec to include Second, 4 of the 8 failing checks are because of the Ruby requirements for Rails 7.2 (> = 3.1). I think if you add some additional exclusion to the workflow for rubies < 3.1 for gemfile: "activerecord_7.0" it should clear these errors up. Again, thanks for your work, it is appreciated. |
0a2472d to
8183e9d
Compare
|
@eclectic-coding Thanks for looking and checking things out. I neglected to clean things up because I wasn't able to move forward with the 7.2 changes, and I had missed a few version exclusions as you pointed out. I added those in but the original problems with AR 7.2 still stand. Rails (and AR) 7.0 and 7.1 support Ruby 2.7 officially, and 7.2 now supports back to Ruby 3.1. Nonetheless, the issues with 7.2 and Ruby 3.1 to 3.3 still stand. All of the Ruby 2.5 tests are now failing as well, not sure if it's some bundler thing or a change to Actions' test matrix support for Ruby 2.5. Looks like some YAML parsing backtrace but I haven't investigated. |
|
I dug around some more, monkey patched the I also removed Ruby 2.5 and AR 5.2 from the test matrix and other applicable areas, as those tests were failing and this seems like a good a time as any to drop support for these extremely EOL versions, given that existing versions of nulldb adapter work fine with them. Obviously that can be left in or not, but the tests were failing for a reason unrelated to this PR. |
|
So, the The last two checks are failing Thanks again. |
|
Are there any updates on the approval of this PR? Right now this is a blocker for any application upgrading to Rails 7.2. Thanks again for the effort and work. |
|
Same, blocks us from upgrading to Rails 7.2 |
|
Hey @taylorthurlow I tried using your branch directly to my rails backend app (obv. while trying t upgrade to 7.2) and but it still throws the same error. |
@abhishekbuilderai For me it works. Change your Gemfile to this and run |
|
Should be superseded by #136, as it includes these changes but also adds support for ActiveRecord 8. |
Closes #128 and fixes compatiblity with Rails/ActiveRecord >= 7.2.