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

When gettting shop listings variations are empty #107

Open
amit0001 opened this issue Jun 5, 2016 · 2 comments
Open

When gettting shop listings variations are empty #107

amit0001 opened this issue Jun 5, 2016 · 2 comments

Comments

@amit0001
Copy link

amit0001 commented Jun 5, 2016

Hi,

When trying to get the shop listings and looping over them, each listing has the property
has_variations = true,
yet the array listing.variations remains empty
I couldn't find a way to force the fetching of this association, yet other associations like images do get pulled.
Pulling the single listing on its own by Id and requesting the association, the variations are populated:
listing = Etsy::Listing.find(listing.id, {:includes => 'Variations'})
However I don't want to fetch each listing independently, which would be awfully bad performance.

Thanks
Amit

@kytrinyx
Copy link
Collaborator

kytrinyx commented Jun 5, 2016

This is probably a bug in the Listing model.

Have you tried using the DSL described here? https://github.com/kytrinyx/etsy#dsl

@amit0001
Copy link
Author

amit0001 commented Jun 8, 2016

Nope, will probably try when I optimize my workaround. Thanks.

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

2 participants