Skip to content

Commit 3e193d8

Browse files
committed
B2B-2931: [Graphql Resolver Cache] improve reliability and developer awareness on cache keyspace
- fixed static tests failures
1 parent a0498ff commit 3e193d8

File tree

2 files changed

+2
-1
lines changed
  • app/code/Magento/CatalogGraphQl/etc/graphql
  • dev/tests/integration/testsuite/Magento/GraphQlResolverCache/Model/Resolver/Result/Cache/KeyCalculator

2 files changed

+2
-1
lines changed

app/code/Magento/CatalogGraphQl/etc/graphql/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
</type>
276276
<type name="Magento\GraphQlResolverCache\Model\Resolver\Result\CacheKey\Calculator\Provider">
277277
<arguments>
278-
<argument name="customFactorProviders" xsi:type="array">
278+
<argument name="factorProviders" xsi:type="array">
279279
<item name="Magento\CatalogGraphQl\Model\Resolver\Product\MediaGallery" xsi:type="array">
280280
<item name="parent_entity_id" xsi:type="string">Magento\CatalogGraphQl\Model\Resolver\CacheKey\FactorProvider\ParentProductEntityId</item>
281281
<item name="store" xsi:type="string">Magento\StoreGraphQl\Model\Resolver\CacheKey\FactorProvider\Store</item>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/**
2323
* Test for Graphql Resolver-level cache key provider.
2424
* @magentoAppArea graphql
25+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2526
*/
2627
class ProviderTest extends \PHPUnit\Framework\TestCase
2728
{

0 commit comments

Comments
 (0)