Skip to content

Commit e3d39cb

Browse files
committed
fix: update apply patches documentation
1 parent cfcd026 commit e3d39cb

File tree

2 files changed

+16
-30
lines changed

2 files changed

+16
-30
lines changed

www/content/tutorials/graphql/apply-patches.mdx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,35 @@ weight: 30
55
group: Quick Start (GraphQL)
66
---
77

8+
At the time of this writing, a patch is required in order to use multilingual features such as translation.
9+
810
<Callout>
911

10-
In a future release, these patches will NOT be required for using Next.js and GraphQL.
12+
**Note:** If you're not using multilingual features such as translation, you can skip this step.
1113

1214
</Callout>
1315

14-
At the time of this writing, there are two patches we need to wire everything together.
15-
1616
1. Open your Drupal `composer.json` file.
17-
2. Add the following patches under `"extra"`.
17+
2. Add the following patch under `"extra"`.
1818

1919
```json title=composer.json
2020
"extra": {
2121
// highlight-start
2222
"patches": {
23-
"drupal/subrequests": {
24-
"#3049395-47 - Page Cache causes different subrequests to return the same responses": "https://www.drupal.org/files/issues/2022-12-06/subrequests-3049395-chnage-request-type-47.patch"
25-
},
2623
"drupal/decoupled_router": {
27-
"#3111456-59 - Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2022-12-01/decouple_router-3111456-resolve-language-issue-58--get-translation.patch"
24+
"Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2024-10-22/decoupled_router-3111456-resolve-langcode-issue-78--external-redirects.patch"
2825
}
2926
},
3027
// highlight-end
3128
}
3229
```
3330

34-
<Callout>
35-
36-
**Note:** If you're not using multilingual features such as translation, you can skip the second patch.
37-
38-
</Callout>
39-
4031
3. Run the following command:
4132

4233
```sh
4334
composer require cweagans/composer-patches
4435
```
4536

46-
You can read more about the patches here:
37+
You can read more about the patch here:
4738

48-
1. https://www.drupal.org/project/subrequests/issues/3049395
4939
2. https://www.drupal.org/project/decoupled_router/issues/3111456

www/content/tutorials/quick-start/apply-patches.mdx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,37 @@ weight: 30
55
group: Quick Start
66
---
77

8-
At the time of this writing, there are two patches we need to wire everything together.
8+
At the time of this writing, a patch is required in order to use multilingual features such as translation.
9+
10+
<Callout>
11+
12+
**Note:** If you're not using multilingual features such as translation, you can skip this step.
13+
14+
</Callout>
915

1016
1. Open your Drupal `composer.json` file.
11-
2. Add the following patches under `"extra"`.
17+
2. Add the following patch under `"extra"`.
1218

1319
TODO - validate that these patches are necessary and correct.
1420

1521
```json title=composer.json
1622
"extra": {
1723
// highlight-start
1824
"patches": {
19-
"drupal/subrequests": {
20-
"Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch"
21-
},
2225
"drupal/decoupled_router": {
23-
"Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2022-11-30/decouple_router-3111456-resolve-language-issue-58.patch"
26+
"Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2024-10-22/decoupled_router-3111456-resolve-langcode-issue-78--external-redirects.patch"
2427
}
2528
},
2629
// highlight-end
2730
}
2831
```
2932

30-
<Callout>
31-
32-
**Note:** If you're not using multilingual features such as translation, you can skip the second patch.
33-
34-
</Callout>
35-
3633
3. Run the following command:
3734

3835
```sh
3936
composer require cweagans/composer-patches
4037
```
4138

42-
You can read more about the patches here:
39+
You can read more about the patch here:
4340

44-
1. https://www.drupal.org/project/subrequests/issues/3049395
4541
2. https://www.drupal.org/project/decoupled_router/issues/3111456

0 commit comments

Comments
 (0)