You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Consider a product with multiple variants where one variant, that had stock, was deleted after some time. The DefaultSearchPlugin will falsely index that the product is in stock as it does not pay attention to the soft-deleted variant.
To Reproduce
Steps to reproduce the behavior:
Create a product with multiple variants, put one in stock that you intend to soft delete
Delete said variant
According to the DefaultSearchPlugin the product is falsely in-stock
Expected behavior
The product should be shown out of stock and the deleted variant should be disregarded
Environment (please complete the following information):
@vendure/core version: 2.3.0 but I found that this affects later versions too
Nodejs version 18
Database (mysql/postgres etc): postgres 16
Additional context
I will PR this later in the day
The text was updated successfully, but these errors were encountered:
Describe the bug
Consider a product with multiple variants where one variant, that had stock, was deleted after some time. The DefaultSearchPlugin will falsely index that the product is in stock as it does not pay attention to the soft-deleted variant.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The product should be shown out of stock and the deleted variant should be disregarded
Environment (please complete the following information):
Additional context
I will PR this later in the day
The text was updated successfully, but these errors were encountered: