{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/themekit/issues/171","repository_url":"https://api.github.com/repos/Shopify/themekit","labels_url":"https://api.github.com/repos/Shopify/themekit/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/themekit/issues/171/comments","events_url":"https://api.github.com/repos/Shopify/themekit/issues/171/events","html_url":"https://github.com/Shopify/themekit/issues/171","id":170667561,"number":171,"title":"including new section/block files when running `theme replace` throws error","user":{"login":"m-ux","id":4432259,"avatar_url":"https://avatars.githubusercontent.com/u/4432259?v=3","gravatar_id":"","url":"https://api.github.com/users/m-ux","html_url":"https://github.com/m-ux","followers_url":"https://api.github.com/users/m-ux/followers","following_url":"https://api.github.com/users/m-ux/following{/other_user}","gists_url":"https://api.github.com/users/m-ux/gists{/gist_id}","starred_url":"https://api.github.com/users/m-ux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-ux/subscriptions","organizations_url":"https://api.github.com/users/m-ux/orgs","repos_url":"https://api.github.com/users/m-ux/repos","events_url":"https://api.github.com/users/m-ux/events{/privacy}","received_events_url":"https://api.github.com/users/m-ux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-11T15:00:55Z","updated_at":"2016-10-27T14:35:24Z","closed_at":null,"body":"When working with our new sections model, we're getting the following error when trying to deploy changes to a theme using a full replace:\r\n\r\n```\r\n[09:20:46] Could not upload config/settings_data.json:\r\nInvalid type value for block 'placeholder'. Type must be defined in schema\r\nInvalid type value for block 'linklist'. Type must be defined in schema\r\nInvalid type value for block 'social'. Type must be defined in schema\r\n```\r\n\r\nThe theory is that `settings_data.json` is being uploaded to the server **before** the blocks that are referenced therein.  Since the files being referenced don't exist on the server yet, it throws an error.\r\n\r\nIn order to fix this, I think we need to ensure the contents of the `config` directory are uploaded last.  \r\n\r\nAlso, @Thibaut has suggested we probably want to upload `settings_schema.json` before `settings_data.json` for similar reasons.\r\n\r\n@chrisbutcher "},"comment":{"url":"https://api.github.com/repos/Shopify/themekit/issues/comments/256659415","html_url":"https://github.com/Shopify/themekit/issues/171#issuecomment-256659415","issue_url":"https://api.github.com/repos/Shopify/themekit/issues/171","id":256659415,"user":{"login":"tanema","id":463193,"avatar_url":"https://avatars.githubusercontent.com/u/463193?v=3","gravatar_id":"","url":"https://api.github.com/users/tanema","html_url":"https://github.com/tanema","followers_url":"https://api.github.com/users/tanema/followers","following_url":"https://api.github.com/users/tanema/following{/other_user}","gists_url":"https://api.github.com/users/tanema/gists{/gist_id}","starred_url":"https://api.github.com/users/tanema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanema/subscriptions","organizations_url":"https://api.github.com/users/tanema/orgs","repos_url":"https://api.github.com/users/tanema/repos","events_url":"https://api.github.com/users/tanema/events{/privacy}","received_events_url":"https://api.github.com/users/tanema/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T14:35:24Z","updated_at":"2016-10-27T14:35:24Z","body":"Thanks @karocena and that is the most current version."}}
{"actor":{"display_login":"tanema"}}