-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Massive undocumented breaking change in v0.17.50 #3321
Comments
Gotta agree, I don't really understand what the intention behind this change was. My situation isn't as dramatic as in Vilsol's example, I just added some fields to the But what's the gain of this change? It feels like it only introduces new incompatibilities and a huge complexity for the repos's maintainers to face, but with little benefit. It makes me a bit anxious that more Edit: After reading the PR and the discussion it seems that there's it's somehow related to |
Yeah i feel you, behaviour altering changes should be behind configuration option usually opt-in |
This bad situation is actually both my mistake and my miscommunication combined, and I'm quite sorry. There was originally a config option I suggested that instead the config option be The person who did that PR was an intern under the supervision of another maintainer. That maintainer's current employer is under legal restrictions preventing them from directly contributing, but the maintainer and I had side conversations so I assumed that it had been more carefully vetted so I merged it based on that assessment, rather than doing my own. That was a big mistake. Again, I'm very sorry. I'd welcome a PR to add a config option to at least opt-out of this rewrite behavior. |
Thanks for the response! If I find time, I can try to create a PR. But it might take a while, so if somebody is more into the topic and faster with adding this option, I'll gladly yield it. ;) |
This appears to illustrate the PR change before the config option was removed: |
I put up a PR for #3359 for your consideration |
Please see https://github.com/99designs/gqlgen/releases/tag/v0.17.56 and hopefully people can add |
I have hit a major issue due to this undocumented breaking change (#3243), which was introduced in a patch version bump.
This is how the
resolver.go
looked like before on versionv0.17.49
: https://github.com/satisfactorymodding/smr-api/blob/179d26156ff1bfc48119ab24ee8a4740d2a2a18b/gql/resolver.goThis is how it looks like after running the generator on version
v0.17.50
: https://gist.github.com/Vilsol/1d7ac5dabd75933604449e1d6faa3323Is there some config options I can change to make this work with newer versions? Or is my only possible path to not upgrade?
The text was updated successfully, but these errors were encountered: