GithubHelp home page GithubHelp logo

graycoreio / magento2-graphql-introspection-cache Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 1.0 67 KB

This package caches introspection results from the GraphQl native `__types` query.

License: MIT License

PHP 100.00%
caching graphql mage-os magento2 performance

magento2-graphql-introspection-cache's People

Contributors

damienwebdev avatar danslo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

magento2-graphql-introspection-cache's Issues

"Deprecated Functionality: Use of \"parent\" in callables is deprecated in /app/vendor/graycore/magento2-graphql-introspection-cache/Executor/ReferenceExecutor.php on line 22",

"Deprecated Functionality: Use of "parent" in callables is deprecated in /app/vendor/graycore/magento2-graphql-introspection-cache/Executor/ReferenceExecutor.php on line 22",

@damienwebdev Is this a weird error to be getting or an expected one? The only place I'm seeing it so far is my local environment, but it definitely sounds like an error which we would expect to see everywhere.

Integration test failures

Installed this into a 2.4.5 Community site and got a bunch of integration test failures coming from core and other GraphQl modules.

1) Magento\GraphQlCache\Controller\Catalog\CategoriesWithProductsCacheTest::testRequestCacheTagsForCategoryWithProducts
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 'cat_c'
-    1 => 'cat_c_333'
-    2 => 'cat_p'
-    3 => 'cat_p_333'
-    4 => 'FPC'
+    0 => 'FPC'
 )

I do not think removal of cache tags would be expected for those queries.

There are few more failures coming from the tests for Magento_GraphQlCache.

And also a few more along the lines of the below:

1) Magento\GraphQl\GraphQlIntrospectionTest::testIntrospectionQuery
PHPUnit\Framework\Exception: Warning: Undefined array key "__schema" in /__w/store.***_m2/store.***_m2/dev/tests/integration/testsuite/Magento/GraphQl/GraphQlIntrospectionTest.php:82.

Trying to invoke protected method GraphQL\\Executor\\ReferenceExecutor::buildExecutionContext() from scope ReflectionMethod

Hey

Installed the extension and ran a build on my PWA Studio project and received the following error:
Trying to invoke protected method GraphQL\\Executor\\ReferenceExecutor::buildExecutionContext() from scope ReflectionMethod

Issue happens in \Graycore\GraphQlIntrospectionCache\Executor\ReferenceExecutor::create

$reflectionMethod = new ReflectionMethod(\GraphQL\Executor\ReferenceExecutor::class, 'buildExecutionContext');
if ($reflectionMethod->isPrivate()) {
    $reflectionMethod->setAccessible(true);
}

I am on Magento 2.4.4-p1 and webonyx/graphql-php is at v14.11.6, and in this version buildExecutionContext is a protected method. Can you simply just add a check for isProtected here as well?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.