This repository was archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
region.code inside shipping_addresses resets to null if error occured during setShippingMethodsOnCart #658
Labels
bug
Something isn't working
Checkout
Component: QuoteGraphQl
Contribution Day
Tickets is good for start on Contribution Day
good first issue
Good for newcomers
Milestone
Comments
The same problem in #657. Look to the actual result section of the mentioned issue |
4 tasks
Still reproducible |
pmclain
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 15, 2019
Added a functional test reproducing pmclain@d4d9fae and am working on a fix. It only reproduces when setting the region via mutation and doesn't reproduce when using a quote address set via test data fixture. I'm assuming the issue is somewhere in how the set address resolver is setting the region. |
pmclain
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 15, 2019
Fixes magento#658 Magento countryIds are uppercase and storing country_id as lowercase in quote address items can cause undesired behavior when the Directory module determines if a region is allowed for a given country. Specifically this check fails when fetching the region code for a quote address: https://github.com/magento/graphql-ce/blob/a2fc3b98bf52ff7741579d16042b9c6376ecebfc/app/code/Magento/Customer/Model/Address/AbstractAddress.php#L400
4 tasks
pmclain
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 15, 2019
naydav
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 20, 2019
…error occured during setShippingMethodsOnCart
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Something isn't working
Checkout
Component: QuoteGraphQl
Contribution Day
Tickets is good for start on Contribution Day
good first issue
Good for newcomers
Uh oh!
There was an error while loading. Please reload this page.
Preconditions (*)
Steps to reproduce (*)
Variables:
Variables:
Variables:
shipping_addresses
. It looks great despite of the fact that we already have "The payment method you requested is not available." even not trying to do this.Pay attention to
"selected_payment_method": null
Get information by using
query { cart ...
or
repeat "Step 4"
Expected result (*)
shipping_addresses[0].region.code
is equal toCA
Actual result (*)
shipping_addresses[0].region.code
is equal tonull
The text was updated successfully, but these errors were encountered: