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
I use removeOptionGroupFromProduct to remove an optionGroup from a product,all the productVariants have been softDelete.
But after this remove,I can still use Product or ProductOptionGroup get the optionGroup which had been deleted .I checked the database and the column deletedAt has value,I was so weird why I could get an entity which had been softDeleted.
To Reproduce
Steps to reproduce the behavior:
Create a Product
Create some optionGroups
Create some options in every optionGroup
Create some ProductVariants
Call deleteProductVariant GraphQL to softDelete all ProductVariants
Call deleteProductOption GraphQL to delete all options
Call removeOptionGroupFromProduct GraphQL to remove all optionGroups from this product
Call Product GraphQL with producId to retrieve the product details,I can still get the removed optionGroups
Call ProductOptionGroup GraphQL with productOptionGroupId to retrieve the option group,I can still get the removed optionGroups
Expected behavior
After removeOptionGroupFromProduct,the ProductOptionGroup shouldn't be retrieved.
Environment (please complete the following information):
@vendure/core version: V3.1.0
Nodejs version: V22.10.0
Database (mysql/postgres etc): postgres
Additional context
Use Admin UI to create product details.Use PostMan to test GraphQL.
Thanks~
The text was updated successfully, but these errors were encountered:
Describe the bug
I use
removeOptionGroupFromProduct
to remove an optionGroup from a product,all theproductVariants
have beensoftDelete
.But after this remove,I can still use
Product
orProductOptionGroup
get theoptionGroup
which had been deleted .I checked the database and the columndeletedAt
has value,I was so weird why I could get an entity which had been softDeleted.To Reproduce
Steps to reproduce the behavior:
Product
optionGroups
options
in everyoptionGroup
ProductVariants
deleteProductVariant
GraphQL to softDelete allProductVariants
deleteProductOption
GraphQL to delete alloptions
removeOptionGroupFromProduct
GraphQL to remove alloptionGroups
from this productProduct
GraphQL withproducId
to retrieve the product details,I can still get the removedoptionGroups
ProductOptionGroup
GraphQL withproductOptionGroupId
to retrieve the option group,I can still get the removedoptionGroups
Expected behavior
After
removeOptionGroupFromProduct
,theProductOptionGroup
shouldn't be retrieved.Environment (please complete the following information):
Additional context
Use
Admin UI
to create product details.UsePostMan
to test GraphQL.Thanks~
The text was updated successfully, but these errors were encountered: