From e3d39cbbea251e05e52037e2b60a0074e729d53c Mon Sep 17 00:00:00 2001 From: Brian Perry Date: Tue, 5 Nov 2024 13:20:02 -0600 Subject: [PATCH] fix: update apply patches documentation --- .../tutorials/graphql/apply-patches.mdx | 22 +++++------------ .../tutorials/quick-start/apply-patches.mdx | 24 ++++++++----------- 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/www/content/tutorials/graphql/apply-patches.mdx b/www/content/tutorials/graphql/apply-patches.mdx index 43ad17a81..e75f0d00f 100644 --- a/www/content/tutorials/graphql/apply-patches.mdx +++ b/www/content/tutorials/graphql/apply-patches.mdx @@ -5,45 +5,35 @@ weight: 30 group: Quick Start (GraphQL) --- +At the time of this writing, a patch is required in order to use multilingual features such as translation. + -In a future release, these patches will NOT be required for using Next.js and GraphQL. +**Note:** If you're not using multilingual features such as translation, you can skip this step. -At the time of this writing, there are two patches we need to wire everything together. - 1. Open your Drupal `composer.json` file. -2. Add the following patches under `"extra"`. +2. Add the following patch under `"extra"`. ```json title=composer.json "extra": { // highlight-start "patches": { - "drupal/subrequests": { - "#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" - }, "drupal/decoupled_router": { - "#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" + "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" } }, // highlight-end } ``` - - -**Note:** If you're not using multilingual features such as translation, you can skip the second patch. - - - 3. Run the following command: ```sh composer require cweagans/composer-patches ``` -You can read more about the patches here: +You can read more about the patch here: -1. https://www.drupal.org/project/subrequests/issues/3049395 2. https://www.drupal.org/project/decoupled_router/issues/3111456 diff --git a/www/content/tutorials/quick-start/apply-patches.mdx b/www/content/tutorials/quick-start/apply-patches.mdx index 8e37ba90c..8b836c1eb 100644 --- a/www/content/tutorials/quick-start/apply-patches.mdx +++ b/www/content/tutorials/quick-start/apply-patches.mdx @@ -5,10 +5,16 @@ weight: 30 group: Quick Start --- -At the time of this writing, there are two patches we need to wire everything together. +At the time of this writing, a patch is required in order to use multilingual features such as translation. + + + +**Note:** If you're not using multilingual features such as translation, you can skip this step. + + 1. Open your Drupal `composer.json` file. -2. Add the following patches under `"extra"`. +2. Add the following patch under `"extra"`. TODO - validate that these patches are necessary and correct. @@ -16,30 +22,20 @@ TODO - validate that these patches are necessary and correct. "extra": { // highlight-start "patches": { - "drupal/subrequests": { - "Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch" - }, "drupal/decoupled_router": { - "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" + "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" } }, // highlight-end } ``` - - -**Note:** If you're not using multilingual features such as translation, you can skip the second patch. - - - 3. Run the following command: ```sh composer require cweagans/composer-patches ``` -You can read more about the patches here: +You can read more about the patch here: -1. https://www.drupal.org/project/subrequests/issues/3049395 2. https://www.drupal.org/project/decoupled_router/issues/3111456