Skip to content
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

Fixed StrawberryShake result has empty Extensions Issue #5967

Merged

Conversation

anton-gogolev
Copy link
Contributor

@anton-gogolev anton-gogolev commented Mar 16, 2023

This is my naïve attempt to fix #4956.

There are no meaningful tests for this fix; I hacked around existing one to get this thing to kinda-sorta work to fit my use-case. I'm all ears and open to suggestions as to how improve this PR.

@CLAassistant
Copy link

CLAassistant commented Mar 16, 2023

CLA assistant check
All committers have signed the CLA.

@michaelstaib
Copy link
Member

Hey there,

thank you for contributing.

Can you add some integration tests so that we can see that this works?

@anton-gogolev
Copy link
Contributor Author

anton-gogolev commented Mar 17, 2023

@michaelstaib Not sure about integration tests, but I added a simple unit test that does some basic assertions.

From what I could understand, objects of Response class have very few properties ever initialized, so spinning up a full GraphQL server and then invoking it from an integration test sounds a bit excessive: we can just "pretend" that we've got a JSON document from "the network" and just "build" an OperationResult instance out of it.

Also, I've just empirically confirmed that the fix in fact works.

@anton-gogolev
Copy link
Contributor Author

@michaelstaib What would be my (or some else's) next steps on this?

@nightroman
Copy link
Contributor

nightroman commented Mar 22, 2023

@michaelstaib What else is needed? Can this fix make into 13.1? How can we help in addition to the @anton-gogolev fix and unit test? The extensions field is the part of GraphQL specs and Strawberry Shake not respecting it causes real pain...

@michaelstaib
Copy link
Member

Yes

@michaelstaib
Copy link
Member

We will add it to 13.1

@michaelstaib
Copy link
Member

Should be merged after the weekend and available as preview

@nightroman
Copy link
Contributor

nightroman commented Mar 22, 2023

@michaelstaib Thank you, it's a great news!!! @anton-gogolev many thanks for the fix!

@michaelstaib michaelstaib changed the title Fix #4956 Fixed StrawberryShake result has empty Extensions Issue Mar 29, 2023
@michaelstaib michaelstaib added the 🎬 ready Ready to merge label Mar 29, 2023
@anton-gogolev
Copy link
Contributor Author

@michaelstaib A friendly ping here. Is anything required here from me?

@nightroman
Copy link
Contributor

@michaelstaib https://github.com/ChilliCream/graphql-platform/releases/tag/13.1.0-preview.5 is out with this fix promised to be included

Should be merged after the weekend and available as preview

It's all right if it is not forgotten as such and will get into 13.1. But we worry a little... and we do not have a chance to test a preview, who knows, the merge may bring surprises.

@michaelstaib michaelstaib added this to the HC-13.1.0 milestone Apr 12, 2023
@nightroman
Copy link
Contributor

@michaelstaib could you please merge this PR so that it is included in the preview and we can test? We promise to test and report whatever the outcome is. You should be interested in any outcome and our feedback, right?

@RobAltium
Copy link

@michaelstaib Sorry to nag ... can this be merged please? Who else can review? This is holding up @anton-gogolev and our Altium365 team...

@michaelstaib michaelstaib changed the base branch from main-version-13 to main May 4, 2023 13:28
@michaelstaib michaelstaib changed the base branch from main to main-version-13 May 4, 2023 13:30
@michaelstaib michaelstaib merged commit c76ec0b into ChilliCream:main-version-13 May 4, 2023
@michaelstaib
Copy link
Member

Its merged and will be in the next build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants