@graphcommerce/docs 8.0.1-canary.0 → 8.0.1-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/magento/known-issues.md +67 -1
- package/magento/patches/fix-bundle-selection-visibility-catalog.patch +17 -0
- package/magento/patches/fix-bundle-selection-visibility-related.patch +19 -0
- package/magento/patches/fix-cart-user-error-reporting.patch +21 -0
- package/magento/patches/fix-custom-option-processing.patch +15 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.1-canary.2
|
|
4
|
+
|
|
5
|
+
## 8.0.1-canary.1
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2186](https://github.com/graphcommerce-org/graphcommerce/pull/2186) [`09eb25c`](https://github.com/graphcommerce-org/graphcommerce/commit/09eb25c9892bf4cf57519024e31c2ae4cf2f7a0b) - Update Magento known issues
|
|
10
|
+
([@hnsr](https://github.com/hnsr))
|
|
11
|
+
|
|
3
12
|
## 8.0.1-canary.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/magento/known-issues.md
CHANGED
|
@@ -10,7 +10,7 @@ An overview of bugs and limitations you may run into with Magento's GraphQL API:
|
|
|
10
10
|
|
|
11
11
|
Affected Magento versions:
|
|
12
12
|
|
|
13
|
-
- `2.4.7`:
|
|
13
|
+
- `2.4.7`: fixed after 2.4.7-beta1
|
|
14
14
|
- `2.4.6`: all versions
|
|
15
15
|
|
|
16
16
|
This is caused by a regression which results in some GraphQL errors no longer
|
|
@@ -24,6 +24,72 @@ As a workaround, you can apply
|
|
|
24
24
|
See also
|
|
25
25
|
https://github.com/magento/magento2/commit/49cbe774020d3dfa6ee2b8702376a947801c9971
|
|
26
26
|
|
|
27
|
+
## After adding a product to cart with custom options, options are not saved and/or retrieving the cart results in an error
|
|
28
|
+
|
|
29
|
+
Affected Magento versions:
|
|
30
|
+
|
|
31
|
+
- `2.4.7`: unknown, see below
|
|
32
|
+
- `2.4.6`: all versions
|
|
33
|
+
|
|
34
|
+
When adding a product to cart, custom options are not processed and saved
|
|
35
|
+
correctly, and can result in an error on the `Cart.items.errors.message` field
|
|
36
|
+
when subsequently retrieving the cart, if the product had required custom
|
|
37
|
+
options.
|
|
38
|
+
|
|
39
|
+
The observed error happens because no value is given for the non-nullable
|
|
40
|
+
`message` field, however the original error occurs due a required custom option
|
|
41
|
+
not being present on the cart item, as the custom options we not saved correctly
|
|
42
|
+
during the previous `addProductsToCart` call.
|
|
43
|
+
|
|
44
|
+
Note that although the relevant PR for this fix was merged, the fix seems to
|
|
45
|
+
have gotten reverted and is not present in 2.4-develop at the time of writing,
|
|
46
|
+
and may not be included in the final release of 2.4.7.
|
|
47
|
+
|
|
48
|
+
As a workaround, you can apply
|
|
49
|
+
[fix-custom-option-processing.patch](./patches/fix-custom-option-processing.patch).
|
|
50
|
+
|
|
51
|
+
See also:
|
|
52
|
+
|
|
53
|
+
- Original PR: https://github.com/magento/magento2/issues/37599
|
|
54
|
+
- PR regarding revert of fix: https://github.com/magento/magento2/issues/37928
|
|
55
|
+
|
|
56
|
+
## Adding products to cart with pre-existing items that are out of stock always results in an error
|
|
57
|
+
|
|
58
|
+
Affected Magento versions:
|
|
59
|
+
|
|
60
|
+
- `2.4.7`: fixed after 2.4.7-beta2
|
|
61
|
+
- `2.4.6`: all versions
|
|
62
|
+
|
|
63
|
+
This is due to an inconsistency between errors that are reported through the
|
|
64
|
+
`AddProductsToCartOutput.user_errors` field and those on the cart items, which
|
|
65
|
+
make it impossible to differentiate between errors cause by the product that was
|
|
66
|
+
being added, and those from pre-existing cart items.
|
|
67
|
+
|
|
68
|
+
As a workaround you can apply
|
|
69
|
+
[fix-cart-user-error-reporting.patch](./patches/fix-cart-user-error-reporting.patch).
|
|
70
|
+
|
|
71
|
+
See also:
|
|
72
|
+
|
|
73
|
+
- Issue: https://github.com/magento/magento2/issues/37908
|
|
74
|
+
- PR with fix: https://github.com/magento/magento2/pull/38014/files
|
|
75
|
+
|
|
76
|
+
## Bundle selection products are not shown due to their visibility setting
|
|
77
|
+
|
|
78
|
+
Affected Magento versions:
|
|
79
|
+
|
|
80
|
+
- `2.4.6`: all versions
|
|
81
|
+
|
|
82
|
+
The `BundleItemOption.product` GraphQL field is returned as `null` if the
|
|
83
|
+
product visibility is set to not be visible in the catalog (which you may not
|
|
84
|
+
want).
|
|
85
|
+
|
|
86
|
+
As a workaround you can apply the following patches:
|
|
87
|
+
|
|
88
|
+
- [fix-bundle-selection-visibility-catalog.patch](./patches/fix-bundle-selection-visibility-catalog.patch)
|
|
89
|
+
- [fix-bundle-selection-visibility-related.patch](./patches/fix-bundle-selection-visibility-related.patch)
|
|
90
|
+
|
|
91
|
+
See also https://github.com/magento/magento2/issues/37774
|
|
92
|
+
|
|
27
93
|
## Next steps
|
|
28
94
|
|
|
29
95
|
- [Overview](./readme)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Fix bundle product children not showing up on some products, see https://github.com/magento/magento2/issues/37774
|
|
2
|
+
|
|
3
|
+
@package magento/module-catalog-graph-ql
|
|
4
|
+
|
|
5
|
+
diff --git a/Model/Resolver/Products/DataProvider/Product.php b/Model/Resolver/Products/DataProvider/Product.php
|
|
6
|
+
index 30be41072242b..3e955ae303453 100644
|
|
7
|
+
--- a/Model/Resolver/Products/DataProvider/Product.php
|
|
8
|
+
+++ b/Model/Resolver/Products/DataProvider/Product.php
|
|
9
|
+
@@ -89,7 +89,7 @@ public function getList(
|
|
10
|
+
|
|
11
|
+
$this->collectionPreProcessor->process($collection, $searchCriteria, $attributes, $context);
|
|
12
|
+
|
|
13
|
+
- if ($isChildSearch) {
|
|
14
|
+
+ if (!$isChildSearch) {
|
|
15
|
+
$visibilityIds = $isSearch
|
|
16
|
+
? $this->visibility->getVisibleInSearchIds()
|
|
17
|
+
: $this->visibility->getVisibleInCatalogIds();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Fix bundle product children not showing up on some products, see https://github.com/magento/magento2/issues/37774
|
|
2
|
+
|
|
3
|
+
@package magento/module-related-product-graph-ql
|
|
4
|
+
|
|
5
|
+
diff --git a/Model/Resolver/Batch/AbstractLikedProducts.php b/Model/Resolver/Batch/AbstractLikedProducts.php
|
|
6
|
+
index fac7b23d408e3..f35af6f4885d2 100644
|
|
7
|
+
--- a/Model/Resolver/Batch/AbstractLikedProducts.php
|
|
8
|
+
+++ b/Model/Resolver/Batch/AbstractLikedProducts.php
|
|
9
|
+
@@ -94,9 +94,7 @@ private function findRelations(array $products, array $loadAttributes, int $link
|
|
10
|
+
$this->searchCriteriaBuilder->addFilter('entity_id', $relatedIds, 'in');
|
|
11
|
+
$relatedSearchResult = $this->productDataProvider->getList(
|
|
12
|
+
$this->searchCriteriaBuilder->create(),
|
|
13
|
+
- $loadAttributes,
|
|
14
|
+
- false,
|
|
15
|
+
- true
|
|
16
|
+
+ $loadAttributes
|
|
17
|
+
);
|
|
18
|
+
//Filling related products map.
|
|
19
|
+
/** @var \Magento\Catalog\Api\Data\ProductInterface[] $relatedProducts */
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Fix add to cart `user_error` field containing inconsistent errors. See https://github.com/magento/magento2/pull/38014
|
|
2
|
+
|
|
3
|
+
@package magento/module-quote
|
|
4
|
+
|
|
5
|
+
--- a/Model/Cart/AddProductsToCart.php
|
|
6
|
+
+++ b/Model/Cart/AddProductsToCart.php (date 1696845624268)
|
|
7
|
+
@@ -80,14 +80,6 @@
|
|
8
|
+
$cartId = $this->maskedQuoteIdToQuoteId->execute($maskedCartId);
|
|
9
|
+
$cart = $this->cartRepository->get($cartId);
|
|
10
|
+
$allErrors = [];
|
|
11
|
+
- if ($cart->getData('has_error')) {
|
|
12
|
+
- $errors = $cart->getErrors();
|
|
13
|
+
-
|
|
14
|
+
- /** @var MessageInterface $error */
|
|
15
|
+
- foreach ($errors as $error) {
|
|
16
|
+
- $allErrors[] = $this->error->create($error->getText());
|
|
17
|
+
- }
|
|
18
|
+
- }
|
|
19
|
+
|
|
20
|
+
$failedCartItems = $this->addItemsToCart($cart, $cartItems);
|
|
21
|
+
$saveCart = empty($failedCartItems);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Fix custom options not saving on addProductsToCart. See https://github.com/magento/magento2/issues/37599
|
|
2
|
+
|
|
3
|
+
@package magento/module-quote
|
|
4
|
+
|
|
5
|
+
--- a/Model/Quote.php
|
|
6
|
+
+++ b/Model/Quote.php
|
|
7
|
+
@@ -1647,6 +1647,8 @@ public function addProduct(
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
+ $productId = $product->getId();
|
|
12
|
+
+ $product = clone $this->productRepository->getById($productId, false, $this->getStore()->getId());
|
|
13
|
+
$cartCandidates = $product->getTypeInstance()->prepareForCartAdvanced($request, $product, $processMode);
|
|
14
|
+
|
|
15
|
+
/**
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "8.0.1-canary.
|
|
5
|
+
"version": "8.0.1-canary.2",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^8.0.1-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^8.0.1-canary.2"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|