-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Area: APIsIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: doneProject: GraphQLReported on 2.4.2Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Preconditions (*)
- Magento 2.4.2+
Steps to reproduce (*)
- Create a cart
- Add 2 products to the cart with at least 4 quantities each.
- Set the quantity of added products below the quantity in the cart.
- Retrieve cart through graphql
{
cart(cart_id: "RQg4YPcQX1htp47j6GMpTKRshfY6SVm6") {
items {
id
product {
name
sku
stock_status
}
quantity
}
}
}
Expected result (*)
- A error message which tells me which item in the cart causes the error. So that we can give correct feedback to the Customer.
- A cart with valid values for items.
- An error message for each issue with the cart.
Actual result (*)
{
"errors": [
{
"message": "The requested qty is not available",
"extensions": {
"category": "graphql-input"
},
"locations": [
{
"line": 7,
"column": 5
}
],
"path": [
"cart",
"items",
0
]
}
],
"data": {
"cart": {
"items": [
null,
{
"id": "32",
"product": {
"name": "Strive Shoulder Pack",
"sku": "24-MB04",
"stock_status": "IN_STOCK"
},
"quantity": 3
},
{
"id": "33",
"product": {
"name": "Joust Duffle Bag",
"sku": "24-MB01",
"stock_status": "IN_STOCK"
},
"quantity": 4
}
]
}
}
}
- In the items node there is a null entry, this only shows up when there is an error. In default Venia this breaks the cart page.
- I assume the path node in the error node should reference the item it's affecting. It currently points to the above null value.
- Only the first error of the cart shows up.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
tonytoth and barnard-b
Metadata
Metadata
Assignees
Labels
Area: APIsIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: doneProject: GraphQLReported on 2.4.2Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Type
Projects
Status
Done