-
Notifications
You must be signed in to change notification settings - Fork 223
Block Partners API for 3P devs #6645
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
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3361 tests passing in 1376 suites. Report generated by 🧪jest coverage report action from 589cb8d |
c4e9217 to
24e1ef9
Compare
|
We detected some changes at Caution DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release. |
24e1ef9 to
589cb8d
Compare
Differences in type declarationsWe 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:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/environment.d.ts@@ -53,7 +53,7 @@ export declare function jsonOutputEnabled(environment?: NodeJS.ProcessEnv): bool
/**
* If true, the CLI should not use the Partners API.
*
- * @returns True if the SHOPIFY_CLI_NEVER_USE_PARTNERS_API environment variable is set.
+ * @returns True when SHOPIFY_CLI_NEVER_USE_PARTNERS_API is set or SHOPIFY_CLI_1P_DEV is not set.
*/
export declare function blockPartnersAccess(): boolean;
/**
|
alfonso-noriega
left a comment
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.
LGTM!🚀

WHY are these changes introduced?
Only 1P devs still need Partners API, so we can avoid additional API calls for the rest
WHAT is this pull request doing?
SHOPIFY_CLI_NEVER_USE_PARTNERS_APIis set orSHOPIFY_CLI_1P_DEVis not setHow to test your changes?
p shopify app init --template none --verbose=> No PartnersSHOPIFY_CLI_1P_DEV=1 p shopify app init --template none --verbose=> uses PartnersSHOPIFY_CLI_NEVER_USE_PARTNERS_API=1 SHOPIFY_CLI_1P_DEV=1 p shopify app init --template none --verbose=> No PartnersMeasuring impact
How do we know this change was effective? Please choose one:
Checklist