-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update to support Rails 7.0 #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial comments and testing. I set my local knockoff to this branch and then set ENABLE_REPLICAS=true
in my .env.development.local
and received this error:
F, [2024-08-14T15:26:35.931451 #85048] FATAL -- : [d32d9ef4-91fd-43be-914a-db4209c31fc7] [Chrome 127.0.0.0] [::1] [dd.env=development dd.service=handshake dd.trace_id=3860344763007303586 dd.span_id=0 ddsource=ruby]
[d32d9ef4-91fd-43be-914a-db4209c31fc7] [Chrome 127.0.0.0] [::1] [dd.env=development dd.service=handshake dd.trace_id=3860344763007303586 dd.span_id=0 ddsource=ruby] NameError (uninitialized constant Knockoff::ActiveRecord::Base
open_transactions = run_on(:primary) { ActiveRecord::Base.connection.open_transactions }
^^^^^^
Did you mean? Base64):
[d32d9ef4-91fd-43be-914a-db4209c31fc7] [Chrome 127.0.0.0] [::1] [dd.env=development dd.service=handshake dd.trace_id=3860344763007303586 dd.span_id=0 ddsource=ruby]
[d32d9ef4-91fd-43be-914a-db4209c31fc7] [Chrome 127.0.0.0] [::1] [dd.env=development dd.service=handshake dd.trace_id=3860344763007303586 dd.span_id=0 ddsource=ruby] lib/middleware/next/transition_redirections.rb:25:in `call'
… as path in host gemfile
README.md
Outdated
@@ -17,7 +17,29 @@ A gem for easily using read replicas. | |||
|
|||
## Supported Versions | |||
|
|||
Knockoff supports Rails 4, 5 and 6 | |||
| Knockoff version: | 1.0 | 1.1.0 | 1.1.1 | 1.4 | 1.5 | | |||
| -------- | ------- | -------- | ------- | -------- | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with existing 6.1 application and a 7.0 app.
Once this is merged I'll create a release and push it to ruby gems.