-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphql 3.x-dev compatibility with upcoming CWP 2.8 #376
Graphql 3.x-dev compatibility with upcoming CWP 2.8 #376
Comments
I'm not sure if this is the greatest solution, though it does stop asset-admin from complaining about graphql types myproject.yml
Trying to use My understanding is that Page will usually inherit BasePage on CWP projects, so this seems near enough This config is really just to get graphql to not complain. I don't think there are any real world use case where graphql is used to read BasePage's specifically We'd add this config to the cwp/cwp module where BasePage.php resides |
Maybe this is an OK fix, but I would rather try to understand what change in-between CWP 2.7 an CWP 2.8 that this error propped up. |
I don't think anything changed in CWP. It looks like the change happened in graphql. I've provided a summary of my understanding of the graphql3 changes here. I've linked to a commit in the description of this issue where I think things changed, though I don't exactly what in there caused the CWP incompatibility. |
OK, have found the issue. It's the forward compat commit as @emteknetnz identified. The issue is that, to maintain compliance with graphql 4, you can now do Fix is pretty straightforward. We just need to persist the result of I reckon in |
Great thanks for being responsive getting this fixed Aaron, I'll look to test and merge these shortly |
@unclecheese - Worked fine when running kitchen sink 2.x-dev, however I got this when running kitchen sink 2.7.1 with a composer file as below. Scenario where this becomes relevant is non-recipe cwp projects with a graphql:^3 requirement (e.g. asset-admin 1.7.1 requites graphql:^3) As is, this kind of implies that we still need the
When navigating to the file manager: |
@unclecheese Just chatted with Max, we've decided we don't need to fix this for 2.7.1, instead we'll still use the So seems like there's nothing further you need to do here. Cheers for your help! |
Just to confirm that we do not need the yml solution first proposed in a comment above. Aaron's fix is a better solution so we'll go with that instead. |
Installing kitchen-sink 2.x-dev with graphql 3.x-dev
File manager:
Installing kitchen-sink 2.7.1 and manually using graphql 3.x-dev instead of 3.4.1
Some debugging notes:
Possibly this commit? 25f654c#diff-b60efc42f855dbb4c758a6216ded97c98c345b5606e1820014afc5e174ebf473
The text was updated successfully, but these errors were encountered: