-
Notifications
You must be signed in to change notification settings - Fork 8.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
Use renamed @graphql-codegen/cli instead of graphql-code-generator #60783
Conversation
CI fails the "Check licenses" check with the following errors:
The license issue is also being discussed by others here: apollographql/apollo-tooling#1553 |
When dependencies have a license that can't be properly parsed we can override the setting via https://github.com/elastic/kibana/blob/e60f7d62edaacd969ec8ff0971117f3687e18617/src/dev/license_checker/config.ts#L79-L107 Looked at a couple of these and it seems they could be hard-coded to MIT |
67e03d2
to
5a21b98
Compare
bd3520a
to
033333e
Compare
Due to
If I pin The change that causes this is this one: apollographql/apollo-link#1263 It appears that this is because the new module isn't compatible with GraphQL 13 which we are using. However, using Yarn resolutions to force Update: Found a way to get around this without using Yarn resolutions by modifying yarn.lock manually to ensure we used versions of |
Fix two TypeScript errors that would occur when running `node scripts/check_type`. Both issues are related to the version of `apollo-link` being used.
The problematic packages are no longer in the dependency tree. This happended when I upgraded from v1.13.1 to 1.13.3.
@elasticmachine merge upstream |
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.
Operations: LGTM
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
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.
infra (logs/metrics) changes LGTM -> I don't think we use that script anymore, I'll ping the team about removing it if that's the case. Thanks!
When running from SIEM we got errors when I did: cd ~/projects/kibana/x-pack/plugins/siem
node scripts/generate_types_from_graphql.js And then when I ran a type check: cd ~/projects/kibana
node scripts/type_check.js --project x-pack/tsconfig.json And got a lot of errors (I won't post here unless you cannot reproduce) Once those are fixed and any new different generated types are part of this PR, I will give it a test and if everything during runtime looks good I will give it a LGTM. |
GraphQL is scheduled to be removed soon (tip from @XavierM), so I think I'll just close this PR, as the GraphQL code generator is being removed at the same time. |
The dev-dependency module
graphql-code-generator
has been deprecated and new development continues under the name@graphql-codegen/cli
. The old version is no longer maintained.An upgrade-guide has been published for upgrading from
graphql-code-generator
to@graphql-codegen/cli
: https://graphql-code-generator.com/docs/migration/from-0-18