You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When retrieving all Variant records using pagination, the 'product_id' attribute is only returned for the first page of variants.
Expected behavior
I'm expecting 'product_id' to be present when calling 'shopify.Variant.find()' as well as after '.has_next_page()' has been called.
Actual behavior
Calling 'has_next_page()' seems to exclude 'product_id'. If attempting to access 'product_id' after 'has_next_page()' has been called, the following error is returned:
'File "[...]\Python\Python311\Lib\site-packages\pyactiveresource\activeresource.py", line ###, in getattr
raise AttributeError(name)
AttributeError: product_id'
Steps to reproduce the problem
variants = shopify.Variant.find()
for variant in variants:
print(variant.product_id)
while variants.has_next_page():
variants = variants.next_page()
Run the same code as 2 again
Checklist
I have described this issue in a way that is actionable (if possible)
The text was updated successfully, but these errors were encountered:
Issue summary
When retrieving all Variant records using pagination, the 'product_id' attribute is only returned for the first page of variants.
Expected behavior
I'm expecting 'product_id' to be present when calling 'shopify.Variant.find()' as well as after '.has_next_page()' has been called.
Actual behavior
Calling 'has_next_page()' seems to exclude 'product_id'. If attempting to access 'product_id' after 'has_next_page()' has been called, the following error is returned:
'File "[...]\Python\Python311\Lib\site-packages\pyactiveresource\activeresource.py", line ###, in getattr
raise AttributeError(name)
AttributeError: product_id'
Steps to reproduce the problem
print(variant.product_id)
variants = variants.next_page()
Run the same code as 2 again
Checklist
The text was updated successfully, but these errors were encountered: