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

Please privide Rails 7.1 compatibility #2357

Closed
drgcms opened this issue Jan 15, 2024 · 16 comments
Closed

Please privide Rails 7.1 compatibility #2357

drgcms opened this issue Jan 15, 2024 · 16 comments

Comments

@drgcms
Copy link

drgcms commented Jan 15, 2024

Steps to reproduce

Database connection

Expected behavior

Success

Actual behavior

oracle-enhanced (deb214decc37) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:699:in get_database_version'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_adapters/schema_cache.rb:374:in database_version'
activerecord (7.1.2) lib/active_record/connection_adapters/schema_cache.rb:70:in database_version'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_adapters/schema_cache.rb:200:in database_version'
activerecord (7.1.2) lib/active_record/connection_adapters/abstract_adapter.rb:871:in database_version'](http://razvoj:3340/register-finance#) [oracle-enhanced (deb214decc37) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:307:in supports_fetch_first_n_rows_and_offset?'
oracle-enhanced (deb214decc37) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:271:in arel_visitor'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_adapters/abstract_adapter.rb:159:in initialize'
oracle-enhanced (deb214decc37) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:250:in initialize'](http://razvoj:3340/register-finance#) [oracle-enhanced (deb214decc37) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:76:in new'
oracle-enhanced (deb214decc37) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:76:in oracle_enhanced_connection'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:673:in public_send'
activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:673:in new_connection'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:720:in checkout_new_connection'
activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:699:in try_to_checkout_new_connection'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:657:in acquire_connection'
activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in checkout'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in connection'
activerecord (7.1.2) lib/active_record/connection_adapters/abstract/connection_handler.rb:246:in retrieve_connection'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/connection_handling.rb:287:in retrieve_connection'
activerecord (7.1.2) lib/active_record/connection_handling.rb:254:in connection'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/model_schema.rb:618:in load_schema!'
activerecord (7.1.2) lib/active_record/attributes.rb:264:in load_schema!'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/encryption/encryptable_record.rb:127:in load_schema!'
activerecord (7.1.2) lib/active_record/model_schema.rb:563:in block in load_schema'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/model_schema.rb:560:in synchronize'
activerecord (7.1.2) lib/active_record/model_schema.rb:560:in load_schema'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/model_schema.rb:441:in attribute_types'
activerecord (7.1.2) lib/active_record/model_schema.rb:467:in type_for_attribute'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/type_caster/map.rb:16:in type_for_attribute'
activerecord (7.1.2) lib/arel/table.rb:111:in type_for_attribute'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/table_metadata.rb:18:in type'
activerecord (7.1.2) lib/active_record/relation/predicate_builder.rb:59:in build'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/relation/predicate_builder.rb:54:in []'
activerecord (7.1.2) lib/active_record/relation/predicate_builder.rb:132:in block in expand_from_hash'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/relation/predicate_builder.rb:79:in each'
activerecord (7.1.2) lib/active_record/relation/predicate_builder.rb:79:in flat_map'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/relation/predicate_builder.rb:79:in expand_from_hash'
activerecord (7.1.2) lib/active_record/relation/predicate_builder.rb:25:in build_from_hash'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/relation/query_methods.rb:1526:in build_where_clause'
activerecord (7.1.2) lib/active_record/relation/query_methods.rb:943:in where!'](http://razvoj:3340/register-finance#) [activerecord (7.1.2) lib/active_record/relation/query_methods.rb:938:in where'
activerecord (7.1.2) lib/active_record/querying.rb:23:in where'](http://razvoj:3340/register-finance#) [/home/rails/register/app/renderers/register_renderer.rb:102:in finance'

System configuration

Rails version: rails (7.1.2)

Oracle enhanced adapter version: activerecord-oracle_enhanced-adapter (7.1.0.alpha deb214d)

Ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]

Oracle Database version: 12.1.0.2.0

Thanks
TheR

@jarl-dk
Copy link

jarl-dk commented Mar 11, 2024

