-
Notifications
You must be signed in to change notification settings - Fork 473
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
CustomerAddress.all doesn't return results #970
Comments
I am pretty confident this happens because Edit: I have confirmed this is the root cause of the issue locally. |
Seeng exactly the same issue on both 10.0.3 and 10.1.0 |
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days. |
We are closing this issue because it has been inactive for a few months. If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines Thank you! |
This is still unresolved. |
And so what's the resolution here? I'm having this issue with |
Previously, when fetching `all` on CustomerAddress it would return an empty array. Two issues (Shopify#970, Shopify#1018) were opened outlining the problem. This PR adds `json_response_body_name` to the CustomerAddress class to properly fetch the results from the JSON. Two assertions have been added to the the tests as well.
Previously, when fetching `all` on CustomerAddress it would return an empty array. Two issues (Shopify#970, Shopify#1018) were opened outlining the problem. Initial attempt was to override `json_response_body_name` which worked for fetching arrays of results. It doesn't work for fetching individual results though. I wound up overriding `create_instances_from_response` for CustomerAddress. It isn't ideal but it does seem to behave correctly. Assertions have been added to the the tests as well.
Previously, when fetching `all` on CustomerAddress it would return an empty array. Two issues (Shopify#970, Shopify#1018) were opened outlining the problem. Initial attempt was to override `json_response_body_name` which worked for fetching arrays of results. It doesn't work for fetching individual results though. I wound up overriding `create_instances_from_response` for CustomerAddress. It isn't ideal but it does seem to behave correctly. Assertions have been added to the the tests as well.
Issue summary
CustomerAddress.all
doesn't return results, using Rest API with a private app.Expected behavior
Returns list with customer's addresses.
Actual behavior
Returns empty list for a customer with an address.
Steps to reproduce the problem
ShopifyAPI::CustomerAddress.all(customer_id: x)
and receive[]
ShopifyAPI::Customer.find(id: x).addresses
and confirm the customer actually has an address.Specifications
shopify_api
version: 10.1.0The text was updated successfully, but these errors were encountered: