Skip to content

[Feature]: Schema errors results in the file not being uploaded at all #6315

@JasonHassold

Description

@JasonHassold

What area(s) will this request affect?

Theme

What type of change do you want to see?

New feature

Overview

In spite of errors, files should still always be uploaded

I've often run into an issue where a theme is live and working, I then pull the theme using the CLI, and then go into dev mode, and the theme is broken because a bunch of sections and templates were not uploaded because they were considered invalid

I believe there was a recent change which made this issue more common. It seems like if the file is manually created or uploaded to the theme without this validation process, or if the file gets into an error state after it was made, those particular chunks of the schema or sections in a template just don't get rendered. But in the CLI when you're uploading files, it will just cause the entire file to not be uploaded, causing other files that are dependent on it to not be uploaded as well. This can result in a very broken site.

I've also noticed similar behavior with the Shopify Github integration. In all of these cases, it's better to upload the file in spite of the error so it will at least partially work rather than failing entirely.

Motivation

Quite a few instances of themes that are working, and then I try to work on them in development mode, and they are broken. As well as themes where I try to create a theme from the Github integration, and the theme ends up being created in a broken state even though another theme with effectively the same code works

Here is an example, these templates didn't upload at all because of issues with a single setting in each. The page is completely broken because the template doesn't exist. This is a way worse outcome than those specific settings being broken

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions