Skip to content

Fixes version check for ActiveRecord adapter introduced in #478 #479

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

Merged
merged 5 commits into from
Sep 16, 2024

Conversation

mihaimuntenas
Copy link
Contributor

Fixes version check for ActiveRecord version, introduced in #478, that's causing an ArgumentError, as the target version for the comparison is expected to be a String not a Number.

@jkeen

In ActiveRecord 7.2 the `clear_active_connections` was (re)moved to the `connection_handler` property.
Update ActiveRecord adapter w/ support for Rails 7.2+
Fix version check in ActiveRecord adapter: the "target" version for comparison needs to be a string.

Fixes: 
ArgumentError: comparison of Gem::Version with 7.2 failed
@mihaimuntenas
Copy link
Contributor Author

@jkeen I have no idea how this passed the tests ...
I see this issue on Ruby 3.2.1 with Rails 7.2.1 in my projects.

Fix linting complaint for String constant.
@mihaimuntenas
Copy link
Contributor Author

@richmolj @wadetandy @jkeen any maintainers who can review, merge, and release a new version? please ...

@jkeen jkeen merged commit 42c82c3 into graphiti-api:master Sep 16, 2024
36 checks passed
@jkeen
Copy link
Collaborator

jkeen commented Sep 16, 2024

@mihaimuntenas Missed the notification on this, sorry for delay!

Also have no idea how that passed tests, but thanks for catching it and supplying a fix.

@mihaimuntenas
Copy link
Contributor Author

@jkeen thanks a lot! If you can also do a . release would be great.
The bot failed to do it automatically, seems there's a spec failing for ruby 3.1 & rails 7 - but looks unrelated.

@jkeen
Copy link
Collaborator

jkeen commented Sep 16, 2024

Ack, yeah that's an intermittent error, just reran that test—releasing now.

github-actions bot pushed a commit that referenced this pull request Sep 16, 2024
## [1.7.5](v1.7.4...v1.7.5) (2024-09-16)

### Bug Fixes

* Fixes error in version check for ActiveRecord adapter introduced in [#478](#478) ([#479](#479)) ([42c82c3](42c82c3))
Copy link

🎉 This PR is included in version 1.7.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants