Skip to content

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

Merged
jkeen merged 5 commits into
graphiti-api:masterfrom
mihaimuntenas:master
Sep 16, 2024
Merged

Fixes version check for ActiveRecord adapter introduced in #478#479
jkeen merged 5 commits into
graphiti-api:masterfrom
mihaimuntenas:master

Conversation

@mihaimuntenas

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@jkeen

jkeen commented Sep 16, 2024

Copy link
Copy Markdown
Collaborator

@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
Copy Markdown
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

jkeen commented Sep 16, 2024

Copy link
Copy Markdown
Collaborator

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))
@github-actions

Copy link
Copy Markdown

🎉 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