-
Notifications
You must be signed in to change notification settings - Fork 130
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
Avoid loop with static assets when users pass the --theme-editor-sync
flag
#4160
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
Coverage report
Test suite run success1722 tests passing in 794 suites. Report generated by 🧪jest coverage report action from 71c8729 |
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!
TIL about escape_slash
...
Thank you for the review, @jamesmengo! I just rolled back the |
WHY are these changes introduced?
This PR updates the checksum calculation to avoid loops when users run
shopify theme dev --theme-editor-sync
and their assets directory has JSON files.It solves a similar issue addressed by #4142. However, not only the
config/settings_schema.json
file is sanitized on the platform, butassets/*.json
as well. Thus, this PR updates the checksum calculation to reflect that.WHAT is this pull request doing?
This PR adopts the same approach adopted by #4142 to JSON
assets/*
.How to test your changes?
shopify theme dev --theme-editor-sync
assets/test.json
with this content:Post-release steps
N/A
Measuring impact
How do we know this change was effective? Please choose one:
Checklist