-
Notifications
You must be signed in to change notification settings - Fork 140
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
[Bug Fix] Reduce theme upload batch size to prevent timeout #5113
Conversation
Coverage report
Show files with reduced coverage 🔻
Test suite run success1989 tests passing in 898 suites. Report generated by 🧪jest coverage report action from df9d347 |
Just to be clear, does this address the theme pull issue from #5094? I'm currently having issues with push and pull. |
@Waynenabors I wouldn't say with certainty, no. The user that says it's a dupe is not a part of Shopify and may have been guessing. |
Could we only change these limits when using the theme access app? |
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.
Thanks for debugging it Alok! Let's ship this for now until we can properly raise the limits 🚀
export const MAX_BATCH_FILE_COUNT = 20 | ||
// 1MB | ||
export const MAX_BATCH_BYTESIZE = 1024 * 1024 |
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.
Should we add a comment here specifying where is the limit coming from? Or perhaps linking this very PR so the context is not lost?
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.
Good idea. I will add a comment explaining why we had to lower this limit.
01cb5d6
to
df9d347
Compare
Any idea when this might get in? Our deploys are failing and I'm trying to decide if it's worth finding an alternative. Thanks everyone! |
Hey @Waynenabors! This is currently released in |
WHY are these changes introduced?
Part of #5031
WHAT is this pull request doing?
A previous PR changed the endpoint to upload the themes files from REST API to GraphQL API
How to test your changes?
npx shopify theme push --theme="bug-dec16" --unpublished --verbose --path=<path-to-repo>
NOTE: Also try uploading a LOT of asset files AND with large asset files (e.g. download large images in asset folder)
Post-release steps
Measuring impact
How do we know this change was effective? Please choose one:
Checklist