-
Notifications
You must be signed in to change notification settings - Fork 145
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
Enable include_config_on_deploy by default for new apps #5253
Conversation
Coverage report
Show files with reduced coverage 🔻
Test suite run success2002 tests passing in 904 suites. Report generated by 🧪jest coverage report action from 63192ff |
This comment has been minimized.
This comment has been minimized.
/snapit |
🫰✨ Thanks @gonzaloriestra! Your snapshot has been published to npm. Test the snapshot by intalling your package globally: pnpm i -g @shopify/[email protected]
|
@@ -116,32 +116,31 @@ describe('link', () => { | |||
expect(remoteApp).toEqual(mockRemoteApp({developerPlatformClient})) | |||
}) | |||
}) | |||
}) |
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.
was this change intentional? seems like it changed the indentation of all tests
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.
Yes, most of the tests here were outside of the describe
where they should belong. Sorry for the noise 😅
WHY are these changes introduced?
When you create a new app in Partners with
shopify app init
, the generated TOML should includeinclude_config_on_deploy = true
.It was working some time ago, but then broken when we added the authentication to the app init. The reason is that we were checking if the app is new to add that field, but after that refactor, we create the app first and then fetch it again when running link, so that the
newApp
property was missed.WHAT is this pull request doing?
The link function is already receiving a
newApp
option, so I'm just setting it again to the returned app if required.How to test your changes?
npm i -g @shopify/[email protected]
shopify app init
include_config_on_deploy = true
shopify app deploy
doesn't ask about including the configMeasuring impact
How do we know this change was effective? Please choose one:
Checklist