Description
Summary (*)
When trying to get a list of categories, or even only one category, if "image" field is filled but the image can't be found on filesystem the request will fail with "Error: Category image not found."
This shouldn't be the correct behavior as not being able to render an image for a category isn't an unrecoverable error, and we've been able to handle in frontend this kind of errors for years, either be using a fallback or by leveraging other solutions.
Plus, when displaying a list of categories an image missing shouldn't block the whole categories being displayed by erroring the request.
Examples (*)
- Upload an image to a category
- Delete it from FS
- Run any categories Graphql query including "image" attribute
- Watch it fail by "Error: Category image not found."
In our case, this was the query:
const QUERY = gql`
query GetLines {
categories {
items {
children {
name
children {
name
children {
name
fast_shipping
url_path
image
}
}
}
}
}
}
`;
Proposed solution
Remove entirely this exception:
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users with no workaround.
No workaround that we can think of can be applied to recover from this error apart from re-uploading the missing image.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status