-
Notifications
You must be signed in to change notification settings - Fork 53
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
Craft 3.1.19 breaks entriesConnection, et al. #248
Comments
I've tried this with |
3.1.19 was a pretty tame release. Just looked through it and not really sure what could be messing with CraftQL. Happy to look into it further if anyone has any ideas. |
Looking through the release notes, my only guess is something to do with the pagination changes, as that is exposed through these element connections. (‘pageInfo’) Hopefully will have some time to look into it this week. |
@brandonkelly hmmm does appear pagination related…the actual thrown exception:
|
@timkelty What is the stack trace? |
nothing helpful - still digging: |
@brandonkelly Looking at the CrafQL code, I suspect its coming from Lines 113 to 129 in e4b5a43
|
Huh… Here’s all of the changes made to that class in 2.0.19: craftcms/cms@3.1.18...3.1.19#diff-d85eed56af7711fc3697dcae8e501448 So maybe this is just because we now have it extend @markhuot Do you recall what the point of this line is? Line 120 in e4b5a43
|
Yeah - seems like the intention is for the limit (default 100) to be on the |
Fixes markhuot#248 and pagination in general
@markhuot Just submitted #249 to fix this, but I’m guessing all that is going to do is start limiting the results where previously they weren’t being limited at all, since |
Thanks @brandonkelly! |
+1 have a solution for this problem? |
I'm interested in the progress of this as well. I'll have to hold some projects back to 3.1.18 until there is a fix as they rely on CraftQL 2 beta. |
Will be reviewing this, this week, to get a release cut. |
Mark, Can you tell us when we can test? My system is broke. |
In the meantime you should be able to get it working (and help test) by switching over to my PR branch. To do that, add my repo to the {
"require": {
"markhuot/craftql": "dev-248-fix",
"...": "..."
},
"repositories": [
{"type": "vcs", "url": "https://github.com/brandonkelly/craftql"}
],
"...": "..."
} Then run |
That's a great contributive move,, @brandonkelly -- and a great method to keep in mind, seeing how it works.... |
Tested the |
When to expect with an update? I have I an external API managed by CraftQL and I don't have an access to make downgrade of the craft version on the server. |
Tested the dev-248-fix too (on Craft 3.1.20.1), got this error:
Trying to query categories and their child entries:
|
Fixes PHP type error (markhuot#248 (comment))
@seamofreality Good catch. By the looks of it, a similar error would occur on the main release as well, pre-Craft 3.1.19. Just fixed it in my PR though. Try running |
@brandonkelly Thanks a dozen for the quick fix, it seems to work now! |
Release 1.3.2 should fix the issue based on the Paignator changes. |
Fixes markhuot#248 and pagination in general
Fixes PHP type error (markhuot#248 (comment))
Seems odd for a patch release, but queries with
entriesConnection
/tagsConnection
/categoriesConnection
started breaking upon upgradingcraftcms/cms
from3.1.18 => 3.1.19
.I locked the version down and confirmed it works if I go back to
3.1.18
.Given query:
on
craftcms/[email protected]
:on
craftcms/[email protected]
:I haven't peeked at the source of the
3.1.19
release yet, but maybe @brandonkelly might be able to shine some light.The text was updated successfully, but these errors were encountered: