Skip to content

Commit dea5adb

Browse files
committed
B2B-2931: [Graphql Resolver Cache] improve reliability and developer awareness on cache keyspace
1 parent cd2509e commit dea5adb

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/GraphQlResolverCache/Model/Resolver/Result/CacheKey/Calculator
  • dev/tests/integration/testsuite/Magento/GraphQlResolverCache/Model/Resolver/Result/Cache/KeyCalculator

2 files changed

+2
-2
lines changed

app/code/Magento/GraphQlResolverCache/Model/Resolver/Result/CacheKey/Calculator/Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private function initForResolver(ResolverInterface $resolver): void
5959
$customKeyFactorProviders = $this->getFactorProvidersForResolver($resolver);
6060
if ($customKeyFactorProviders === null) {
6161
throw new \InvalidArgumentException(
62-
"Key factors are not determined for {$resolverClass} or its parents." .
62+
"GraphQL Resolver Cache key factors are not determined for {$resolverClass} or its parents." .
6363
"An empty array of factors is expected for the resolvers with no factors involved."
6464
);
6565
} else {

dev/tests/integration/testsuite/Magento/GraphQlResolverCache/Model/Resolver/Result/Cache/KeyCalculator/ProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testProviderNotConfigured()
5757
$this->expectException(\InvalidArgumentException::class);
5858
$resolverClass = get_class($resolver);
5959
$this->expectExceptionMessage(
60-
"Key factors are not determined for {$resolverClass} or its parents."
60+
"GraphQL Resolver Cache key factors are not determined for {$resolverClass} or its parents."
6161
. "An empty array of factors is expected for the resolvers with no factors involved."
6262
);
6363
$this->provider->getKeyCalculatorForResolver($resolver);

0 commit comments

Comments
 (0)