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

Fix activerecord 7.1 deprecation warnings #755

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

tomgi
Copy link
Contributor

@tomgi tomgi commented Dec 5, 2023

Fixes the following:

DEPRECATION WARNING: Calling ActiveRecord::Base.clear_active_connections! is deprecated. Please call the method directly on the connection handler; for example: ActiveRecord::Base.connection_handler.clear_active_connections!`. (called from call at /app/.bundle/ruby/3.2.0/bundler/gems/shoryuken-869fb0c77f8e/lib/shoryuken/middleware/server/active_record.rb:8)

DEPRECATION WARNING: clear_active_connections! currently only applies to connection pools in the current role (writing). In Rails 7.2, this method will apply to all known pools, regardless of role. To affect only those connections belonging to a specific role, pass the role name as an argument. To switch to the new behavior, pass :all as the role name. (called from call at /app/.bundle/ruby/3.2.0/bundler/gems/shoryuken-869fb0c77f8e/lib/shoryuken/middleware/server/active_record.rb:8)

@phstc phstc merged commit 6685016 into ruby-shoryuken:main Dec 5, 2023
19 checks passed
@phstc
Copy link
Collaborator

phstc commented Dec 5, 2023

@tomgi thank you! PR merged.

@tomgi tomgi deleted the activerecord_deprecation_warning branch December 6, 2023 00:05
@vladhadzhiyski
Copy link

Thanks for merging / fixing this. Looks like it hasn't been released yet. Any rough estimate when a new release with this fix can be cut?

@phstc
Copy link
Collaborator

phstc commented Jan 31, 2024

hi @vladhadzhiyski

Sorry for the delay on this! I just released a new version.

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.

3 participants