Skip to content

Conversation

@shauns
Copy link
Contributor

@shauns shauns commented Nov 21, 2025

WHY are these changes introduced?

To enable importing metafield and metaobject definitions from a shop into a TOML configuration file, making it easier for developers to migrate existing custom data structures into their app configuration.

The service loads metafield definitions across all owner types, as well as metaobject definitions. These are then converted into their TOML equivalent, and for finessed rendering, a collection of patches to apply to control TOML formatting.

This service is not exposed within this PR.

image.png

Copy link
Contributor Author

shauns commented Nov 21, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Contributor

We detected some changes at packages/*/src and there are no updates in the .changeset.
If the changes are user-facing, run pnpm changeset add to track your changes and include them in the next release CHANGELOG.

Caution

DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 21, 2025

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
79.47% (+0.26% 🔼)
14141/17794
🟡 Branches
73.53% (+0.33% 🔼)
6936/9433
🟡 Functions
79.62% (+0.27% 🔼)
3630/4559
🟡 Lines
79.84% (+0.27% 🔼)
13367/16743
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / metafield_definitions.ts
100% 100% 100% 100%
🟢
... / metaobject_definitions.ts
100% 100% 100% 100%
🟢
... / declarative-definitions.ts
98.54% 93.18% 100% 98.51%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / execute-operation.ts
92.86%
80% (-3.33% 🔻)
100% 92.31%
🟢
... / execute-bulk-operation.ts
92.98%
86.11% (-0.73% 🔻)
100% 92.73%
🟢
... / developer-platform-client.ts
84.62%
71.43% (-2.26% 🔻)
81.82%
93.75% (+3.13% 🔼)
🔴
... / environment.ts
35% (-6.67% 🔻)
41.18% (-1.68% 🔻)
40% (-10% 🔻)
36.84% (-6.64% 🔻)

Test suite run success

3532 tests passing in 1413 suites.

Report generated by 🧪jest coverage report action from b44cf4a

@shauns shauns force-pushed the shauns/dcdd-import-service branch from cca80dc to 375e9d7 Compare November 21, 2025 13:04
@shauns shauns force-pushed the shauns/tasks-tokenized-title branch from ec968cf to 4d6099e Compare November 21, 2025 13:04
@shauns shauns force-pushed the shauns/dcdd-import-service branch 3 times, most recently from 232d079 to a61c3ab Compare November 21, 2025 14:21
Base automatically changed from shauns/tasks-tokenized-title to main November 21, 2025 14:59
@shauns shauns force-pushed the shauns/dcdd-import-service branch from a61c3ab to bd265d7 Compare November 24, 2025 10:35
Copy link
Contributor

@gonzaloriestra gonzaloriestra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is a bit hard to follow, I would try to simplify in general.

Also, I would add some debug messages around to be able to investigate issues from verbose outputs.

I left some random suggestions, but nothing really important.

"{projectRoot}/src/cli/api/graphql/functions/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/bulk-operations/generated/**/*.ts"
"{projectRoot}/src/cli/api/graphql/bulk-operations/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/admin/generated/**/*.ts"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we just replace all these with something like this?
"{projectRoot}/src/cli/api/graphql/**/generated/**/*.ts"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good shout. But let me add as a separate piece of stack -- there could be good reason, nx has its idiosyncrasies.

"pnpm eslint 'src/cli/api/graphql/functions/generated/**/*.{ts,tsx}' --fix",
"pnpm eslint 'src/cli/api/graphql/bulk-operations/generated/**/*.{ts,tsx}' --fix"
"pnpm eslint 'src/cli/api/graphql/bulk-operations/generated/**/*.{ts,tsx}' --fix",
"pnpm eslint 'src/cli/api/graphql/admin/generated/**/*.{ts,tsx}' --fix"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

"{projectRoot}/src/cli/api/graphql/functions/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/bulk-operations/generated/**/*.ts"
"{projectRoot}/src/cli/api/graphql/bulk-operations/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/admin/generated/**/*.ts"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

@shauns shauns changed the base branch from main to graphite-base/6651 December 5, 2025 09:31
@shauns shauns force-pushed the shauns/dcdd-import-service branch from bd265d7 to ac99e52 Compare December 5, 2025 09:31
@shauns shauns changed the base branch from graphite-base/6651 to shauns/12-05-automatic_rate_limit_restoration_w__admin_api_calls December 5, 2025 09:31
@shauns shauns force-pushed the shauns/dcdd-import-service branch from ac99e52 to ae8cbbd Compare December 5, 2025 10:28
@shauns shauns force-pushed the shauns/12-05-automatic_rate_limit_restoration_w__admin_api_calls branch 2 times, most recently from 68d8802 to e20367f Compare December 10, 2025 13:54
@shauns shauns force-pushed the shauns/dcdd-import-service branch from ae8cbbd to 7c32c62 Compare December 10, 2025 13:54
@shauns shauns force-pushed the shauns/12-05-automatic_rate_limit_restoration_w__admin_api_calls branch from e20367f to b1c7ead Compare December 11, 2025 18:14
@shauns shauns force-pushed the shauns/dcdd-import-service branch from 7c32c62 to b44cf4a Compare December 11, 2025 18:14
@github-actions
Copy link
Contributor

Differences in type declarations

We detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:

  • Some seemingly private modules might be re-exported through public modules.
  • If the branch is behind main you might see odd diffs, rebase main into this branch.

New type declarations

We found no new type declarations in this PR

Existing type declarations

packages/cli-kit/dist/public/node/http.d.ts
@@ -18,7 +18,7 @@ type AutomaticCancellationBehaviour = {
 } | {
     useAbortSignal: AbortSignal | (() => AbortSignal);
 };
-type RequestBehaviour = NetworkRetryBehaviour & AutomaticCancellationBehaviour;
+export type RequestBehaviour = NetworkRetryBehaviour & AutomaticCancellationBehaviour;
 export type RequestModeInput = PresetFetchBehaviour | RequestBehaviour;
 /**
  * Specify the behaviour of a network request.
packages/cli-kit/dist/public/node/api/graphql.d.ts
@@ -47,6 +47,7 @@ export type GraphQLRequestDocOptions<TResult, TVariables> = GraphQLRequestBaseOp
     }>>;
     variables?: TVariables;
     unauthorizedHandler?: UnauthorizedHandler;
+    autoRateLimitRestore?: boolean;
 };
 export interface GraphQLResponseOptions<T> {
     handleErrors?: boolean;

Base automatically changed from shauns/12-05-automatic_rate_limit_restoration_w__admin_api_calls to main December 11, 2025 20:06
@shauns shauns added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit 19a6a9d Dec 11, 2025
42 of 65 checks passed
@shauns shauns deleted the shauns/dcdd-import-service branch December 11, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants