New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute is returned as aggregation in products query even if Use in Search Results Layered Navigation is set to no #33318
Comments
Hi @oneserv-heuser. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento give me 2.4-develop instance |
Hi @oneserv-heuser. Thank you for your request. I'm working on Magento instance for you. |
Hi @oneserv-heuser, here is your Magento Instance: https://b21cb62d5a70b1ae6f2ad997506f84a3-2-4-develop.instances.magento-community.engineering |
@magento I can confirm that this issue is reproducible on the vanilla magento instance |
I just found out that this issue not only exists for the price attribute but for all attributes. Magento ignores the settings in the backend. If you set the setting "Use in Search Results Layered Navigation" to false then the attribute gets returned when asking for the aggregation field but you cannot use it in the field ProdutAttributeFilterInput. |
@magento I am working on this |
Hi @oneserv-heuser. The settings for the "price", "visibility", "category_ids" fields are specifically ignored (in file CatalogGraphQl/Plugin/Search/Request/ConfigReader.php)
The price is added separately in the file CatalogGraphQl/etc/graphql/di.xml
|
@khrystynastolbova You're right, it only affects those attributes. I tried it again and my custom attributes are not returned. Maybe that was something cache related back then. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hi @oneserv-heuser, Thank you for informing the issue. The issue is verified and is reproducible on Magento 2.4-develop. Navigated to Stores->Attributes->Product and I changed ‘Use in Layered Navigation’ to ‘No’ for ‘Price’ Attribute. Below a screenshot of the same: Thanks, |
✅ Jira issue https://jira.corp.magento.com/browse/AC-1955 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Hi @oneserv-heuser , Kindly upgrade to the latest Magento version In case of any Magento related issues found in For any Magento related references, you may refer to the Magento user guide. Thanks! |
@joggienl The "Use in Layered Navigation" setting should be affected by this issue. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Whats the problem about it (*)
The huge problem is here that if you build filters based on the aggregation field the user will be able to filter the price. But if you try to filter via the price if it's disabled for layered navigation you'll receive the following error:
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: