mongoid_includes icon indicating copy to clipboard operation
mongoid_includes copied to clipboard

Mongoid 9 support

Open danarnold opened this issue 1 year ago • 5 comments
trafficstars

Mongoid seems to have moved the functionality from Mongoid::Association::Referenced::Eager::Base into Mongoid::Association::Eager. Changing the prepend to work on that module seems to make everything work as expected.

Additionally, I updated the Gemfile.lock to get the tests running. I am getting one test failure, on Mongoid::Includes::Criteria#includes multiple inclusions through polymorphic associations :with inclusions should not be overriden (expected: 4 times with any arguments, received: 3 times with any arguments). However, this also fails without any changes related to mongoid 9, so I don't think it's related to any changes I made. I also needed to add a Time.zone specification to the spec_helper, which is now required by mongoid.

danarnold avatar Aug 08 '24 23:08 danarnold

The test failure is also present with Mongoid 7 and 8.1. Just to confirm that it's not related to your changes.

1st8 avatar Aug 30 '24 12:08 1st8

@ElMassimo any plans to review / merge this?

jclusso avatar Oct 02 '24 21:10 jclusso

I don't understand the silence, he is not dead because he has pushed to another repo few hours ago. Tests are passing, it just needs a click to merge and publish the gem update (if not automatically done) 🤷🏻‍♂️

cperezabo avatar Oct 15 '24 18:10 cperezabo

I don't understand the silence, he is not dead because he has pushed to another repo few hours ago. Test are passing, it just needs a click to merge and publish the gem update (if not automatically done) 🤷🏻‍♂️

@cperezabo only guess I have is he has notifications turned off for this repo or something.

jclusso avatar Oct 15 '24 20:10 jclusso

@ElMassimo any plans merge this?

remz99 avatar Jan 12 '25 19:01 remz99

@ElMassimo checking in to see if this might get merged soon?

jclusso avatar Apr 02 '25 06:04 jclusso

I haven't used MongoDB or Mongoid for the past 5 years, so I no longer have a way to thoroughly test these changes.

Happy to transfer the library to @danarnold if interested, or to github/mongoid.

ElMassimo avatar Apr 08 '25 15:04 ElMassimo

@ElMassimo Sure, can you transfer ownership to the org https://github.com/cacheventures (which I'm a member of)?

danarnold avatar Apr 08 '25 19:04 danarnold

Hi, I found the following problem which should be fixed in this branch. Also, would like to vote for the gem ownership transfer and release 🤞

stanley90 avatar Aug 28 '25 09:08 stanley90

@ElMassimo if you want to transfer it to @danarnold, myself, or directly to my company @cacheventures, the option is still there. We're using this gem and need to continue maintaining it anyway.

jclusso avatar Aug 28 '25 14:08 jclusso

@jclusso I've requested transferring this repo to your account, I didn't have permission to transfer it to @cacheventures, and @danarnold already has a fork of this repo so it wouldn't let me transfer it to his account.

I'll coordinate the transfer of the Ruby gem with you over email.

ElMassimo avatar Sep 01 '25 14:09 ElMassimo

@ElMassimo thanks, I got it!

jclusso avatar Sep 01 '25 14:09 jclusso