Themekit: Configuration without theme ID defaults to live

Created on 18 Feb 2020  路  2Comments  路  Source: Shopify/themekit

When no theme_id (or an invalid value) is provided in config.yml, for a valid password, theme watch/deploy defaults to live theme.

To Reproduce
Steps to reproduce the behavior:

  1. save config.yml with a valid block (password + store) and no theme_id (or invalid value, ex. [88262180909])
  2. run 'theme deploy'

Expected behavior
Themekit should fail as falling back to live theme is a dangerous practice.
Imagine someone on your team configures a "faulty" config.yml and runs theme deploy, overriding the live theme.
IMO there should be no such fallback and configuration should only be valid with explicit theme ID.

Environment:

  • OS: MacOS Catalina v10.15.3

    • Themekit: 1.0.3

Most helpful comment

I think #670 is not going to resolve this (maybe partially). I agree with @EMachado88 expected behavior, it definitely should NOT defaults to live theme! And please fix this asap, this is a serious bug...

All 2 comments

Okay, I am going to mark this as a duplicate of #670 as there is a theme of worry about accidental live theme editing. I will look into adding functionality to make it harder to edit a live theme

I think #670 is not going to resolve this (maybe partially). I agree with @EMachado88 expected behavior, it definitely should NOT defaults to live theme! And please fix this asap, this is a serious bug...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tbeseda picture tbeseda  路  3Comments

raulmontejo picture raulmontejo  路  4Comments

arypbatista picture arypbatista  路  9Comments

hatsumatsu picture hatsumatsu  路  5Comments

crissmancd picture crissmancd  路  5Comments