diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index f9cfe5e8b..f5ce128d1 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -44,7 +44,7 @@ module: dpl_fees: 0 dpl_filter_paragraphs: 0 dpl_footer: 0 - dpl_graphql: 0 + dpl_graphql2: 0 dpl_instant_loan: 0 dpl_library_agency: 0 dpl_library_token: 0 diff --git a/web/modules/custom/dpl_graphql/dpl_graphql.info.yml b/web/modules/custom/dpl_graphql/dpl_graphql.info.yml index 67ff5385b..8da753892 100644 --- a/web/modules/custom/dpl_graphql/dpl_graphql.info.yml +++ b/web/modules/custom/dpl_graphql/dpl_graphql.info.yml @@ -1,11 +1,7 @@ -name: 'DPL GraphQL' +name: 'DPL GraphQL (UNUSED)' type: module -description: 'Module used for handling graphql functionality.' +description: | + This is an empty module, necessary to get around a temporary issue + in release 2024.48.0. See dpl_update.install for more info.' package: DPL core_version_requirement: ^10 || ^11 -dependencies: - - graphql:graphql - - graphql_compose:graphql_compose - - dpl_unilogin:dpl_unilogin - - simple_oauth:simple_oauth - - dpl_consumers:dpl_consumers diff --git a/web/modules/custom/dpl_graphql/dpl_graphql.services.yml b/web/modules/custom/dpl_graphql/dpl_graphql.services.yml deleted file mode 100644 index 381544670..000000000 --- a/web/modules/custom/dpl_graphql/dpl_graphql.services.yml +++ /dev/null @@ -1,4 +0,0 @@ -services: - dpl_graphql.page_cache_request_policy.disallow_oauth2_token_requests: - class: Drupal\dpl_graphql\PageCache\DplDisallowSimpleOauthRequests - decorates: simple_oauth.page_cache_request_policy.disallow_oauth2_token_requests diff --git a/web/modules/custom/dpl_graphql2/dpl_graphql2.info.yml b/web/modules/custom/dpl_graphql2/dpl_graphql2.info.yml new file mode 100644 index 000000000..67ff5385b --- /dev/null +++ b/web/modules/custom/dpl_graphql2/dpl_graphql2.info.yml @@ -0,0 +1,11 @@ +name: 'DPL GraphQL' +type: module +description: 'Module used for handling graphql functionality.' +package: DPL +core_version_requirement: ^10 || ^11 +dependencies: + - graphql:graphql + - graphql_compose:graphql_compose + - dpl_unilogin:dpl_unilogin + - simple_oauth:simple_oauth + - dpl_consumers:dpl_consumers diff --git a/web/modules/custom/dpl_graphql/dpl_graphql.install b/web/modules/custom/dpl_graphql2/dpl_graphql2.install similarity index 90% rename from web/modules/custom/dpl_graphql/dpl_graphql.install rename to web/modules/custom/dpl_graphql2/dpl_graphql2.install index ca908aff5..da44c057b 100644 --- a/web/modules/custom/dpl_graphql/dpl_graphql.install +++ b/web/modules/custom/dpl_graphql2/dpl_graphql2.install @@ -19,8 +19,8 @@ use Drupal\simple_oauth\Service\KeyGeneratorService; * We want to run the dpl_graphql_update_10001 on both * new and existing sites. */ -function dpl_graphql_install(): string { - $messages[] = dpl_graphql_update_10001(); +function dpl_graphql2_install(): string { + $messages[] = dpl_graphql2_update_10001(); return implode('\r\n', $messages); @@ -29,7 +29,7 @@ function dpl_graphql_install(): string { /** * Generates public and private keys used for the simple_oauth module. */ -function dpl_graphql_update_10001(): string { +function dpl_graphql2_update_10001(): string { $file_system = DrupalTyped::service(FileSystemInterface::class, 'file_system'); $key_generator = DrupalTyped::service(KeyGeneratorService::class, 'simple_oauth.key.generator'); diff --git a/web/modules/custom/dpl_graphql2/dpl_graphql2.services.yml b/web/modules/custom/dpl_graphql2/dpl_graphql2.services.yml new file mode 100644 index 000000000..826b8f79c --- /dev/null +++ b/web/modules/custom/dpl_graphql2/dpl_graphql2.services.yml @@ -0,0 +1,4 @@ +services: + dpl_graphql2.page_cache_request_policy.disallow_oauth2_token_requests: + class: Drupal\dpl_graphql2\PageCache\DplDisallowSimpleOauthRequests + decorates: simple_oauth.page_cache_request_policy.disallow_oauth2_token_requests diff --git a/web/modules/custom/dpl_graphql/src/PageCache/DplDisallowSimpleOauthRequests.php b/web/modules/custom/dpl_graphql2/src/PageCache/DplDisallowSimpleOauthRequests.php similarity index 96% rename from web/modules/custom/dpl_graphql/src/PageCache/DplDisallowSimpleOauthRequests.php rename to web/modules/custom/dpl_graphql2/src/PageCache/DplDisallowSimpleOauthRequests.php index 580cae9ac..44512d945 100644 --- a/web/modules/custom/dpl_graphql/src/PageCache/DplDisallowSimpleOauthRequests.php +++ b/web/modules/custom/dpl_graphql2/src/PageCache/DplDisallowSimpleOauthRequests.php @@ -1,6 +1,6 @@