This request covers #2329

@andynu
Copy link
Contributor

andynu commented Mar 26, 2024

Hi Everyone,

I'm interested in helping move this forward. I've started a series of PRs to work through test regressions on the way to rails 7.1 support. Right now I'm providing them as stacked PRs so you can see the passing tests. I'd be happy to provide them again as independent PRs, each one really just contains a rails feature bump and a single commit of the fixing changes. Since there is no contribution guide here, I'm not sure if this is the most desirable approach. Please let me know if I can change tactics to make this easier on the maintainers.

I would appreciate any feedback you have. I'm trying to be as minimal as possible in the changes to make these tests pass, there are already scenarios where a larger change might be more appropriate. Thank you!!!

@davinlagerroos
Copy link
Contributor

First, thanks @andynu for the work you've put in to upgrading this library!

Second, I am by no means an expert in this library or its patterns. My group uses this gem and I have been looking at a 7.1 update well, so I have some ideas about a couple of these changes that I will add to the relevant PRs. However, I am still orienting myself to the codebase so take whatever I say in those PRs with a grain of salt.

@joshRpowell
Copy link

Anyone know how this recent change in Rails rails/rails@d0af407 impacts this Gem?

@andynu
Copy link
Contributor

andynu commented May 15, 2024 via email

@mohits
Copy link

mohits commented May 15, 2024

I remember the discussion that support will be provided officially by Rails core for the major supported OSS databases. The discussion was in the context of DB2 support and is at this link: rails/rails#50537

In fact, this gem was specifically mentioned in the discussion. I read it as meaning that Rails core will officially support only those adapters but the community is welcome to add support for others and yes, the onus is on them and their users. However, I have no doubt that changes could be upstreamed to Rails if it were broadly applicable.

@jacobat
Copy link

jacobat commented May 27, 2024

@yahonda Are you aware of anyone working on providing a Rails 7.1 compatible version beyond what's mentioned in this thread? Are you still working on this adapter or do we need to find new maintainer(s)?

@yahonda
Copy link
Collaborator

yahonda commented May 27, 2024

Sorry for my late update. I still have some plan to support Oracle enhanced adapter compatible with Rails 7.1. That will take some more time.

@hss-mateus
Copy link
Contributor

#2384 have all the patches mentioned above and a couple of more things

Unfortunatelly I don't have time to test it with different scenarios than a simple model

@rjschof
Copy link

rjschof commented Aug 9, 2024

This is a blocker for any app relying on Oracle DBs to get to Rails 7.1. It looks like the code in the PR #2384 works pretty well. What needs to be done to get this in a new release of this gem? How can I help?

@andynu
Copy link
Contributor

andynu commented Aug 13, 2024

@yahonda Thank you for all the merges! Anything you'd like to discuss or further changes you're interested in related to rails 7.x support, I'm here for it.

@dwarner
Copy link

dwarner commented Sep 9, 2024

I see the code has been merged into master (i.e. 7.1.0.alpha), but Is there an estimate on the official release date of 7.1.0?

@joshRpowell
Copy link

@dwarner a tagged beta is now available for testing https://github.com/rsim/oracle-enhanced/releases/tag/v7.1.0.beta1

@andynu
Copy link
Contributor

andynu commented Sep 23, 2024

I've switched to this from my fork. So far, so good. Tests are green. Nothing surprising yet. Thank you so much @yahonda for cutting the public release.

@Faq
Copy link

Faq commented Sep 26, 2024

With release of v7.1, forgotten to update readme too? https://github.com/rsim/oracle-enhanced#installation

@yahonda
Copy link
Collaborator

yahonda commented Sep 26, 2024

Thank you for waiting for the release of Active Record Oracle enhanced adapter 7.1. The README has been updated via #2408 as well, so I am going to close this issue. If you encounter any problems, please feel free to open a new issue.

@yahonda yahonda closed this as completed Sep 26, 2024
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

No branches or pull requests