-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fix #28011 - remove page number from query on layered navigation swatch filter #28015
Fix #28011 - remove page number from query on layered navigation swatch filter #28015
Conversation
…on swatch filter
Hi @Bartlomiejsz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it's an adaptation of another bugfix (made to another part of the system), I am approving that.
Thanks for cleaning up the code style there.
Hi @lbajsarowicz, thank you for the review.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Bartlomiejsz,
Could you fix the failing static tests and cover your change with any type of test? I see you already adjusted unit tests, but I can't see any change related to the bug itself.
Pull Request state was updated. Re-review required.
Hi @ihor-sviziev, indeed I only did minor adjustments to unit test because otherwise it would fail due to new dependency injected. I didn't add new unit test since this whole test file will either need to be reworked or removed for phpunit 9 because it tests mock and not real class which I think won't work anymore. |
✔️ QA Passed |
Failed functional test not related to changes from this PR. |
…vigation swatch filter #28015
Hi @Bartlomiejsz, thank you for your contribution! |
Description (*)
This change makes swatch layered navigation filter consistent with standard filters, by removing
p
query parameter from filter url in same way as in https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Catalog/Model/Layer/Filter/Item.phpFixes #28011
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
p
parameter should be removed from url and user should see first page, same as when non-swatch attribute is used as filterQuestions or comments
Contribution checklist (*)