-
Notifications
You must be signed in to change notification settings - Fork 219
Restore usage of custom app passwords to theme commands #6626
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
366d8b4 to
fb207c2
Compare
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3365 tests passing in 1377 suites. Report generated by 🧪jest coverage report action from 56c08f7 |
|
/snapit |
|
🫰✨ Thanks @graygilmore! Your snapshot has been published to npm. Test the snapshot by installing your package globally: npm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running just |
|
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. |
| if (options.password?.startsWith('shpat_')) { | ||
| renderWarning({ | ||
| headline: 'Admin API token missing features:', | ||
| body: 'Directly using an Admin API token will result in some missing features like hot module reloading. We recommend generating a password from the Theme Access app or authenticating directly.', |
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.
What do you think about matching up the wording for console and dev a bit? I wouldn't mind seeing something closer to console/profile with the Alternatively, you can authenticate normally by not passing the --password flag.
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.
f729a75 to
6fc48ee
Compare
This was previously stripped away but theme developers are still using this flow and are forced to pin to older versions. I'm returning the functionality in this PR but calling out the specific places where it doesn't work: - `dev` does not support hot module reloading - `console` and `profile` commands do not work at all
6fc48ee to
56c08f7
Compare
Force Push Patch Notes
Thanks to both @dejmedus and @EvilGenius13 for the tophatting 😄 |
dejmedus
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.
EvilGenius13
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.
🎩 went well and the warnings look good!



WHY are these changes introduced?
This was previously stripped away but theme developers are still using this flow and are forced to pin to older versions. I'm returning the functionality in this PR but calling out the specific places where it doesn't work:
devdoes not support hot module reloadingconsoleandprofilecommands do not work at allI tested on all of the theme commands:
For
consoleandprofilewe now throw anAbortError. Fordevwe render a warning.How to test your changes?
npm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]