-
Notifications
You must be signed in to change notification settings - Fork 201
Update 99designs/gqlgen@v0.17.62 and vektah/gqlparser/v2@v2.5.21 #609
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
Conversation
…parser/v2@v2.5.21 Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
bb91180
to
ad5cd7e
Compare
Signed-off-by: Steve Coffman <steve@khanacademy.org>
40ff9de
to
a634de9
Compare
Hmmm, I'm not sure if my local environment is entirely what is expected. I appear to be finding the required local setup by process of elimination. Sorry for all the git commit amend and force pushing! I'll try to instead to do this step by step and record what I'm doing in case it is helpful to some later person (e.g. future me). So far:
This still results in a difference because protoc v3.19.4 is not the same as protoc v3.4.0 So I downloaded and decompressed protoc v3.19.4, prefixed my PATH environment variable with that this still results in one local test failing:
|
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Ok, I am getting go generate failures when I run nektos/act to simulate the remote GitHub action failures:
This provides this minor output tweak:
|
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Ok, moved to gqlgen v0.17.62 to make any/interface consistent |
Signed-off-by: Steve Coffman <steve@khanacademy.org>
e140af1
to
af62098
Compare
Signed-off-by: Steve Coffman <steve@khanacademy.org>
ecb290d
to
7ce01a6
Compare
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Running The other discrepancy is that my locally running
|
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
So there was a slight discrepancy in the Now my |
Thanks for your contribution, @StevenACoffman 🙏🏻 |
@StevenACoffman, adding an additional thanks for helping with this. I really appreciate all your work on gqlgen! |
@@ -9,6 +9,7 @@ schema: | |||
|
|||
resolver: | |||
layout: follow-schema | |||
preserve_resolver: true |
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.
Did we want this to be true or false?
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.
I picked true to be safe, because it depends. If there is customized code in those resolvers, then we want to preserve them (true), so we do not want to overwrite them. If there is nothing customized, then I guess it's harmless to preserve them, but we could set it to false.
I took this to be more of an example, as you people aren't actively changing these (or the schema) on a regular basis.
@michaelcaulley Hey, so we should probably bump gqlgen again after this, or else swap the models to use |
…v2.5.21 (ent#609) * Update github.com/99designs/gqlgen@v0.17.61 and github.com/vektah/gqlparser/v2@v2.5.21 Signed-off-by: Steve Coffman <steve@khanacademy.org> * Re-generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * Re-generate with correct protobuf versions Signed-off-by: Steve Coffman <steve@khanacademy.org> * Try again with protoc v3.19.4 Signed-off-by: Steve Coffman <steve@khanacademy.org> * minor tweak to go.mod and avoid pager getting stuck Signed-off-by: Steve Coffman <steve@khanacademy.org> * Update gqlgen to v0.17.62 Signed-off-by: Steve Coffman <steve@khanacademy.org> * regenerate? Signed-off-by: Steve Coffman <steve@khanacademy.org> * Minor tweak Signed-off-by: Steve Coffman <steve@khanacademy.org> * re-re-generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * Add tools.go and run go mod tidy Signed-off-by: Steve Coffman <steve@khanacademy.org> * Generate using nektos/act -j generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * Go generate again Signed-off-by: Steve Coffman <steve@khanacademy.org> * Generate using nektos/act -j generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * go clean --modcache and then go mod tidy Signed-off-by: Steve Coffman <steve@khanacademy.org> --------- Signed-off-by: Steve Coffman <steve@khanacademy.org>
…v2.5.21 (ent#609) * Update github.com/99designs/gqlgen@v0.17.61 and github.com/vektah/gqlparser/v2@v2.5.21 Signed-off-by: Steve Coffman <steve@khanacademy.org> * Re-generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * Re-generate with correct protobuf versions Signed-off-by: Steve Coffman <steve@khanacademy.org> * Try again with protoc v3.19.4 Signed-off-by: Steve Coffman <steve@khanacademy.org> * minor tweak to go.mod and avoid pager getting stuck Signed-off-by: Steve Coffman <steve@khanacademy.org> * Update gqlgen to v0.17.62 Signed-off-by: Steve Coffman <steve@khanacademy.org> * regenerate? Signed-off-by: Steve Coffman <steve@khanacademy.org> * Minor tweak Signed-off-by: Steve Coffman <steve@khanacademy.org> * re-re-generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * Add tools.go and run go mod tidy Signed-off-by: Steve Coffman <steve@khanacademy.org> * Generate using nektos/act -j generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * Go generate again Signed-off-by: Steve Coffman <steve@khanacademy.org> * Generate using nektos/act -j generate Signed-off-by: Steve Coffman <steve@khanacademy.org> * go clean --modcache and then go mod tidy Signed-off-by: Steve Coffman <steve@khanacademy.org> --------- Signed-off-by: Steve Coffman <steve@khanacademy.org>
Update gqlgen and gqlparser
This updates gqlgen and gqlparser to the latest versions github.com/99designs/gqlgen@v0.17.61 and github.com/vektah/gqlparser/v2@v2.5.21
In https://github.com/ent/contrib/pull/607/files github.com/99designs/gqlgen was moved from v0.17.48 to v0.17.51.
I see that in that PR it has a comment that says that gqlgen version v0.17.52 has an issue with ent field collection. It blames commit: 99designs/gqlgen@f81239e
The blamed gqlgen commit was merged 99designs/gqlgen#3287
This was to fix 99designs/gqlgen#3285 by reverting 99designs/gqlgen#3203
Currently gqlgen v0.17.61 is the latest. It is not clear to me if there remains any problem with gqlgen and ent field collection.
Please point me to an open issue in gqlgen (or PR) describing (or fixing) the ent field collection problem.