@graphcommerce/docs 7.1.0-canary.28 → 7.1.0-canary.30
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 +8 -0
- package/magento/patches/cart-error-category.patch +46 -0
- package/magento/readme.md +19 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.1.0-canary.30
|
|
4
|
+
|
|
5
|
+
## 7.1.0-canary.29
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2104](https://github.com/graphcommerce-org/graphcommerce/pull/2104) [`d0f1f5a2d`](https://github.com/graphcommerce-org/graphcommerce/commit/d0f1f5a2d1380d1c3931e23218924d5e8b1fc60d) - Document workaround/patch for broken cart error handling with Magento 2.4.6. ([@hnsr](https://github.com/hnsr))
|
|
10
|
+
|
|
3
11
|
## 7.1.0-canary.28
|
|
4
12
|
|
|
5
13
|
## 7.1.0-canary.27
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Fix inactive/non-existent cart handling by re-adding GraphQL error category extension
|
|
2
|
+
|
|
3
|
+
@package magento/framework
|
|
4
|
+
|
|
5
|
+
Index: GraphQl/Exception/GraphQlNoSuchEntityException.php
|
|
6
|
+
IDEA additional info:
|
|
7
|
+
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
|
8
|
+
<+>UTF-8
|
|
9
|
+
===================================================================
|
|
10
|
+
diff --git a/GraphQl/Exception/GraphQlNoSuchEntityException.php b/GraphQl/Exception/GraphQlNoSuchEntityException.php
|
|
11
|
+
--- a/GraphQl/Exception/GraphQlNoSuchEntityException.php
|
|
12
|
+
+++ b/GraphQl/Exception/GraphQlNoSuchEntityException.php (date 1698390008711)
|
|
13
|
+
@@ -7,6 +7,8 @@
|
|
14
|
+
|
|
15
|
+
namespace Magento\Framework\GraphQl\Exception;
|
|
16
|
+
|
|
17
|
+
+use GraphQL\Error\ClientAware;
|
|
18
|
+
+use GraphQL\Error\ProvidesExtensions;
|
|
19
|
+
use Magento\Framework\Exception\NoSuchEntityException;
|
|
20
|
+
use Magento\Framework\Phrase;
|
|
21
|
+
|
|
22
|
+
@@ -15,7 +17,7 @@
|
|
23
|
+
*
|
|
24
|
+
* @api
|
|
25
|
+
*/
|
|
26
|
+
-class GraphQlNoSuchEntityException extends NoSuchEntityException implements \GraphQL\Error\ClientAware
|
|
27
|
+
+class GraphQlNoSuchEntityException extends NoSuchEntityException implements ClientAware, ProvidesExtensions
|
|
28
|
+
{
|
|
29
|
+
const EXCEPTION_CATEGORY = 'graphql-no-such-entity';
|
|
30
|
+
|
|
31
|
+
@@ -53,4 +55,15 @@
|
|
32
|
+
{
|
|
33
|
+
return self::EXCEPTION_CATEGORY;
|
|
34
|
+
}
|
|
35
|
+
+
|
|
36
|
+
+ /**
|
|
37
|
+
+ * Get error category
|
|
38
|
+
+ *
|
|
39
|
+
+ * @return array
|
|
40
|
+
+ */
|
|
41
|
+
+ public function getExtensions(): array
|
|
42
|
+
+ {
|
|
43
|
+
+ $exceptionCategory['category'] = $this->getCategory();
|
|
44
|
+
+ return $exceptionCategory;
|
|
45
|
+
+ }
|
|
46
|
+
}
|
package/magento/readme.md
CHANGED
|
@@ -92,3 +92,22 @@ will always be prompted to create a new account.
|
|
|
92
92
|
|
|
93
93
|
- [Full feature list](../feature-list.md)
|
|
94
94
|
- [SEO Migration](./seo-migration.md)
|
|
95
|
+
|
|
96
|
+
## Known issues
|
|
97
|
+
|
|
98
|
+
An overview of bugs and limitations you may run into with Magento's GraphQL API:
|
|
99
|
+
|
|
100
|
+
### Cart-related mutations result `Can not find cart with ID` or `Cart isn't active` errors
|
|
101
|
+
|
|
102
|
+
This is caused by a regression in Magento 2.4.6, which results in some GraphQL
|
|
103
|
+
errors no longer getting a category extension string (such as
|
|
104
|
+
`graphql-no-such-entity`). Normally, these errors are handling by automatically
|
|
105
|
+
creating a new cart, but without the proper error category this error-handling
|
|
106
|
+
logic is nog triggered.
|
|
107
|
+
|
|
108
|
+
As a workaround, you can apply
|
|
109
|
+
[cart-error-category.patch](./patches/cart-error-category.patch). This
|
|
110
|
+
regression is fixed as of Magento 2.4.7-beta2.
|
|
111
|
+
|
|
112
|
+
See also
|
|
113
|
+
https://github.com/magento/magento2/commit/49cbe774020d3dfa6ee2b8702376a947801c9971
|
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": "7.1.0-canary.
|
|
5
|
+
"version": "7.1.0-canary.30",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "7.1.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "7.1.0-canary.30"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|