-
Notifications
You must be signed in to change notification settings - Fork 101
update to webonyx/graphql-php:^14.9.0 #327
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
update to webonyx/graphql-php:^14.9.0 #327
Conversation
Hey @xyng, Webonyx has changed signature for some of the class constructors and methods, that's why the unit tests are failing. For example I've prepared the update with the latest changes from |
Hey @devmaslov, sorry for the delay before responding! You're very welcome in pushing these changes onto this branch :-) |
Codecov Report
@@ Coverage Diff @@
## master #327 +/- ##
============================================
- Coverage 98.30% 97.12% -1.18%
+ Complexity 1778 1578 -200
============================================
Files 147 144 -3
Lines 4125 4072 -53
============================================
- Hits 4055 3955 -100
- Misses 70 117 +47
Continue to review full report at Codecov.
|
Thanks @xyng Alright, tests are passing through and everything seems to work fine 😄 |
@devmaslov the plan is to release 4.2 with #269, as it doesn't have any breaking changes. Then, target a 5.0 release for this. Could you email me so we can have a thread for getting on the same page with these things among others (email on profile). |
Is there a plan for merging this, I would be eager to help the migration in any way. |
@aszenz @moufmouf has been sort of MIA. He's busy with a new project that's consuming most of his time and really hasn't been able to be attentive here. I don't think there is really much of a migration required for a new release. However, I was waiting on details regarding release requirements. I'm not familiar with how the docs are handled, for instance. But, as far as a release goes, we should be able to tag a new release on master. I can give all this a go soon if @moufmouf doesn't chime in. Updated: I meant @moufmouf not @devmaslov |
Ok, I would like the release to go ahead. One more thing, there are lots of people excited about graphql in symfony slack channel, maybe we should setup a channel there to collaborate on this wonderful library |
Is there anything I could do to help you getting this merged? :-) |
@xyng the CI and checks have been cleaned up now and should be passing. They need to be re-run. That should give us a better indication of issues with this PR. |
Should be rebased onto master instead |
Any updates on when this PR will be merged? |
@MartynasKasp we need all the tests passing before this can be merged in. Ping @xyng |
I'll check the tests and try to resolve them in a few days. I misread your comment from 2021-08-18 and thought you only wanted a merge from master. ;-) |
e733b60
to
c934738
Compare
So I did some debugging and changes. Tests are passing for me locally. |
src/AnnotationReader.php
Outdated
* @throws AnnotationException | ||
*/ | ||
public function getMiddlewareAnnotations($reflection): MiddlewareAnnotations | ||
public function getMiddlewareAnnotations(ReflectionMethod|ReflectionProperty $reflection): MiddlewareAnnotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need to support php7 where this syntax is not available. Same below, mixed
is a new feature too. Could you revert them all, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for that - I mostly run PHP 8 locally and it seems CodeSniffer figured typings would be better in the function definition.
Having reverted that change, the others also seem to have become obsolete.
I have force-pushed this branch to clean up the mess caused by that. So if you have pulled to review, please take that into account.
1554eca
to
a0df970
Compare
I created this merge request to your branch, if it's okay with you, it seems to be working alright, and it feels less like a horrible hack than my previous proposal. |
I'm a little confused that tests fail here as they did pass locally. I'm happy with your pull-request however I'd prefer approval for that additional change of a contributor of this project before merging that into this pr and eventually cluttering it. |
I actually work at TheCodingMachine, but only just took my first dive into graphqlite. @moufmouf, can you take a look at these changes I proposed? |
Hey @xyng! First of all, thanks a lot for this PR, it's great! |
Hey @dsavina I just merged your changes. |
@xyng Done! |
Documentation generation failed, however I can see that running this job on pull requests is only recent. @oojacoboo, did we miss something? |
It seems like there was a permission error for doc generation action:
|
I don't get why this push was attempted in the first place: this is only a pull request, shouldn't the documentation be deployed only after this is merged? |
Hello everyone. Any news? Any suggestions when the release will be? Thanks for your work! |
bdaa844
to
8e99d7a
Compare
I noticed that #394 got merged and rebased this pr to the updated master. |
@xyng Done! |
Excellent! Before we merge this, shouldn't we consider upgrading the version alias in Composer? https://github.com/thecodingmachine/graphqlite/blob/master/composer.json#L66-L70 A lot of projects must be depending on webonyx to be in 0.13 without properly stating this dependency in their composer.json (because it is a transititive dependency via GraphQLite). Should we upgrade the version number to 5.x ? |
@moufmouf I set the version to Edit: Sorry I got the file wrong :-) I've changed the commit so it updates the branch-alias. |
782bd3b
to
23c0cdf
Compare
Looks good to me! |
This PR updates
webonyx/graphql-php
to the latest versions.Psalm seems to be happy with the changes.
phpunit dies at the same spot as it does on master.
My project using graphqlite works perfectly fine.
If you have any feedback i'm happy to adjust the pr.