Description
Preconditions (*)
- Magento 2.4 / 2.3.5-p2 / 2.4-develop
Steps to reproduce (*)
- Create one or more attribute sets
- Create one or more attribute groups in these attribute sets
- Try to retrieve these attribute groups from both attribute sets using the REST endpoint below
/rest/V1/products/attribute-sets/{attribute-set-id}/groups/list?searchCriteria[filter_groups][0][filters][0][field]=attribute_set_id&searchCriteria[filter_groups][0][filters][0][value]={attribute_set_ids_comma_separated}&searchCriteria[filter_groups][0][filters][0][condition_type]=in
Expected result (*)
- Attribute groups from the given attribute sets in the search criteria
Actual result (*)
- No results or only the results from the attribute set of which the id is the first id in the comma separated list of ids ("14,25,30,60" would only return the attribute groups from the attribute set with id 14, for example)
Additional
Magento\Eav\Model\Api\SearchCriteria\CollectionProcessor\FilterProcessor\AttributeGroupAttributeSetIdFilter
does not take into account any of the other condition types supported by the search criteria as described in the Magento API documentation.
https://devdocs.magento.com/guides/v2.4/rest/performing-searches.html
It overrides any given condition type with eq
.
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”.
Additional info from Engcom
Attribute set id from eav_attribute_group
table
GET catalogProductAttributeGroupRepositoryV1
The response body contains only 1, despite that three values are entered comma separated