Asset checksums (suggestion)

Shopify Partner
9 0 1

Wouldn't it be useful for tools like Theme Kit if this endpoint:

https://help.shopify.com/en/api/reference/online-store/asset?api[version]=2019-10#index-2019-10

-included a field like 'md5sum' for each asset? Then a command like 'theme download' could skip downloading identical files without the need for something like the old theme.lock file.

 

Is this the right place for suggestions, or is there somewhere more appropriate?

0 Likes
Shopify Staff
Shopify Staff
618 45 84

 

Hi @kelseyjudson,

 

Not a bad idea! I've passed this feature request to our product teams.

 

Out of curiosity, is the main motivation purely to cut down the size of theme downloads to only what is needed? Or do you see other benefits to this?

0 Likes
Highlighted
Shopify Partner
9 0 1

Thanks @Busfox, it's not just for the size, more for the time. Downloading a theme of hundreds of files/assets can take quite some time due to the API's call limit. In our process we perform theme downloads frequently to avoid missing changes made to the live theme either from merchants changing theme settings, or apps modifying arbitrary theme files. Downloading every file each time we do this is a bit of a time sink!

0 Likes