Closed
Description
Preconditions (*)
- Magento 2.4.2-p1
- Two Websites with different root categories
Steps to reproduce (*)
- Create a product
- Assign the product to both websites
- Add the product to a subcategory of both root categories.
- Request the product through GraphQl using the Store header of the first website.
query productDetail {
productDetail: products(filter: {url_key: {eq: "24-MB01"}}) {
items {
sku
__typename
categories {
name
path
url_key
}
}
}
}
Expected result (*)
Only returns categories that are in the website's root category (in this example 2).
{
"data": {
"productDetail": {
"items": [
{
"sku": "24-MB01",
"__typename": "SimpleProduct",
"categories": [
{
"name": "Gear",
"path": "1/2/3",
"url_key": "gear"
},
{
"name": "Bags",
"path": "1/2/3/4",
"url_key": "bags"
}
]
}
]
}
}
}
Actual result (*)
Returns categories in every root category (in this case 2 and 41).
{
"data": {
"productDetail": {
"items": [
{
"sku": "24-MB01",
"__typename": "SimpleProduct",
"categories": [
{
"name": "Gear",
"path": "1/2/3",
"url_key": "gear"
},
{
"name": "Bags",
"path": "1/2/3/4",
"url_key": "bags"
},
{
"name": "Not Default Category",
"path": "1/41",
"url_key": "not-default-category"
}
]
}
]
}
}
}
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 without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done