Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Fix dependency/compatibility broken with latest Ransack #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

panyamin
Copy link

@panyamin panyamin commented Apr 7, 2015

No description provided.

@oneamtu
Copy link

oneamtu commented Apr 22, 2015

I'm working on getting the specs to pass with the new polyamorous, PR on the way.

@oneamtu
Copy link

oneamtu commented Apr 22, 2015

It looks like the problem is not that straightforward. No surprises there :)

@jonatack it looks like squeel is not compatible with the current version of polyamorous. I tried using the master version of polyamorous and different specs in squeel are failing. My knowledge of the internals of AR are restricted, so I tried a couple of things to fix it but to no avail. Do you have any insights into this?

Right now it means that if your project uses both squeel and ransack, you can't update ransack to the latest version (because of the polyamorous dependency).

@jonatack
Copy link

jonatack commented Nov 4, 2015

I'm sorry about that! I just saw this comment :(

For what it's worth, I updated Polyamorous, the polymorphic library that Squeel depends on, for Rails 5.0 today and while doing so, found a potential small regression in polymorphic joins that I mistakenly made last April.

Don't hesitate to try Polyamorous master with Squeel (add gem 'polyamorous', github: 'activerecord-hackery/polyamorous' to your Gemfile next to gem 'squeel') and let me know.

I'll see if I can find some time to look at this. It's true that since I work with Ransack but not Squeel, regressions to Squeel could have occurred while working on Polyamorous even though the Polyamorous test suite was passing. Again, my apologies for causing problems like that.

@oneamtu
Copy link

oneamtu commented Nov 5, 2015

No worries @jonatack, the dependencies here are just complex and it can become a huge time sink to try to deal with all of them. I'm happy to see that ransack and the associated projects are making progress and are in good hands, and sometimes dependencies break and that's unfortunate for the moment, but not that important in the long run as long as the project is healthy.

It sounds like bumping to the newest polyamorous might fix the broken build if anyone wants to give it a shot. I'll add it on my TODO, but it's not high on my priority list I'm afraid.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants