Skip to content

Commit 1e16950

Browse files
hellendagDagster Devtools
authored andcommitted
Update @graphql-codegen packages to latest (cli v7, plugins v6) (#25808)
## Summary & Motivation Update GraphQL codegen dependencies. A bunch of generation scripts were changed around recently so I'm just running what's there now. ## Test Plan BK Internal-RevId: cd3be54050bbb1d30769d45facecdfce686e7006
1 parent 1fc1356 commit 1e16950

210 files changed

Lines changed: 5319 additions & 1921 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

js_modules/ui-core/codegen.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ const config: CodegenConfig = {
44
schema: './src/graphql/schema.graphql',
55
documents: ['src/**/*.tsx'],
66
ignoreNoDocuments: true, // for better experience with the watcher
7+
config: {
8+
scalars: {
9+
ID: 'string',
10+
GenericScalar: 'any',
11+
JsonSchema: 'any',
12+
RunConfigData: 'any',
13+
},
14+
},
715
hooks: {
816
afterAllFileWrite: ['prettier --write'],
917
},
@@ -53,6 +61,11 @@ const config: CodegenConfig = {
5361
listElementCount: 0,
5462
terminateCircularRelationships: true,
5563
useImplementingTypes: true,
64+
scalars: {
65+
GenericScalar: 'JSON.stringify({})',
66+
JsonSchema: 'JSON.stringify({})',
67+
RunConfigData: 'JSON.stringify({})',
68+
},
5669
},
5770
},
5871
],
@@ -67,9 +80,6 @@ const config: CodegenConfig = {
6780
config: {
6881
dedupeOperationSuffix: true,
6982
nonOptionalTypename: true,
70-
avoidOptionals: {
71-
field: true,
72-
},
7383
},
7484
plugins: [
7585
'typescript-operations',

js_modules/ui-core/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@
110110
"@dagster-io/dg-docs-components": "workspace:*",
111111
"@dagster-io/eslint-config": "workspace:*",
112112
"@dagster-io/ui-components": "workspace:*",
113-
"@graphql-codegen/add": "^5.0.2",
114-
"@graphql-codegen/cli": "^5.0.2",
115-
"@graphql-codegen/near-operation-file-preset": "^4.0.0",
116-
"@graphql-codegen/typescript-operations": "^4.2.0",
113+
"@graphql-codegen/add": "^7.0.1",
114+
"@graphql-codegen/cli": "^7.1.3",
115+
"@graphql-codegen/near-operation-file-preset": "^5.2.1",
116+
"@graphql-codegen/typescript-operations": "^6.0.5",
117117
"@graphql-eslint/eslint-plugin": "^4",
118-
"@graphql-tools/mock": "^9.0.0",
119-
"@graphql-tools/schema": "^10.0.0",
118+
"@graphql-tools/mock": "^9.1.8",
119+
"@graphql-tools/schema": "^10.0.34",
120120
"@rollup/plugin-graphql": "^2.0.5",
121121
"@storybook/addon-docs": "^10.1.11",
122122
"@storybook/addon-links": "^10.1.11",
@@ -159,8 +159,9 @@
159159
"eslint-plugin-storybook": "^10.1.11",
160160
"eslint-plugin-unused-imports": "^4.1.4",
161161
"faker": "5.5.3",
162-
"graphql-codegen-typescript-mock-data": "^3.7.1",
162+
"graphql-codegen-typescript-mock-data": "^5.1.2",
163163
"graphql-config": "^5.0.3",
164+
"graphql-sock": "^1.0.0",
164165
"graphql-tag": "^2.10.1",
165166
"identity-obj-proxy": "^3.0.0",
166167
"jest": "^29.7.0",

js_modules/ui-core/src/app/types/Permissions.types.ts

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/ui-core/src/app/types/PythonErrorFragment.types.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/ui-core/src/app/types/Telemetry.types.ts

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/ui-core/src/app/types/UnauthorizedErrorFragment.types.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/ui-core/src/app/types/useJobPermissions.types.ts

Lines changed: 25 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/ui-core/src/asset-data/types/AssetAutomationDataProvider.types.ts

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/ui-core/src/asset-data/types/AssetBaseDataProvider.types.ts

Lines changed: 44 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/ui-core/src/asset-data/types/AssetHealthDataProvider.types.ts

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)